-
-
Notifications
You must be signed in to change notification settings - Fork 16
docs: rebuild the documentation site as a product surface #515
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
0eb515a
docs: move navigation to the sidebar and expand the rules reference
shenxianpeng 0f4c3ca
docs: correct the subject-length defaults and verify docs against the…
shenxianpeng c76cfc6
test: narrow the documented-default parser to a type mypy accepts
shenxianpeng 8ac35f5
test: stop benchmarking the documentation consistency checks
shenxianpeng d684332
docs: rebuild the documentation site on MkDocs Material (#516)
shenxianpeng 6ad7945
ci: expand DEPLOY_PRIME_URL where the shell can see it
shenxianpeng a2dfd9f
docs: fix the redirect loop and eleven review findings
shenxianpeng f1b4631
docs: add the original logo as a vectorized SVG
shenxianpeng 02c7088
docs: put the logo on a white tile so it shows on the blue header
shenxianpeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,3 +19,7 @@ _build/ | |
| docs/_build | ||
| docs/cli_args.rst | ||
| docs/__pycache__ | ||
|
|
||
| # MkDocs | ||
| site/ | ||
| docs/cli.md | ||
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| /* Brand palette ----------------------------------------------------------- | ||
| Material's "custom" primary/accent read these variables. */ | ||
| :root { | ||
| --cc-brand: #2c9ccd; | ||
| --cc-brand-dark: #1e85a8; | ||
| --cc-brand-light: #5bb3d9; | ||
| /* The brand blue only reaches 4.2:1 on white; links need 4.5:1. */ | ||
| --cc-link: #176b89; | ||
|
|
||
| --md-primary-fg-color: var(--cc-brand); | ||
| --md-primary-fg-color--light: var(--cc-brand-light); | ||
| --md-primary-fg-color--dark: var(--cc-brand-dark); | ||
| --md-accent-fg-color: var(--cc-brand-dark); | ||
| } | ||
|
|
||
| [data-md-color-scheme="slate"] { | ||
| --md-primary-fg-color: var(--cc-brand); | ||
| --md-accent-fg-color: var(--cc-brand-light); | ||
| --md-typeset-a-color: var(--cc-brand-light); | ||
| } | ||
|
|
||
| [data-md-color-scheme="default"] { | ||
| --md-typeset-a-color: var(--cc-link); | ||
| } | ||
|
|
||
| /* Landing page ------------------------------------------------------------- | ||
| The hero is the first thing a visitor sees, so it carries the value | ||
| proposition rather than a badge wall. */ | ||
| .cc-hero { | ||
| text-align: center; | ||
| padding: 3.5rem 1rem 2.5rem; | ||
| } | ||
|
|
||
| .cc-hero h1 { | ||
| font-size: 2.9rem; | ||
| line-height: 1.15; | ||
| font-weight: 800; | ||
| letter-spacing: -0.02em; | ||
| margin: 0 0 0.6rem; | ||
| } | ||
|
|
||
| .cc-hero p { | ||
| font-size: 1.05rem; | ||
| max-width: 40rem; | ||
| margin: 0 auto 1.8rem; | ||
| color: var(--md-default-fg-color--light); | ||
| } | ||
|
|
||
| .cc-hero .md-button { | ||
| margin: 0.3rem; | ||
| } | ||
|
|
||
| /* Hide the redundant H1 that MkDocs renders above a custom hero. */ | ||
| .cc-hero + hr { | ||
| display: none; | ||
| } | ||
|
|
||
| /* Feature grid: uses Material's card grid, tightened up a little. */ | ||
| .md-typeset .grid.cards > ul > li { | ||
| border-radius: 0.4rem; | ||
| transition: border-color 125ms, box-shadow 125ms; | ||
| } | ||
|
|
||
| .md-typeset .grid.cards > ul > li:hover { | ||
| border-color: var(--cc-brand); | ||
| box-shadow: 0 0 0 1px var(--cc-brand); | ||
| } | ||
|
|
||
| .md-typeset .grid.cards > ul > li > hr { | ||
| margin: 0.6rem 0; | ||
| } | ||
|
|
||
| /* Tables ------------------------------------------------------------------- | ||
| Cells align to the top so short values line up with a wrapped message. */ | ||
| .md-typeset table:not([class]) td, | ||
| .md-typeset table:not([class]) th { | ||
| vertical-align: top; | ||
| } | ||
|
|
||
| /* In the rule index tables only, keep codes, names and CLI flags on one line | ||
| so the tables stay scannable. Other tables hold long regexes and lists that | ||
| must stay wrappable. */ | ||
| .md-typeset table.rules-index td code { | ||
| white-space: nowrap; | ||
| } | ||
|
|
||
| /* Sidebar section headings ("Getting started", "Reference", ...) */ | ||
| .md-nav__item--section > .md-nav__link { | ||
| font-weight: 700; | ||
| color: var(--md-default-fg-color); | ||
| } | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.