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

Redirect old schema docs pages to github.io site #62

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
13 changes: 12 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
# ones.
extensions = [
'myst_parser',
'sphinx_markdown_tables'
'sphinx_markdown_tables',
'sphinx_reredirects'
]

# source_suffix = '.rst'
Expand Down Expand Up @@ -66,3 +67,13 @@
'css/custom.css',
]
html_logo = "_static/images/nmdc-logo-bg-white.png"

# -- Redirects ------------------------------------------

# Redirect old schema documentation URLs to the schema documentation
# that is automatically kept in sync with the schema.
# Reference: https://pypi.org/project/sphinx-reredirects/
redirects = {
"reference/metadata/xylene": "https://w3id.org/nmdc/xylene", # the latter redirects to: https://microbiomedata.github.io/nmdc-schema/xylene/
"reference/metadata/*": "https://w3id.org/nmdc/nmdc",
}
6 changes: 5 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
myst-parser
sphinx_markdown_tables
sphinx_rtd_theme
sphinx_rtd_theme

# Sphinx plugin that handles redirects.
# Reference: https://pypi.org/project/sphinx-reredirects/
sphinx-reredirects