diff --git a/docfx.json b/docfx.json index df745d30..1fc4b077 100644 --- a/docfx.json +++ b/docfx.json @@ -40,6 +40,7 @@ "foundation/**/*.md", "roadmap/**/*.md", "roadmap/**/*.yml", + "errors/**/*.md", "toc.yml", "*.md" ], diff --git a/errors/setupwine/index.md b/errors/setupwine/index.md new file mode 100644 index 00000000..b59a9be3 --- /dev/null +++ b/errors/setupwine/index.md @@ -0,0 +1,5 @@ +--- +redirect: ../../articles/tutorials/building_2d_games/02_getting_started/index.md?tabs=windows#setup-wine-for-effect-compilation-macos-and-linux-only +--- + +[url_validation](../../articles/tutorials/building_2d_games/02_getting_started/index.md?tabs=windows#setup-wine-for-effect-compilation-macos-and-linux-only) diff --git a/templates/monogame/conceptual.extension.js b/templates/monogame/conceptual.extension.js index 85e689a4..fa9aa775 100644 --- a/templates/monogame/conceptual.extension.js +++ b/templates/monogame/conceptual.extension.js @@ -3,6 +3,10 @@ */ exports.preTransform = function (model) { + // Handle redirect urls that end with .md + if(model.redirect) { + model.redirect = model.redirect.replace(/\.md/g, '.html'); + } // For layout pages, ignore injecting title and description as header and // first paragraph diff --git a/templates/monogame/layout/_master.tmpl b/templates/monogame/layout/_master.tmpl index 8d747c68..bfd763ff 100644 --- a/templates/monogame/layout/_master.tmpl +++ b/templates/monogame/layout/_master.tmpl @@ -2,11 +2,11 @@ {{!include(/^public/.*/)}} -{{#redirect_url}} +{{#redirect}} {{>partials/redirect}} -{{/redirect_url}} +{{/redirect}} -{{^redirect_url}} +{{^redirect}}
{{>partials/head}} @@ -81,5 +81,5 @@ -{{/redirect_url}} +{{/redirect}}