Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b0a767b
feat: add versioning for js api section
vi-nastya Apr 29, 2021
98f10a1
feat: add version switcher - WIP
vi-nastya Apr 29, 2021
149a0cf
feat: add version toggle for top level js api page and stub pages
vi-nastya Apr 30, 2021
d7c3875
fix: update version toggle links
vi-nastya Apr 30, 2021
974fce7
feat: add one example version
vi-nastya May 3, 2021
19e0825
fix: update version switcher links
vi-nastya May 17, 2021
04209bb
fix: remove first dot in version number
vi-nastya May 17, 2021
21d6230
fix: change breadcrumbs link names for versioned files
vi-nastya May 17, 2021
39f3306
refactor: move versioning params to a separate file
vi-nastya May 17, 2021
4699e04
feat: add version banner
vi-nastya May 19, 2021
9a2a9c6
fix(styles): increase content margin top to fit version banner
vi-nastya May 19, 2021
ded6a05
fix(styles): display version toggle on mobile devices
vi-nastya May 19, 2021
5bc2af8
refactor: add named export for version banner for consistency
vi-nastya May 19, 2021
d731161
fix: fix linter
vi-nastya May 19, 2021
1d24545
Merge branch 'master' into javascript-api-versioning
vi-nastya May 19, 2021
70d2412
refactor: remove debugging console.log
vi-nastya May 19, 2021
8ae07be
feat: add warning icon to version banner
vi-nastya May 19, 2021
10e5c12
fix: update version banner text
vi-nastya May 20, 2021
4a1707e
feat: get all available page versions from sidebar tree
vi-nastya May 20, 2021
232797f
refactor: fix console warning for pageInfo className
vi-nastya May 20, 2021
a015cde
feat: update canonical urls for versioned pages
vi-nastya May 20, 2021
417666c
feat: add v0.32 and v0.31 docs
vi-nastya May 20, 2021
b23c4e8
feat: change internal links in v0.31 and add script to change them au…
vi-nastya May 20, 2021
29310ea
feat: add missing script
vi-nastya May 21, 2021
03ff5c0
fix: add filter by file type for replacing versioned urls
vi-nastya May 21, 2021
99b14c4
fix(styles): update version select styles
vi-nastya May 21, 2021
d2a1de9
fix: change sorting order for version picker
vi-nastya May 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions archive-js-api-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/sh

VERSION=$1
VERSION_FORMATTED=$(echo "$VERSION" | sed 's/\./-/g')

cd src/data/markdown

# create folder for archived version data
mkdir ./versioned-js-api/$VERSION

# copy content of docs/javascript api to the version folder
cp -r ./docs/02\ javascript\ api/ ./versioned-js-api/$VERSION

# replace internal links for javascript-api section (/javascript-api/ => /javascript-api/v0-XX/)
find ./versioned-js-api/$VERSION -type f -iname \*.md -exec sed -i "" -e "s/\/javascript-api\//\/javascript-api\/${VERSION_FORMATTED}\//g" {} \;
Loading