Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add workshop redirection #13

Merged
merged 2 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 15 additions & 7 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx_reredirects',
'math_dollar', # has to go before numpydoc
'github',
'ablog',
Expand Down Expand Up @@ -184,7 +185,7 @@
"children": [
{
"name": "DIPY Workshop 2024",
"url": "https://dipy.org/workshops/dipy-workshop-2024",
"url": "https://deprecated.docs.dipy.org/workshops/dipy-workshop-2024",
"link_type": "external"
}
]
Expand All @@ -194,27 +195,27 @@
"children": [
{
"name": "DIPY Workshop 2023",
"url": "https://dipy.org/workshops/dipy-workshop-2023",
"url": "https://deprecated.docs.dipy.org/workshops/dipy-workshop-2023",
"link_type": "external"
},
{
"name": "DIPY Workshop 2022",
"url": "https://dipy.org/workshops/dipy-workshop-2022",
"url": "https://deprecated.docs.dipy.org/workshops/dipy-workshop-2022",
"link_type": "external"
},
{
"name": "DIPY Workshop 2021",
"url": "https://dipy.org/workshops/dipy-workshop-2021",
"url": "https://deprecated.docs.dipy.org/workshops/dipy-workshop-2021",
"link_type": "external"
},
{
"name": "DIPY Workshop 2020",
"url": "https://dipy.org/workshops/dipy-workshop-2020",
"url": "https://deprecated.docs.dipy.org/workshops/dipy-workshop-2020",
"link_type": "external"
},
{
"name": "DIPY Workshop 2019",
"url": "https://dipy.org/workshops/dipy-workshop-2019",
"url": "https://deprecated.docs.dipy.org/workshops/dipy-workshop-2019",
"link_type": "external"
},
]
Expand Down Expand Up @@ -550,5 +551,12 @@


# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'http://docs.python.org/': None}
intersphinx_mapping = {'python': ('http://docs.python.org/', None)}

# -- Options for sphinx-reredirects -------------------------------------------
redirects = {
"workshop/latest": "https://deprecated.docs.dipy.org/workshops/dipy-workshop-2024",
"workshop/": "https://deprecated.docs.dipy.org/workshops/",
"workshop/index": "https://deprecated.docs.dipy.org/workshops/"
}

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ tomli>=2.0.1
grg-sphinx-theme>=0.2.0
Jinja2
ablog==0.11.5
sphinx-reredirects>=0.1.3
Loading