Skip to content

Commit e9ce8c3

Browse files
committed
fix(docs): save extracted sidebars as .js instead of .json
Signed-off-by: jaydeep869 <jaydeeppokhariya2106@gmail.com>
1 parent 8bb1e95 commit e9ce8c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs-website/build-versions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ for branch in $BRANCHES; do
3939
git show "$branch:CONTRIBUTING.md" > "$TARGET_DIR/CONTRIBUTING.md" || true
4040

4141
# Extract the sidebars file for this version
42-
# Docusaurus expects this in versioned_sidebars/version-{version}-sidebars.json
42+
# Docusaurus expects this in versioned_sidebars/version-{version}-sidebars.js
4343
if git show "$branch:docs-website/sidebars.js" > /dev/null 2>&1; then
44-
git show "$branch:docs-website/sidebars.js" > "versioned_sidebars/version-${VERSION}-sidebars.json" || true
44+
git show "$branch:docs-website/sidebars.js" > "versioned_sidebars/version-${VERSION}-sidebars.js" || true
4545
fi
4646
done
4747

0 commit comments

Comments
 (0)