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

docs: show NEXT in version selectors #17911

Merged
merged 2 commits into from
Dec 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions docs/src/_data/config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"lang": "en",
"version": "7.26.0",
"showNextVersion": false
"version": "8.56.0",
"showNextVersion": true
}
3 changes: 2 additions & 1 deletion docs/src/_data/eslintVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const path = require("path");

const pkgPath = path.resolve(__dirname, "../../package.json");
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
const config = JSON.parse(fs.readFileSync(path.resolve(__dirname, "./config.json"), "utf8"));
const { ESLINT_VERSION } = process.env;

//-----------------------------------------------------------------------------
Expand All @@ -31,4 +32,4 @@ const { ESLINT_VERSION } = process.env;
* GitHub. Otherwise, we will use the version from package.json.
*/

module.exports = ESLINT_VERSION ?? pkg.version;
module.exports = ESLINT_VERSION ?? config.version ?? pkg.version;
1 change: 1 addition & 0 deletions docs/tools/validate-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const skipPatterns = [
"/team",
"/donate",
"/docs/latest",
"/docs/next",
'src="null"'
];

Expand Down