Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: fix rules list for prereleases #13230

Merged
merged 3 commits into from May 8, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 6 additions & 3 deletions Makefile.js
Expand Up @@ -613,7 +613,6 @@ target.gensite = function(prereleaseVersion) {
htmlFullPath = fullPath.replace(".md", ".html");

if (test("-f", fullPath)) {

rm("-rf", fullPath);

if (filePath.indexOf(".md") >= 0 && test("-f", htmlFullPath)) {
Expand Down Expand Up @@ -743,7 +742,7 @@ target.gensite = function(prereleaseVersion) {
echo(`> Updating files (Steps 4-9)${" ".repeat(50)}`);

// 10. Copy temporary directory to site's docs folder
echo("> Copying the temporary directory the site (Step 10)");
echo("> Copying the temporary directory into the site's docs folder (Step 10)");
let outputDir = DOCS_DIR;

if (prereleaseVersion) {
Expand All @@ -756,7 +755,11 @@ target.gensite = function(prereleaseVersion) {

// 11. Generate rule listing page
echo("> Generating the rule listing (Step 11)");
generateRuleIndexPage();

if (!prereleaseVersion) {
echo("> Skipping updating rules listing page because this is a prerelease.");
generateRuleIndexPage();
}

// 12. Delete temporary directory
echo("> Removing the temporary directory (Step 12)");
Expand Down