Skip to content

Commit

Permalink
docs: support redirects (#5301)
Browse files Browse the repository at this point in the history
  • Loading branch information
alaeddine-13 authored Oct 25, 2022
1 parent 0ada581 commit 7b3f5d8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@
'sphinx.ext.viewcode',
'sphinx.ext.coverage',
'sphinxcontrib.apidoc',
'sphinxcontrib.redirects',
'sphinxarg.ext',
'sphinx_copybutton',
'sphinx_sitemap',
Expand All @@ -116,7 +117,7 @@
intersphinx_mapping = {'docarray': ('https://docarray.jina.ai/', None)}
myst_enable_extensions = ['colon_fence']
autosummary_generate = True

redirects_file = 'redirects.txt'
# -- Custom 404 page

# sphinx-notfound-page
Expand Down
Empty file added docs/redirects.txt
Empty file.
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
sphinx
sphinx-argparse==0.3.1
sphinxcontrib-apidoc==0.3.0
sphinxcontrib-redirects==0.1.0
sphinx-autodoc-typehints==1.18.3
sphinx_copybutton
sphinx-notfound-page==0.7.1
Expand Down

0 comments on commit 7b3f5d8

Please sign in to comment.