diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index b2077df..1f0c993 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,6 +1,9 @@ name: Deploy Documentation on: - workflow_dispatch + workflow_dispatch: + push: + paths: + - 'docs/**' jobs: build: diff --git a/docs/Program.cs b/docs/Program.cs index a0f4e59..0748e53 100644 --- a/docs/Program.cs +++ b/docs/Program.cs @@ -11,7 +11,8 @@ namespace Docs public static async Task Main(string[] args) => await Bootstrapper.Factory .CreateWeb(args) - .AddSetting(Keys.Host, "spectresystems.github.io/spectre.console") + .AddSetting(Keys.Host, "spectresystems.github.io") + .AddSetting(Keys.LinkRoot, "/spectre.console") .AddSetting(Keys.LinksUseHttps, true) .AddSetting(Constants.EditLink, ConfigureEditLink()) .ConfigureSite("spectresystems", "spectre.console", "main")