From e40931056fd86aac35c1f0d24136accfa9c825a4 Mon Sep 17 00:00:00 2001 From: Remi Gau Date: Fri, 27 Sep 2024 08:20:33 +0000 Subject: [PATCH] test redirect --- .github/workflows/deploy_book.yml | 2 +- src/_config.yml | 27 +++++++++++++++++++++++++++ src/_toc.yml | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_book.yml b/.github/workflows/deploy_book.yml index 304d895..2cd422a 100644 --- a/.github/workflows/deploy_book.yml +++ b/.github/workflows/deploy_book.yml @@ -30,7 +30,7 @@ jobs: with: python-version: '3.12' - name: Install dependencies - run: pip install jupyter-book + run: pip install jupyter-book sphinxext-rediraffe # Build the book - name: Build the book diff --git a/src/_config.yml b/src/_config.yml index a1a5b6b..0d95b73 100644 --- a/src/_config.yml +++ b/src/_config.yml @@ -73,15 +73,42 @@ repository: ####################################################################################### # Advanced and power-user settings sphinx: + extra_extensions: - sphinxcontrib.bibtex - IPython.sphinxext.ipython_console_highlighting + - sphinxext.rediraffe + config: bibtex_bibfiles: - references.bib + linkcheck_ignore: - .*/10.1186/s13742-016-0121-x # for some reason, it returns forbidden - .*/10.1093/gigascience/giy082 # for some reason, it returns forbidden - https?://brainhack.org/LA # need to fix to "LA2016" in OSF + suppress_warnings: - myst.domains # domain method not implemented for `cite` + + rediraffe_redirects: + contact.md: https://bids-website.readthedocs.io/en/latest/contact/ + dataset_examples.md: https://bids-website.readthedocs.io/en/latest/datasets/ + folders_and_files/folders.md: https://bids-website.readthedocs.io/en/latest/getting_started/folders_and_files/folders.html + folders_and_files/files.md: https://bids-website.readthedocs.io/en/latest/getting_started/folders_and_files/files.html + folders_and_files/metadata.md: https://bids-website.readthedocs.io/en/latest/getting_started/folders_and_files/metadata.html + folders_and_files/derivatives.md: https://bids-website.readthedocs.io/en/latest/getting_started/folders_and_files/derivatives.html + tutorials/annotations.md: https://bids-website.readthedocs.io/en/latest/getting_started/tutorials/annotation.html + tutorials/ieeg.md: https://bids-website.readthedocs.io/en/latest/getting_started/tutorials/conversion/ieeg.html + tutorials/asl.md: https://bids-website.readthedocs.io/en/latest/getting_started/tutorials/conversion/asl.html + tutorials/pet.md: https://bids-website.readthedocs.io/en/latest/getting_started/tutorials/conversion/pet.html + tutorials/mri.md: https://bids-website.readthedocs.io/en/latest/getting_started/tutorials/conversion/mri.html + tutorials/tutorials.md: https://bids-website.readthedocs.io/en/latest/getting_started/tutorials/index.html + datasets.md: https://bids-website.readthedocs.io/en/latest/datasets/ + talks.md: https://bids-website.readthedocs.io/en/latest/getting_started/resources/talks.html + publications.md: https://bids-website.readthedocs.io/en/latest/getting_started/resources/publications.html + dependencies.md: https://bids-website.readthedocs.io/en/latest/getting_started/resources/dependencies.html + links: https://bids-website.readthedocs.io/en/latest/getting_started/resources/links.html + FAQ.md: https://bids-website.readthedocs.io/en/latest/faq/ + validator.md: https://bids-website.readthedocs.io/en/latest/tools/validator.html + glossary.md: https://bids-website.readthedocs.io/en/latest/getting_started/resources/glossary.html \ No newline at end of file diff --git a/src/_toc.yml b/src/_toc.yml index 641142b..f574709 100644 --- a/src/_toc.yml +++ b/src/_toc.yml @@ -13,7 +13,7 @@ parts: - title: BIDS files templates url: https://github.com/bids-standard/bids-starter-kit/tree/main/templates - title: Derivatives - url: https://bids-website.readthedocs.io/en/latest/getting_startedfolders_and_files/derivatives.html + url: https://bids-website.readthedocs.io/en/latest/getting_started/folders_and_files/derivatives.html - caption: Tutorials chapters: - title: Annotating a BIDS dataset