mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-08-02 10:15:58 +08:00
Add documentation for TextPath
widget (#757)
This commit is contained in:
13
docs/src/Shortcodes/InfoShortcode.cs
Normal file
13
docs/src/Shortcodes/InfoShortcode.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System.Collections.Generic;
|
||||
using Statiq.Common;
|
||||
|
||||
namespace Docs.Shortcodes
|
||||
{
|
||||
public class InfoShortcode : SyncShortcode
|
||||
{
|
||||
public override ShortcodeResult Execute(KeyValuePair<string, string>[] args, string content, IDocument document, IExecutionContext context)
|
||||
{
|
||||
return $"<div class=\"alert-info\">{content}</div>";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user