mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-12-28 16:58:05 +01:00
New doc theme (#387)
This commit is contained in:
15
docs/src/Shortcodes/AlertShortcode.cs
Normal file
15
docs/src/Shortcodes/AlertShortcode.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Collections.Generic;
|
||||
using Statiq.Common;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Docs.Shortcodes
|
||||
{
|
||||
public class AlertShortcode : SyncShortcode
|
||||
{
|
||||
public override ShortcodeResult Execute(KeyValuePair<string, string>[] args, string content, IDocument document, IExecutionContext context)
|
||||
{
|
||||
|
||||
return $"<div class=\"alert-warning\">{content}</div>";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user