docs: add shared styles for the cpp-linter docs sites - #64
Merged
Merged
Conversation
The action, clang-tools, cpp-linter and cpp-linter-rs docs each carry a copy of the same rules. Put them in docs/stylesheets/shared.css, served at https://cpp-linter.github.io/stylesheets/shared.css, so every site loads one file: table headers, "important" admonitions, badges, the "experimental" badge icon and the code annotation buttons. extra.css keeps the rules only the hub uses. Dropped from it: the drawer title color, which the indigo palette already sets, and the .md-banner rules, since no site has an announcement bar.
✅ Deploy Preview for cpp-linter-github-io ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This was referenced Sep 24, 2026
Merged
Member
Author
|
I’d also like to redesign the current webpage using this style. Please feel free to share any feedback or suggestions. |
2bndy5
approved these changes
Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
docs/stylesheets/shared.css, served at https://cpp-linter.github.io/stylesheets/shared.css. The product docs sites load it instead of keeping their own copies of the same rules.It holds the rules that at least two sites share today: table headers,
importantadmonitions, badges, the "experimental" badge icon (MkDocs and Sphinx variants) and the code annotation buttons. Rules only one site needs stay in that site's stylesheet.extra.cssloses the moved rules, the drawer title color (the indigo palette already sets it) and the.md-bannerrules (no site has an announcement bar). In a local build the hero, stats, logo grid, tabs and tables look the same as before.This needs to be deployed before the other PRs merge; until then those sites lose their badge and table header styles.