Repository navigation
Commit 0f41125
authored
feat: redesign the landing page and brand (#43)
## What changes
**Home page.** Rewritten around what a visitor needs to know first:
- Hero: "Catch bad commits before they merge", with an animated
commit-msg hook that rejects `Fix: add streaming support`, suggests the
fix, and accepts it.
- *Where it runs*: one `cchk.toml` fanning out to the five entry points
(CLI, pre-commit, Action, App, MCP), each a card linking to its guide.
On a phone these become a list.
- *commit-check-action*: a tabbed demo of `pr-comments`, `job-summary`,
`pr-title`, `message` and `branch`, plus a copyable workflow.
- Rule groups, the anatomy of a finding, who uses it, pricing, the
existing FAQ, and a site map.
**Brand, site-wide.**
- New mark (a commit on a history line, ticked).
- Ink header and footer on every page.
- Signal Blue stays at the badge's `#2c9ccd`.
- Bricolage Grotesque for headings, and Instrument Sans for text in
place of Inter.
- The favicon, touch icon and social cards are regenerated to match.
**Pricing.** The Team plan reads "Coming soon" on the home page and in
the App guide.
## How the demos work
`docs/javascripts/landing.js` is a small timeline player. The markup in
`index.md` carries `data-on` / `data-from` / `data-until` / `data-type`
/ `data-hl` attributes (documented at the top of the file), and
`landing.css` defines each state.
- **Without JavaScript or under `prefers-reduced-motion`:** every demo
shows its final frame, and the Action panels are listed one under
another.
- **While scrolled out of view:** the animations pause.
- **With instant navigation:** they start on arrival and stop on leave.
- **Keyboard:** the Action demo's tabs are an ARIA tablist and respond
to the arrow keys.
The sample output comes from real commit-check 2.18.0 runs. The only
omission is the ASCII-art banner, and HTML comments say so where it is
left out. Code ligatures are off, so `==>` is not drawn as an arrow.
The workflow snippet adds `types: [..., edited]`. It enables `pr-title`,
and the Action README notes that without `edited` an edited title is not
re-checked.
## Docs sync
- Latest release is 2.18.0 on PyPI.
- The changelog has its dated entry.
- All four `rev:` pins name v2.18.0.
- `python -m pytest tests/ -q` passes (10 tests).
- `mkdocs build --strict` passes, with and without social cards.
## Not in this PR
- `docs/terms.md` still mentions a 14-day Team trial; it is a legal
page, left for a separate decision.
- `demo.gif`, `demo-poster.png` and `merge-box.png` are no longer
referenced by any page.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Documentation**
* Redesigned the landing page with an overview of where the product
runs, grouped rule descriptions, usage information, and updated pricing.
* Added an interactive GitHub Action demo with tabs, animated examples,
and copyable setup instructions.
* Updated the pricing information: the Team plan is marked “Coming
soon,” with private-repository coverage available through the GitHub
Action until launch.
* **Style**
* Refreshed the documentation’s colors, typography, and page layout for
a more consistent look in light and dark modes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent e867fb5 commit 0f41125
11 files changed
Lines changed: 3222 additions & 527 deletions
File tree
- docs
- assets
- guides
- javascripts
- overrides
- static
- stylesheets
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
7 | | - | |
| 14 | + | |
8 | 15 | | |
9 | 16 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
17 | 25 | | |
18 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
19 | 30 | | |
20 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
21 | 40 | | |
22 | 41 | | |
23 | 42 | | |
24 | 43 | | |
25 | 44 | | |
26 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
27 | 103 | | |
28 | 104 | | |
29 | 105 | | |
| |||
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
0 commit comments