mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-25 04:32:51 +08:00

* Adding a dark mode * Adding reference for types to summary pages * Adding API Reference * Adding modifiers to methods/fields/etc * Minimizing files input * Caching a lot of the output pages * Cache only for each execution * Adding API references to existing docs
13 lines
381 B
C#
13 lines
381 B
C#
using System.Collections.Generic;
|
|
using Statiq.Common;
|
|
|
|
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>";
|
|
}
|
|
}
|
|
} |