Skip to content

Commit

Permalink
Add redirects from old documentation URLs
Browse files Browse the repository at this point in the history
Closes #237
  • Loading branch information
jgosmann committed Dec 8, 2019
1 parent 6384c87 commit 91a9abe
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,16 @@ Release History
- Fixed
1.0.1 (unreleased)
==================

**Changed**

- Add redirects from old URLs to documentation.
(`#237 <https://github.com/nengo/nengo_spa/issues/237>`__,
`#238 <https://github.com/nengo/nengo_spa/pull/238>`__)


1.0.0 (December 12, 2019)
=========================

Expand Down
20 changes: 20 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
'sphinx.ext.todo',
'sphinx.ext.viewcode',
'nbsphinx',
'nengo_sphinx_theme.ext.redirects',
]

default_role = 'py:obj'
Expand Down Expand Up @@ -88,6 +89,25 @@
"nengo_logo_color": "#d40000",
"analytics_id": "UA-41658423-2",
}
html_redirects = [
(old, old.replace('_', '-')) for old in
(
'dev_syntax.html',
'examples/associative_memory.html',
'examples/custom_module.html',
'examples/intro_coming_from_legacy_spa.html',
'examples/question_control.html',
'examples/question_memory.html',
'examples/spa_parser.html',
'examples/spa_sequence_routed.html',
'examples/spa_sequence.html',
'examples/vocabulary_casting.html',
'getting_started.html',
'user_guide.html',
'user_guide/algebras.html',
'user_guide/spa_intro.html',
)
]

# -- Options for LaTeX output -------------------------------------------------

Expand Down

0 comments on commit 91a9abe

Please sign in to comment.