Navigation Menu

Skip to content

Commit

Permalink
docs: Adjust docs site path prefix (#15889)
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed May 18, 2022
1 parent 6e16025 commit f437249
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/.eleventy.js
Expand Up @@ -343,6 +343,15 @@ module.exports = function(eleventyConfig) {
return {
passthroughFileCopy: true,

/*
* The site is loaded from /docs on eslint.org and so we need to adjust
* the path prefix so URLs are evaluated correctly.
*
* The path prefix is turned off for deploy previews so we can properly
* see changes before deployed.
*/
pathPrefix: process.env.CONTEXT === "deploy-preview" ? "" : "/docs",

markdownTemplateEngine: 'njk',
dataTemplateEngine: 'njk',
htmlTemplateEngine: 'njk',
Expand Down

0 comments on commit f437249

Please sign in to comment.