Skip to content

Commit

Permalink
Add version switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
schroedtert committed Sep 24, 2023
1 parent 9de2d77 commit ad12612
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
python3 -m pip install -r docs/requirements.txt
sphinx-build docs/source docs/build -j$(nproc)
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./docs/build

- name: Upload html pages as artifact
uses: actions/upload-artifact@v3
with:
Expand Down
5 changes: 5 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@
"type": "url",
},
],
"switcher": {
"json_url": "https://www.jupedsim.org/versions.json",
"version_match": "foo",
},
"primary_sidebar_end": ["version-switcher"],
"show_toc_level": 3,
}

Expand Down

0 comments on commit ad12612

Please sign in to comment.