diff --git a/Makefile.js b/Makefile.js index 8ce4fbf1d91..4ef251b1415 100644 --- a/Makefile.js +++ b/Makefile.js @@ -660,8 +660,7 @@ target.gensite = function(prereleaseVersion) { sourcePath = path.join("lib/rules", sourceBaseName), ruleName = path.basename(filename, ".md"), filePath = path.posix.join("docs", path.relative("tmp", filename)); - let text = cat(filename), - title; + let text = cat(filename); process.stdout.write(`> Updating files (Steps 4-9): ${i}/${length} - ${filePath + " ".repeat(30)}\r`); @@ -678,17 +677,6 @@ target.gensite = function(prereleaseVersion) { .replace("", hasSuggestions ? HAS_SUGGESTIONS_TEXT : "") .replace("", isRecommended ? RECOMMENDED_TEXT : ""); - title = `${ruleName}`; - - } else { - - // extract the title from the file itself - title = text.match(/#([^#].+)\n/u); - if (title) { - title = title[1].trim(); - } else { - title = "Documentation"; - } } // 6. Remove .md extension for relative links and change README to empty string diff --git a/docs/src/rules/generator-star.md b/docs/src/rules/generator-star.md index c95f094c20c..0cddfddd49e 100644 --- a/docs/src/rules/generator-star.md +++ b/docs/src/rules/generator-star.md @@ -2,7 +2,6 @@ title: generator-star layout: doc edit_link: https://github.com/eslint/eslint/edit/main/docs/src/rules/generator-star.md - --- Enforces consistent spacing around the asterisk in generator functions. @@ -131,7 +130,3 @@ If your project will not be using generators you do not need this rule. ## Further Reading * [Understanding ES6: Generators](https://leanpub.com/understandinges6/read/#leanpub-auto-generators) - -## Resources - -* [Documentation source](https://github.com/eslint/eslint/tree/HEAD/docs/src/rules/generator-star.md)