浏览代码

Remove some of the link rewriting to hopefully fix broken docs links.

Dan Helfman 6 年之前
父节点
当前提交
308cb31bf9
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      .eleventy.js

+ 2 - 3
.eleventy.js

@@ -14,10 +14,9 @@ module.exports = function(eleventyConfig) {
         breaks: false,
         linkify: true,
         // Replace links to .md files with links to directories. This allows unparsed Markdown links
-        // to work on GitHub, while rendered links elsewhere also work. Also replaced dotted
-        // relative links for the same reason.
+        // to work on GitHub, while rendered links elsewhere also work.
         replaceLink: function (link, env) {
-            return link.replace(/\.md$/, '/').replace('../..', '../../..');
+            return link.replace(/\.md$/, '/');
         }
     };
     let markdownItAnchorOptions = {