Repository navigation
Checks and Previews
Every change answers two questions on its own: is it correct, and how will it look?
β
Built in Phase 3 and merged into docs2/tier1-getting-started (pull request #1362).
| When | π€ Image bot | β Checks | π Preview | π¬ Comment |
|---|---|---|---|---|
A pull request touches docs2/
|
β files images, commits back | β | β
/preview/pr-<number>/
|
β one comment, updated on every push |
A Pages CMS save on a docs2/β¦ branch |
β | β | β
/preview/branch-<name>/
|
Job summary |
| A pull request from a fork | Dry run only | β | Download from the run | β |
The workflow is .github/workflows/docs2.yml. It lives on the docs branches only; master is untouched.
| Check | Fails the change | Example |
|---|---|---|
| π Front matter | β yes |
status must be draft, needs-review or reviewed; version: "5.1" in quotes |
| π Unique page IDs and addresses | β yes | Two pages with slug: installation in one section |
| π Links between pages | β yes |
[Timeline](../timeline.md) points nowhere |
| πΌοΈ Images exist | β yes |  |
| β»οΈ Shared sections exist | β yes |
shared: lists a file that is not in docs2/snippets/
|
| π§ Sidebar | β yes |
nav.yml lists a page that does not exist |
| π·οΈ Alt text | π‘ warning | Empty on a screenshot, or still the file name (small icons may be empty) |
| ποΈ Editor-safe text | π‘ warning | A backslash or <br> the editor would drop |
| π€ Waiting images | π‘ warning | An image still in the library root or _inbox/
|
The changed pages, drawn with the same doc kit CSS as the website (docs2/tools/preview/doc-kit.css, copied from the Webflow template):
- π‘ callouts, β¨οΈ keycaps, π§ menu chips, πΌοΈ floated screenshots, β»οΈ shared sections filled in, π¬ videos, π tables
- the sidebar, the page sections outline, light and dark mode
- βοΈ Edit this page opens the page in Pages CMS; π View the Markdown opens it on GitHub
The front page of each preview shows the check results and what the image bot did.
| Where | Set |
|---|---|
| βοΈ Settings β Actions β General β Workflow permissions | Read and write permissions (the bot commits filed images and the preview) |
| π Settings β Pages β Build and deployment |
Deploy from a branch β gh-pages / (root); the first preview run creates the branch |
Previews then open at https://bforartists.github.io/Manual/preview/<pr-N or branch-name>/.
pip install -r docs2/tools/requirements.txt
python3 docs2/tools/image_bot.py . --dry-run # what the bot would file
python3 docs2/tools/check.py . # exit code 1 when something must be fixed
python3 docs2/tools/render.py . --out _preview # open _preview/index.html| Tool | Does |
|---|---|
docs2/tools/check.py |
All checks; writes a Markdown report |
docs2/tools/image_bot.py |
Files new images (Images and screenshots) |
docs2/tools/patterns.py |
The plain-writing recogniser, shared by the preview and the website sync |
docs2/tools/render.py |
Builds the preview pages |
docs2/tools/docs_io.py |
Shared helpers: pages, front matter, links |
π Bforartists Manual wiki Β· GPL v3 Β· Repository Β· Website Β· Report a docs problem Β· These pages are kept in docs2/dev-docs/ and copied here, so edit them there.
π Home
βοΈ Writing
- βοΈ Editing the docs online
- βοΈ Plain writing
- πΌοΈ Images and screenshots
- π Formatting standard
- β»οΈ Shared sections
- π Reference Manual writing guide
βοΈ How it works
- πΊοΈ How Docs 2.0 works
- πΏ Branches and review
- π Converting chapters
- β Checks and previews
- π Website sync
π§° Maintaining
- π§° Maintainer guide
- π§ Structure and navigation
- πΊοΈ Workspace maps
- β¨οΈ Keymap
- ποΈ Site scripts
- π Release update
- π©Ί Troubleshooting
π Status