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:
Matteo Golin 2025-06-02 20:06:34 -04:00 committed by Xiang Xiao
parent b0342c87ee
commit 01f44f963c

View file

@ -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
# this way
html_context = dict()
html_context["nuttx_versions"] = "latest"
# TODO: append other options using releases detected from git (or maybe just
# 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_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,
# relative to this directory. They are copied after the builtin static files,
# 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"
html_context = {
"display_github": True,
"github_user": "apache",
"github_repo": "nuttx",
"github_version": "master",
"conf_py_path": "/Documentation/",
}
# -- Options for sphinx_tags ----------------------------------------------
tags_create_tags = True