From aa2289b3e8b46532e89ece84c43eeabe1ba5c4f4 Mon Sep 17 00:00:00 2001 From: Srijan Saurav <68371686+srijan-deepsource@users.noreply.github.com> Date: Mon, 30 May 2022 16:19:26 +0530 Subject: [PATCH] Revert "docs: fix absolute paths in related rules shortcode to work from /docs (#15892)" This reverts commit 94c8d13981a6dcf28565f23a7902dfa91c1e39d6. --- docs/.eleventy.js | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/.eleventy.js b/docs/.eleventy.js index 7b4c4f1a034..d1138eff322 100644 --- a/docs/.eleventy.js +++ b/docs/.eleventy.js @@ -25,15 +25,6 @@ const { module.exports = function(eleventyConfig) { let now = new Date(); - /* - * 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. - */ - const pathPrefix = process.env.CONTEXT === "deploy-preview" ? "" : "/docs"; - /***************************************************************************************** * Filters * ***************************************************************************************/ @@ -189,7 +180,7 @@ module.exports = function(eleventyConfig) { rules.forEach(function(rule) { let list_item = `