Author: Balázs Benics
Date: 2026-07-03T14:49:33+01:00
New Revision: 1d577d28b2d259e99795d4f523d527335b04075d

URL: 
https://github.com/llvm/llvm-project/commit/1d577d28b2d259e99795d4f523d527335b04075d
DIFF: 
https://github.com/llvm/llvm-project/commit/1d577d28b2d259e99795d4f523d527335b04075d.diff

LOG: [analyzer][docs] Fix invalid MyST toctree 'numbered' option after Markdown 
migration (#207217)

The RST-to-Markdown migration (#206181) converted the RST flag
`:numbered:` into `:numbered: true`.

MyST parses the toctree `numbered` option as `int_or_nothing`, so the
string `true` fails with:

```
'toctree': Invalid option value for 'numbered': true:
invalid literal for int() with base 10: 'true'
```

This breaks the `-W` (warnings-as-errors) `docs-clang-html` build.
Make `numbered` a valueless flag, which MyST accepts (equivalent to the
original RST behavior of numbering all levels).

Assisted-By: claude

Added: 
    

Modified: 
    clang/docs/ClangStaticAnalyzer.md
    clang/docs/ScalableStaticAnalysis/index.md

Removed: 
    


################################################################################
diff  --git a/clang/docs/ClangStaticAnalyzer.md 
b/clang/docs/ClangStaticAnalyzer.md
index 0172c6f4a5e9d..edb76249a9f8a 100644
--- a/clang/docs/ClangStaticAnalyzer.md
+++ b/clang/docs/ClangStaticAnalyzer.md
@@ -10,7 +10,7 @@ This is the documentation page of the Static Analyzer; there 
is also an old [Off
 ```{toctree}
 :caption: Table of Contents
 :maxdepth: 2
-:numbered: true
+:numbered:
 
 analyzer/checkers
 analyzer/user-docs

diff  --git a/clang/docs/ScalableStaticAnalysis/index.md 
b/clang/docs/ScalableStaticAnalysis/index.md
index 841fbb1bd3bc5..37cebb69d06a2 100644
--- a/clang/docs/ScalableStaticAnalysis/index.md
+++ b/clang/docs/ScalableStaticAnalysis/index.md
@@ -5,7 +5,7 @@ This is a framework for writing cross-translation unit analyses 
in a scalable an
 ```{toctree}
 :glob: true
 :maxdepth: 2
-:numbered: true
+:numbered:
 
 user-docs/*
 ```


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to