|
28 | 28 | # extensions coming with Sphinx (named 'sphinx.ext.*') or your custom |
29 | 29 | # ones. |
30 | 30 | extensions = [ |
31 | | -'sphinx.ext.intersphinx', |
| 31 | + "sphinx.ext.intersphinx", |
| 32 | + "sphinx_reredirects", |
32 | 33 | ] |
33 | 34 |
|
| 35 | + |
| 36 | +# Redirects for olds pages |
| 37 | +# See https://documatt.gitlab.io/sphinx-reredirects/usage.html |
| 38 | +redirects = {} |
| 39 | + |
| 40 | +# This points to aboutcode.readthedocs.io |
| 41 | +# In case of "undefined label" ERRORS check docs on intersphinx to troubleshoot |
| 42 | +# Link was created at commit - https://github.com/nexB/aboutcode/commit/faea9fcf3248f8f198844fe34d43833224ac4a83 |
| 43 | + |
| 44 | +intersphinx_mapping = { |
| 45 | + "aboutcode": ("https://aboutcode.readthedocs.io/en/latest/", None), |
| 46 | + "scancode-workbench": ("https://scancode-workbench.readthedocs.io/en/develop/", None), |
| 47 | +} |
| 48 | + |
| 49 | + |
34 | 50 | # Add any paths that contain templates here, relative to this directory. |
35 | 51 | templates_path = ['_templates'] |
36 | 52 |
|
|
59 | 75 | "github_repo": "aboutcode-toolkit", |
60 | 76 | "github_version": "develop", # branch |
61 | 77 | "conf_py_path": "/docs/source/", # path in the checkout to the docs root |
62 | | - } |
| 78 | +} |
| 79 | + |
| 80 | +html_css_files = ["_static/theme_overrides.css"] |
| 81 | + |
| 82 | + |
| 83 | +# If true, "Created using Sphinx" is shown in the HTML footer. Default is True. |
| 84 | +html_show_sphinx = True |
| 85 | + |
| 86 | +# Define CSS and HTML abbreviations used in .rst files. These are examples. |
| 87 | +# .. role:: is used to refer to styles defined in _static/theme_overrides.css and is used like this: :red:`text` |
| 88 | +rst_prolog = """ |
| 89 | +.. |psf| replace:: Python Software Foundation |
| 90 | +
|
| 91 | +.. # define a hard line break for HTML |
| 92 | +.. |br| raw:: html |
| 93 | +
|
| 94 | + <br /> |
| 95 | +
|
| 96 | +.. role:: red |
| 97 | +
|
| 98 | +.. role:: img-title |
| 99 | +
|
| 100 | +.. role:: img-title-para |
| 101 | +
|
| 102 | +""" |
| 103 | + |
| 104 | +# -- Options for LaTeX output ------------------------------------------------- |
63 | 105 |
|
64 | | -html_css_files = [ |
65 | | - '_static/theme_overrides.css' |
66 | | - ] |
| 106 | +latex_elements = { |
| 107 | + 'classoptions': ',openany,oneside' |
| 108 | +} |
0 commit comments