diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index e236adf..7ee7a0c 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -18,15 +18,17 @@ jobs:
- name: Checkout
uses: actions/checkout@master
- - name: Setup dotnet 6.0.100
+ - name: Setup dotnet 5 and 6.0.100
uses: actions/setup-dotnet@v1
with:
- dotnet-version: 6.0.100
+ dotnet-version: |
+ 5.0.x
+ 6.0.100
- name: Setup Node.js
uses: actions/setup-node@v2
with:
- node-version: '14'
+ node-version: '16'
- name: Cache dependencies
uses: actions/cache@v2
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index e87bf9a..0fb2d45 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -32,7 +32,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
- node-version: '14'
+ node-version: '16'
- name: Cache dependencies
uses: actions/cache@v2
diff --git a/docs/Program.cs b/docs/Program.cs
index a61856c..d6ad0f4 100644
--- a/docs/Program.cs
+++ b/docs/Program.cs
@@ -2,6 +2,7 @@ using System.Threading.Tasks;
using Docs.Shortcodes;
using Statiq.App;
using Statiq.Common;
+using Statiq.Core;
using Statiq.Web;
namespace Docs
@@ -16,16 +17,26 @@ namespace Docs
.AddSetting(Constants.EditLink, ConfigureEditLink())
.ConfigureSite("spectreconsole", "spectre.console", "main")
.ConfigureDeployment(deployBranch: "docs")
+
.AddShortcode("Children", typeof(ChildrenShortcode))
.AddShortcode("ColorTable", typeof(ColorTableShortcode))
.AddShortcode("EmojiTable", typeof(EmojiTableShortcode))
.AddShortcode("Alert", typeof(AlertShortcode))
.AddShortcode("AsciiCast", typeof(AsciiCastShortcode))
.AddPipelines()
- .AddProcess(ProcessTiming.Initialization, _ => new ProcessLauncher("npm", "install", "--audit", "false", "--fund", "false")
+ .BuildPipeline(
+ "Bootstrap",
+ builder => builder
+ .WithInputReadFiles("../node_modules/asciinema-player/dist/bundle/asciinema-player.js")
+ .WithProcessModules(new SetDestination(Config.FromDocument(doc => new NormalizedPath($"./assets/{doc.Source.FileName}")), true))
+ .WithOutputWriteFiles()
+ )
+ .AddProcess(ProcessTiming.Initialization, _ => new ProcessLauncher("npm", "install --audit false --fund false --progress false")
{
LogErrors = false
})
+ .AddProcess(ProcessTiming.Initialization, _ => new ProcessLauncher("dotnet", "tool install Microsoft.Playwright.CLI"))
+ .AddProcess(ProcessTiming.Initialization, _ => new ProcessLauncher("dotnet", "playwright install chromium"))
.AddProcess(ProcessTiming.BeforeDeployment, _ => new ProcessLauncher("npm", "run build:tailwind")
{
LogErrors = false
diff --git a/docs/input/_layout.cshtml b/docs/input/_layout.cshtml
index b832749..04985a8 100644
--- a/docs/input/_layout.cshtml
+++ b/docs/input/_layout.cshtml
@@ -157,5 +157,10 @@
+