[clang-tools-extra] [clang-doc] Add button a toggle for light/dark theme (PR #181587)

via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 15 16:38:24 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 3112 tests passed
* 7 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang Tools
<details>
<summary>Clang Tools.clang-doc/basic-project.mustache.test</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp && mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/build
# executed command: rm -rf /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp
# note: command had no output on stdout or stderr
# executed command: mkdir -p /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/build
# note: command had no output on stdout or stderr
# RUN: at line 2
sed 's|$test_dir|/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc|g' /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json > /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/build/compile_commands.json
# executed command: sed 's|$test_dir|/home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc|g' /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/database_template.json
# note: command had no output on stdout or stderr
# RUN: at line 4
clang-doc --format=html --output=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs --executor=all-TUs /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/build/compile_commands.json
# executed command: clang-doc --format=html --output=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs --executor=all-TUs /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/build/compile_commands.json
# .---command stdout------------
# | Emiting docs in html format.
# | Mapping decls...
# | Collecting infos...
# | Reducing 5 infos...
# | Generating docs...
# | Generating assets for docs...
# `-----------------------------
# .---command stderr------------
# | [1/3] Processing file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Rectangle.cpp
# | [2/3] Processing file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Calculator.cpp
# | [3/3] Processing file /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/Inputs/basic-project/src/Circle.cpp
# `-----------------------------
# RUN: at line 5
FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/basic-project.mustache.test -input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html -check-prefix=HTML-SHAPE
# executed command: FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/basic-project.mustache.test -input-file=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html -check-prefix=HTML-SHAPE
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/basic-project.mustache.test:16:13: error: HTML-SHAPE: expected string not found in input
# | HTML-SHAPE: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" media="(prefers-color-scheme: light)">
# |             ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html:7:46: note: scanning from here
# |  <script src="../mustache-index.js"></script>
# |                                              ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html:8:24: note: possible intended match here
# |  <link id="hljs-light-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" />
# |                        ^
# | 
# | Input file: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/tools/extra/test/clang-doc/Output/basic-project.mustache.test.tmp/docs/html/GlobalNamespace/_ZTV5Shape.html
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang-tools-extra/test/clang-doc/basic-project.mustache.test
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: <!DOCTYPE html> 
# |             2: <html lang="en-US"> 
# |             3: <head> 
# |             4:  <meta charset="utf-8"/> 
# |             5:  <title>Shape</title> 
# |             6:  <link rel="stylesheet" type="text/css" href="../clang-doc-mustache.css"/> 
# |             7:  <script src="../mustache-index.js"></script> 
# | check:16'0                                                  X error: no match found
# |             8:  <link id="hljs-light-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/default.min.css" /> 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:16'1                            ?                                                                                                                   possible intended match
# |             9:  <link id="hljs-dark-theme" rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/dark.min.css" /> 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            10:  <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0&icon_names=routine" /> 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            11:  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script> 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            12:  <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/languages/cpp.min.js"></script> 
# | check:16'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            13: </head> 
# | check:16'0     ~~~~~~~~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/181587


More information about the cfe-commits mailing list