Skip to content

Commit 09b1cd0

Browse files
committed
docs: describe the build and the files other projects load
The README now lists how to build and preview the site, and warns that shared.css and install-wheel.sh are loaded from the published site by other cpp-linter repositories.
1 parent 5de06d2 commit 09b1cd0

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

‎README.md‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,22 @@ This repository hosts the public site at <https://cpp-linter.github.io/>, includ
2121
- "Why cpp-linter?": how the toolchain compares with other clang-format / clang-tidy actions and hooks
2222
- Showcase of open-source projects that use cpp-linter
2323
- Blog posts and guides
24-
- Clang tools distribution guides (static binaries, Docker images, Python wheels)
25-
- Discussion and community entry points
24+
- Links to the clang tools packages (pip, Homebrew, asdf, static binaries, Docker images, wheels)
25+
- Community entry points and the sponsor page
26+
27+
## Build
28+
29+
```bash
30+
pipx run nox -s docs # build into site/
31+
pipx run nox -s docs-live # preview with live reload
32+
```
33+
34+
## Files other projects use
35+
36+
Other repositories load these files from the published site, so do not rename or remove them
37+
without updating those repositories:
38+
39+
- `docs/stylesheets/shared.css`, served at <https://cpp-linter.github.io/stylesheets/shared.css>,
40+
is loaded by the docs sites of cpp-linter-action, cpp-linter, clang-tools-pip and cpp-linter-rs.
41+
- `docs/install-wheel.sh`, served at <https://cpp-linter.github.io/install-wheel.sh>, is used by
42+
the clang-tools-wheel README and its release workflow.

‎noxfile.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@nox.session
77
def docs(session: nox.Session) -> None:
8-
"""Build the docs with sphinx."""
8+
"""Build the docs with MkDocs."""
99
session.install("-r", "docs/requirements.txt")
1010
session.run("mkdocs", "build")
1111

0 commit comments

Comments
 (0)