Skip to content

Commit 6bb9712

Browse files
animeshsasancarlocastoldiniksirbipre-commit-ci[bot]
authored
Changes for multi-version docs (#668)
* Changes for multi-version docs * Adding auto-initialisation * Remove base-url * Update docs link in README * Update the version_match string to match the switcher.json map * Fix doc version matching for movement * Add blog post about displacement's API changes (#688) * Add draft for post about displacement's API changes * remove reference to v0.0.13 Co-authored-by: Niko Sirmpilatze <[email protected]> * improve phrasing in compute_displacement introduction Co-authored-by: Niko Sirmpilatze <[email protected]> * improve wording talking about the PR Co-authored-by: Niko Sirmpilatze <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * compute_backward_displacement Co-authored-by: Niko Sirmpilatze <[email protected]> * improve wording on cart2pol Co-authored-by: Niko Sirmpilatze <[email protected]> * blog: change title and add 1-sentence summary * blog: better explaination of how old implementation worked * blog: headings changes * blog: improve suggestion on how to transition to the new API Co-authored-by: Niko Sirmpilatze <[email protected]> * update date and headings * linkcheck ignore BraiAn --------- Co-authored-by: Niko Sirmpilatze <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Enable pure `pip`/`uv` installations (#683) * add uv lock to gitignore * pull tables from pypi instead of conda-forge * remove tables drom docs requirements.txt * updated installation guide * Disable HDF5 file locking in tox * Revert "Disable HDF5 file locking in tox" This reverts commit 8173f32. * updated instruction for creating a dev environment * remove mamba link from url scheme * Revert "linkcheck ignore BraiAn" This reverts commit 7e5a7e0. * Implement suggestions from PR review * tweak wording in uv venv instructions * make linters and linkcheck happy --------- Co-authored-by: carlocastoldi <[email protected]> Co-authored-by: Niko Sirmpilatze <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 2e89521 commit 6bb9712

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

.github/workflows/docs_build_and_deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
(github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
5757
runs-on: ubuntu-latest
5858
steps:
59-
- uses: neuroinformatics-unit/actions/deploy_sphinx_docs@main
59+
- uses: neuroinformatics-unit/actions/deploy_sphinx_docs_multiversion@main
6060
with:
6161
secret_input: ${{ secrets.GITHUB_TOKEN }}
6262
use-make: true
63+
switcher-url: https://movement.neuroinformatics.dev/latest/_static/switcher.json

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ conda activate movement-env
2828

2929

3030
> [!Note]
31-
> Read the [documentation](https://movement.neuroinformatics.dev) for more information, including [full installation instructions](https://movement.neuroinformatics.dev/user_guide/installation.html) and [examples](https://movement.neuroinformatics.dev/examples/index.html).
31+
> Read the [documentation](https://movement.neuroinformatics.dev/latest) for more information, including [full installation instructions](https://movement.neuroinformatics.dev/latest/user_guide/installation.html) and [examples](https://movement.neuroinformatics.dev/latest/examples/index.html).
3232
3333
## Overview
3434

@@ -46,7 +46,7 @@ motion tracks, enabling steps such as data cleaning, visualisation,
4646
and motion quantification. We aim to support all popular animal tracking
4747
frameworks and file formats.
4848

49-
Find out more on our [mission and scope](https://movement.neuroinformatics.dev/community/mission-scope.html) statement and our [roadmap](https://movement.neuroinformatics.dev/community/roadmaps.html).
49+
Find out more on our [mission and scope](https://movement.neuroinformatics.dev/latest/community/mission-scope.html) statement and our [roadmap](https://movement.neuroinformatics.dev/latest/community/roadmaps.html).
5050

5151
<!-- Start Admonitions -->
5252

@@ -61,7 +61,7 @@ Find out more on our [mission and scope](https://movement.neuroinformatics.dev/c
6161
## Join the movement
6262

6363
Contributions to movement are absolutely encouraged, whether to fix a bug, develop a new feature, or improve the documentation.
64-
To help you get started, we have prepared a detailed [contributing guide](https://movement.neuroinformatics.dev/community/contributing.html).
64+
To help you get started, we have prepared a detailed [contributing guide](https://movement.neuroinformatics.dev/latest/community/contributing.html).
6565

6666
- [Chat with the team on Zulip](https://neuroinformatics.zulipchat.com/#narrow/stream/406001-Movement).
6767
- [Open an issue](https://github.com/neuroinformatics-unit/movement/issues) to report a bug or request a new feature.

docs/source/conf.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
# with a dummy version
3232
release = "0.0.0"
3333

34+
doc_version = "dev" if "dev" in release else f"v{release}"
35+
3436
# -- General configuration ---------------------------------------------------
3537
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
3638

@@ -150,9 +152,14 @@
150152
"type": "fontawesome",
151153
},
152154
],
155+
"switcher": {
156+
"json_url": "https://movement.neuroinformatics.dev/latest/_static/switcher.json",
157+
"version_match": doc_version,
158+
},
153159
"logo": {
154160
"text": f"{project} v{release}",
155161
},
162+
"navbar_end": ["version-switcher", "navbar-icon-links"],
156163
"footer_start": ["footer_start"],
157164
"footer_end": ["footer_end"],
158165
"external_links": [],
@@ -191,6 +198,7 @@
191198
"https://opensource.org/license/bsd-3-clause/", # to avoid odd 403 error
192199
"https://www.sainsburywellcome.org/", # Occasional ConnectTimeoutError
193200
"https://www.robots.ox.ac.uk/", # occasional 404s
201+
"https://silvalab.codeberg.page/BraiAn/", # SSLError despite working link
194202
]
195203

196204

0 commit comments

Comments
 (0)