Skip to content

Commit 2a4d190

Browse files
committed
docs: restyle the site in white and ink, with the logo's yellow as a signal
The paper-yellow background, beige code blocks, full-width yellow sponsor band and Material's indigo buttons made the site look yellowish and put two brand colors side by side. Pages are now white (or near-black in dark mode) with ink buttons; yellow is kept for the logo, the circle around the headline, the square before each section label, the line through the "pin the same LLVM version" band and the underline of text links. - home.css: every color is a token, set again for the slate scheme, so the home page follows dark mode; the header gets the light/dark toggle - shared.css: the same colors for every docs site that loads it (this site, the action, clang-tools, cpp-linter-rs and cpp-linter v1) - mkdocs.yml: custom primary and accent, so no indigo is left - og-image.png: redrawn on white
1 parent 871c84c commit 2a4d190

5 files changed

Lines changed: 353 additions & 201 deletions

File tree

‎docs/overrides/home.html‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@
3030
{% endfor %}
3131
</div>
3232
<div class="cl-header__actions">
33+
{#- The light/dark toggle of the docs pages. Without it the home page
34+
would stay light even when the system or the reader picked dark. -#}
35+
{% if config.theme.palette and not config.theme.palette is mapping %}
36+
{% include "partials/palette.html" %}
37+
{% include "partials/javascripts/palette.html" %}
38+
{% endif %}
3339
{% if "material/search" in config.plugins %}
3440
{% set search = config.plugins["material/search"] | attr("config") %}
3541
{% if search.enabled %}
@@ -203,7 +209,7 @@ <h3 class="cl-h3">{{ tool.title }}</h3>
203209
("octicons/git-pull-request-24", "On the pull request", "cpp-linter-action", "version: '21'", "Checks the files the pull request changes and annotates the findings."),
204210
("octicons/terminal-24", "In other CI", "cpp-linter", "--version=21", "The same checks as one Python command. Install LLVM 21 first: without it, --version=21 falls back to whatever clang-format is on PATH."),
205211
] %}
206-
<section class="cl-band cl-band--indigo">
212+
<section class="cl-band cl-band--night">
207213
<div class="cl-wrap">
208214
<div class="cl-intro">
209215
<div>

‎docs/static/og-image.png‎

1.63 KB
Loading

0 commit comments

Comments
 (0)