Skip to content

Commit 30bc2d3

Browse files
committed
🚸 Set pipelines redirects
1 parent 0f343d9 commit 30bc2d3

File tree

7 files changed

+21
-13
lines changed

7 files changed

+21
-13
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ commands:
1515
command: |
1616
sudo apt-get update && sudo apt-get -y install git python3-dev graphviz graphviz-dev libgraphviz-dev pkg-config python3-sphinx
1717
pip install --user -r https://raw.githubusercontent.com/FCP-INDI/C-PAC/<< parameters.version >>/requirements.txt
18-
pip install --user git+https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git@<< parameters.version >> sphinx m2r numpydoc PyGithub "sphinxcontrib-bibtex<2.0" sphinxcontrib-fulltoc sphinxcontrib-programoutput sphinx-reredirects semver torch
18+
pip install --user git+https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git@<< parameters.version >> sphinx m2r numpydoc PyGithub "sphinxcontrib-bibtex<2.0" sphinxcontrib-fulltoc sphinxcontrib-programoutput semver torch
1919
git clone https://github.com/${CIRCLE_PROJECT_USERNAME}/C-PAC.git /home/circleci/build/C-PAC
2020
cd /home/circleci/build/C-PAC
2121
git checkout << parameters.version >>

docs/_sources/conf.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ def yaml_to_rst(path):
139139
# extensions
140140
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
141141
extensions = [
142-
'sphinx_reredirects',
143142
'sphinx.ext.autodoc',
144143
'sphinxcontrib.bibtex',
145144
'sphinxcontrib.fulltoc',
@@ -177,17 +176,6 @@ def yaml_to_rst(path):
177176
# The short X.Y version.
178177
version = __version__
179178

180-
# Set redirects for renamed pages
181-
redirects = {
182-
'user/1.7-1.8-nesting-mappings': 'user/pipelines/' \
183-
'1.7-1.8-nesting-mappings.html',
184-
'user/default': 'user/pipelines/default.html',
185-
'user/design_a_pipeline': 'user/pipelines/design_a_pipeline.html',
186-
'user/pipeline_config': 'user/pipelines/pipeline_config.html',
187-
'user/preconfig': 'user/pipelines/preconfig.html'
188-
}
189-
190-
191179
# Get tags from GitHub
192180
# Set GITHUBTOKEN to your API token in your environment to increase rate limit.
193181
g = Github(os.environ.get('GITHUBTOKEN'))
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. meta::
2+
:http-equiv=refresh: 0; url=./pipelines/1.7-1.8-nesting-mappings.rst
3+
4+
.. title:: Filed under 'pipelines'

docs/_sources/user/default.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. meta::
2+
:http-equiv=refresh: 0; url=./pipelines/default
3+
4+
.. title:: Filed under 'pipelines'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. meta::
2+
:http-equiv=refresh: 0; url=./pipelines/design_a_pipeline
3+
4+
.. title:: Filed under 'pipelines'
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. meta::
2+
:http-equiv=refresh: 0; url=./pipelines/pipeline_config
3+
4+
.. title:: Filed under 'pipelines'

docs/_sources/user/preconfig.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.. meta::
2+
:http-equiv=refresh: 0; url=./pipelines/preconfig
3+
4+
.. title:: Filed under 'pipelines'

0 commit comments

Comments
 (0)