This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch releases/12.10
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/12.10 by this push:
     new a8a57dd0c9 docs/conf.py: Fix missing nuttx_versions
a8a57dd0c9 is described below

commit a8a57dd0c907fc588b6171257d9c605b2e556625
Author: Matteo Golin <[email protected]>
AuthorDate: Mon Jun 2 20:06:34 2025 -0400

    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 <[email protected]>
---
 Documentation/conf.py | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)

diff --git a/Documentation/conf.py b/Documentation/conf.py
index ea87837117..98b7074697 100644
--- a/Documentation/conf.py
+++ b/Documentation/conf.py
@@ -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

Reply via email to