mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
docs/conf.py: Fix missing nuttx_versions
Add `nuttx_versions` back into the `html_context` variable after it was re-defined in #16440 to include more options. This fixes the failing Pphinx autobuild. Signed-off-by: Matteo Golin <matteo.golin@gmail.com>
This commit is contained in:
+9
-10
@@ -85,8 +85,6 @@ exclude_patterns = ["_build", "Thumbs.db", ".DS_Store", "legacy_README.md", "ven
|
|||||||
# overridden by command line option but we can provide a sane default
|
# overridden by command line option but we can provide a sane default
|
||||||
# this way
|
# this way
|
||||||
|
|
||||||
html_context = dict()
|
|
||||||
html_context["nuttx_versions"] = "latest"
|
|
||||||
|
|
||||||
# TODO: append other options using releases detected from git (or maybe just
|
# TODO: append other options using releases detected from git (or maybe just
|
||||||
# a few hand-selected ones, or maybe just a "stable" option)
|
# a few hand-selected ones, or maybe just a "stable" option)
|
||||||
@@ -102,6 +100,15 @@ html_show_sphinx = False
|
|||||||
|
|
||||||
html_theme_options = {"navigation_depth": 5}
|
html_theme_options = {"navigation_depth": 5}
|
||||||
|
|
||||||
|
html_context = {
|
||||||
|
"display_github": True,
|
||||||
|
"github_user": "apache",
|
||||||
|
"github_repo": "nuttx",
|
||||||
|
"github_version": "master",
|
||||||
|
"conf_py_path": "/Documentation/",
|
||||||
|
"nuttx_versions": "latest",
|
||||||
|
}
|
||||||
|
|
||||||
# Add any paths that contain custom static files (such as style sheets) here,
|
# Add any paths that contain custom static files (such as style sheets) here,
|
||||||
# relative to this directory. They are copied after the builtin static files,
|
# relative to this directory. They are copied after the builtin static files,
|
||||||
# so a file named "default.css" will overwrite the builtin "default.css".
|
# so a file named "default.css" will overwrite the builtin "default.css".
|
||||||
@@ -135,14 +142,6 @@ copybutton_exclude = ".linenos, .gp, .go"
|
|||||||
|
|
||||||
warnings_filter_config = "known-warnings.txt"
|
warnings_filter_config = "known-warnings.txt"
|
||||||
|
|
||||||
html_context = {
|
|
||||||
"display_github": True,
|
|
||||||
"github_user": "apache",
|
|
||||||
"github_repo": "nuttx",
|
|
||||||
"github_version": "master",
|
|
||||||
"conf_py_path": "/Documentation/",
|
|
||||||
}
|
|
||||||
|
|
||||||
# -- Options for sphinx_tags ----------------------------------------------
|
# -- Options for sphinx_tags ----------------------------------------------
|
||||||
|
|
||||||
tags_create_tags = True
|
tags_create_tags = True
|
||||||
|
|||||||
Reference in New Issue
Block a user