Skip to content

Commit a4c4f88

Browse files
authored
Merge pull request #697 from neuroinformatics-unit/revert-633-ns-add-multi-version-docs
Revert "Set up multi-version docs"
2 parents 03de3b4 + d4cf56f commit a4c4f88

3 files changed

Lines changed: 6 additions & 19 deletions

File tree

.github/workflows/docs_build_and_deploy.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
- main
1212
tags:
1313
- 'v*'
14-
pull_request:
1514
workflow_dispatch:
1615

1716
# Cancel in-progress runs if a new run is triggered, except for main branch.
@@ -24,7 +23,7 @@ jobs:
2423
name: Build Sphinx Docs
2524
runs-on: ubuntu-latest
2625
steps:
27-
- uses: neuroinformatics-unit/actions/build_sphinx_docs@v2
26+
- uses: neuroinformatics-unit/actions/build_sphinx_docs@main
2827
with:
2928
use-artifactci: lazy
3029

@@ -33,14 +32,9 @@ jobs:
3332
needs: build_sphinx_docs
3433
permissions:
3534
contents: write
36-
# runs on releases, push to main, or manual dispatch on main
37-
if: |
38-
(github.event_name == 'push' && github.ref_type == 'tag') ||
39-
(github.event_name == 'push' && github.ref == 'refs/heads/main') ||
40-
(github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/main')
35+
if: github.event_name == 'push'
4136
runs-on: ubuntu-latest
4237
steps:
43-
- uses: neuroinformatics-unit/actions/deploy_sphinx_docs_multiversion@v2
38+
- uses: neuroinformatics-unit/actions/deploy_sphinx_docs@v2
4439
with:
4540
secret_input: ${{ secrets.GITHUB_TOKEN }}
46-
switcher-url: https://datashuttle.neuroinformatics.dev/latest/_static/switcher.json

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
**datashuttle** is a tool to automate creation, validation and transfer of neuroscience project folders.
44

5-
Learn how to [Install](https://datashuttle.neuroinformatics.dev/latest/pages/get_started/install.html)
5+
Learn how to [Install](https://datashuttle.neuroinformatics.dev/pages/get_started/install.html)
66
and
7-
[Get Started](https://datashuttle.neuroinformatics.dev/latest/pages/get_started/index.html)
7+
[Get Started](https://datashuttle.neuroinformatics.dev/pages/get_started/index.html)
88
on the
99
[**datashuttle** website](https://datashuttle.neuroinformatics.dev).
1010

docs/source/conf.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,12 @@
2323
# Retrieve the version number from the package
2424
try:
2525
release = setuptools_scm.get_version(root="../..", relative_to=__file__)
26-
release = release.split("+")[0] # remove git hash
26+
release = release.split(".dev")[0] # remove dev tag and git hash
2727
except LookupError:
2828
# if git is not initialised, still allow local build
2929
# with a dummy version
3030
release = "0.0.0"
3131

32-
doc_version = "dev" if "dev" in release else f"v{release}"
33-
3432
# -- General configuration ---------------------------------------------------
3533
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
3634

@@ -150,11 +148,6 @@
150148
"type": "fontawesome",
151149
},
152150
],
153-
"switcher": {
154-
"json_url": "https://datashuttle.neuroinformatics.dev/latest/_static/switcher.json",
155-
"version_match": doc_version,
156-
},
157-
"navbar_end": ["version-switcher", "theme-switcher", "navbar-icon-links"],
158151
"logo": {
159152
"text": f"datashuttle v{release}",
160153
"image_light": "_static/logo_light.png",

0 commit comments

Comments
 (0)