Repository navigation
Commit 317f7b7
authored
docs: redesign the home page and revise the inner pages (#65)
Redesigns the home page and brings the rest of the site to the same look
and the same facts. The current home page reads like a docs index; this
one says what cpp-linter does and sends visitors to the right tool.
What is on the home page:
- Hero: what cpp-linter does, an "Add it to a repository" button, and an
illustration of what lands on a pull request (a clang-tidy review
suggestion from github-actions and the auto-fix commit) inside the
logo's circle and check.
- "Pick where the checks run": the action, the pre-commit hooks, the CLI
and clang-tools, each with a command.
- "Pin the same LLVM version in each tool", with the setting each tool
uses.
- What reviewers see: annotations by default; review suggestions, the
summary comment and auto-fix with the input and permission each needs.
- Showcase projects, a one-file quick start and a sponsor band.
Site-wide:
- In the light scheme, inner pages use the home page's paper background,
light header and tabs, ink footer, and fonts (Instrument Sans, JetBrains
Mono, Bricolage Grotesque for headings). Fonts load from
`docs/overrides/main.html` and `theme.font` is `false`.
- The dark scheme (palette toggle) uses the same layout in the home
page's ink tones: `#16182a` background and header, warm light text, a
lighter indigo for links. The home page itself stays light.
How it is built:
- `docs/overrides/home.html` overrides the header, hero, content and
footer blocks. The header keeps the `md-header` class and includes
Material's search partial, so search works as before.
- `docs/stylesheets/home.css` loads on the home page only. `extra.css`
loses the rules only the old home page used.
Facts: every statement on the home page was checked against the repos
and live data. That changed a few things beyond the copy:
- The logo wall (Microsoft, NASA, Samsung, …) is replaced by eight
showcase projects with an active workflow that uses the action.
- Waybar keeps the action only in a disabled `.yml.bak` workflow, so it
is removed from the home page and `showcase.md`, and the star total
drops from 87,000+ to 75,000+. The other 34 showcase projects were
rechecked.
- The download count is dropped: the last 30 days across the three PyPI
packages is below 30K and counts the same CI runs twice.
- "MIT licensed" became "open source": the Docker images and the static
binaries are not MIT.
Inner pages, after a review of every page:
- Layout: buttons match the home page, and pages that are a section of
their own hide the left navigation, which only repeated the tab name.
The why page's comparison table and the sponsor size chart fit without
sideways scrolling. Tab labels match the home header (Get started, Why
cpp-linter, Community). The prev/next footer is gone, since it pointed
at blog archive pages. Blog tags are shown.
- Get started gives a working setup for each tool instead of two lists
of links, with the home page's names, version ranges and caveats.
cpp-linter-rs is mentioned as a release candidate instead of being
recommended.
- Why cpp-linter and the three blog posts were checked against the tools
and the other projects' sources on 2026-09-24. Auto-fix shipped in
v2.23.0. On pull requests from forks only annotations work and
`thread-comments` fails the step, so the examples skip it there. The
action installs clang with apt on Linux and Homebrew on macOS, so "the
bytes match" was wrong. `--checks=.clang-tidy` adds a check pattern, not
a config file. `format-review` and `tidy-review` together duplicate
suggestions. `--all-files` in CI keeps "format as you go" teams red.
- Showcase: Jupyter Xeus (hook commented out), Rancher Sandbox (moved to
Kubewarden) and Bosch Research (forks only) are replaced by projects
that run the hook.
- Sponsor: no shop wording ("ordering", "refunds") for shirts that are
not for sale, the chest row says it is measured laid flat, and the two
photos are 280 KB instead of 8.4 MB.
- Community (was Discussion) says where to ask, report bugs and security
problems, and contribute.
- The orphan `blog/author/team` page is removed, `overrides/` and
`requirements.txt` are no longer published, and `site_description`
describes cpp-linter.
Checked with `mkdocs build --strict`, the pre-commit hooks, a request to
every added URL, and in a browser at 1440, 1280, 1024 and 375 px in
light and dark schemes: no horizontal overflow, search returns results,
the copy button works, and the phone menu and drawer open.1 parent 84c9bf0 commit 317f7b7
22 files changed
Lines changed: 2985 additions & 762 deletions
File tree
- docs
- blog
- author
- posts
- overrides
- static/merch
- stylesheets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | | - | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
33 | | - | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | | - | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | | - | |
50 | 52 | | |
51 | 53 | | |
52 | | - | |
53 | | - | |
54 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
73 | | - | |
| 75 | + | |
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| |||
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
85 | | - | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
101 | | - | |
102 | | - | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
107 | 118 | | |
108 | 119 | | |
109 | 120 | | |
| |||
114 | 125 | | |
115 | 126 | | |
116 | 127 | | |
117 | | - | |
| 128 | + | |
| 129 | + | |
118 | 130 | | |
119 | 131 | | |
120 | 132 | | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
126 | 139 | | |
127 | 140 | | |
128 | 141 | | |
| |||
137 | 150 | | |
138 | 151 | | |
139 | 152 | | |
140 | | - | |
| 153 | + | |
141 | 154 | | |
142 | 155 | | |
143 | | - | |
144 | | - | |
| 156 | + | |
| 157 | + | |
145 | 158 | | |
146 | 159 | | |
147 | 160 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
151 | 164 | | |
152 | 165 | | |
153 | 166 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | | - | |
41 | | - | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
46 | | - | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
58 | | - | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | | - | |
62 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
66 | 72 | | |
67 | 73 | | |
68 | | - | |
69 | | - | |
| 74 | + | |
| 75 | + | |
70 | 76 | | |
71 | 77 | | |
72 | 78 | | |
| |||
85 | 91 | | |
86 | 92 | | |
87 | 93 | | |
88 | | - | |
| 94 | + | |
89 | 95 | | |
90 | 96 | | |
91 | 97 | | |
| |||
94 | 100 | | |
95 | 101 | | |
96 | 102 | | |
97 | | - | |
| 103 | + | |
98 | 104 | | |
99 | 105 | | |
100 | 106 | | |
101 | 107 | | |
102 | 108 | | |
103 | 109 | | |
104 | 110 | | |
105 | | - | |
106 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
107 | 115 | | |
108 | 116 | | |
109 | 117 | | |
110 | | - | |
| 118 | + | |
111 | 119 | | |
112 | | - | |
113 | | - | |
| 120 | + | |
| 121 | + | |
114 | 122 | | |
115 | 123 | | |
116 | 124 | | |
| |||
122 | 130 | | |
123 | 131 | | |
124 | 132 | | |
125 | | - | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
126 | 136 | | |
127 | 137 | | |
128 | 138 | | |
129 | | - | |
130 | | - | |
| 139 | + | |
| 140 | + | |
131 | 141 | | |
132 | 142 | | |
133 | | - | |
| 143 | + | |
134 | 144 | | |
135 | 145 | | |
136 | | - | |
137 | | - | |
138 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
139 | 149 | | |
140 | 150 | | |
141 | 151 | | |
142 | 152 | | |
143 | 153 | | |
144 | 154 | | |
145 | 155 | | |
146 | | - | |
| 156 | + | |
147 | 157 | | |
148 | 158 | | |
149 | 159 | | |
150 | 160 | | |
151 | 161 | | |
152 | | - | |
| 162 | + | |
153 | 163 | | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
0 commit comments