Skip to content

Commit

Permalink
Merge pull request #13 from skoudoro/workshop-url
Browse files Browse the repository at this point in the history
add workshop redirection
  • Loading branch information
skoudoro authored Dec 15, 2023
2 parents 6d0bda6 + a5d61b5 commit 87ab713
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
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

0 comments on commit 87ab713

Please sign in to comment.