[clang] b9d5b85 - [clang][CIR][docs] Fix invalid MyST toctree 'numbered' option (#213898)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 8 02:49:55 PDT 2026
Author: Balázs Benics
Date: 2026-08-08T10:49:49+01:00
New Revision: b9d5b85942f2d1d9a1898f5efc5c63bb9f43b66b
URL: https://github.com/llvm/llvm-project/commit/b9d5b85942f2d1d9a1898f5efc5c63bb9f43b66b
DIFF: https://github.com/llvm/llvm-project/commit/b9d5b85942f2d1d9a1898f5efc5c63bb9f43b66b.diff
LOG: [clang][CIR][docs] Fix invalid MyST toctree 'numbered' option (#213898)
Similar to #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).
Added:
Modified:
clang/docs/CIR/index.md
Removed:
################################################################################
diff --git a/clang/docs/CIR/index.md b/clang/docs/CIR/index.md
index a594ac50dbf67..a418c4ae5caa9 100644
--- a/clang/docs/CIR/index.md
+++ b/clang/docs/CIR/index.md
@@ -14,7 +14,7 @@ a position between Clang's AST and LLVM IR.
```{toctree}
:maxdepth: 1
-:numbered: true
+:numbered:
ABILowering
CleanupAndEHDesign
More information about the cfe-commits
mailing list