Skip to content

Commit 92a5ce6

Browse files
authored
docs: publish Reader and Writer guides with sample recordings (#74)
1 parent 6facfbe commit 92a5ce6

36 files changed

Lines changed: 2005 additions & 43 deletions

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ jobs:
104104
pnpm check:release-order "$BASE_SHA"
105105
106106
- name: Type and content checks
107-
run: pnpm test:spec && pnpm test:home && pnpm test:deploy:dev && pnpm test:release-update && pnpm check:release && pnpm check
107+
run: pnpm test:spec && pnpm test:home && pnpm test:docs && pnpm test:deploy:dev && pnpm test:release-update && pnpm check:release && pnpm check
108108
env:
109109
GH_TOKEN: ${{ github.token }}
110110

‎.github/workflows/deploy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
MDBASE_TS_DIR: .sources/mdbase
104104

105105
- name: Check and build website
106-
run: pnpm test:spec && pnpm test:home && pnpm check:release && pnpm check && pnpm build
106+
run: pnpm test:spec && pnpm test:home && pnpm test:docs && pnpm check:release && pnpm check && pnpm build
107107
env:
108108
GH_TOKEN: ${{ github.token }}
109109

‎docs/app-documentation.md‎

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Reader and Writer documentation
2+
3+
Reader documentation lives under `src/pages/apps/reader`; Writer documentation lives under
4+
`src/pages/apps/writer`. `src/data/docs-sections.ts` supplies their navigation and the existing
5+
SDK navigation. The Reader extension privacy page remains separate and unchanged.
6+
7+
The guides describe committed application behaviour. They were checked against Reader commit
8+
`74999d1be78749f7333054007f7b5247b6a79ef9` and Writer commit
9+
`9cb61aa5350259f87680072e93100c5e431f0fd8`. Uncommitted local reliability work is not documented
10+
as shipped behaviour. Keep the guides in step with app changes, particularly recovery, exports,
11+
source capture and extension permissions.
12+
13+
## Recordings
14+
15+
The five recordings and posters are served from `public/videos` on the documentation origin.
16+
Do not depend on authenticated GitHub attachments, temporary recording directories or preview
17+
hosting for production playback. MP4s are about 1.5–3.8 MB each. Posters are resized to 960 px.
18+
19+
The recording agent confirmed that all videos use in-memory sample data, with no real account,
20+
private collection content or personal data. Reader samples use public-domain James, Thoreau
21+
and Emerson excerpts and a fictional article. Writer samples use Darwin-themed manuscripts,
22+
public-domain quotations and fictional authors and reviewers. The live Writer demo may use
23+
different sample content.
24+
25+
These are silent recordings with captions burned into the picture. `src/data/doc-videos.json`
26+
provides a text equivalent of each sequence; review that text whenever a video is replaced.
27+
`DocVideo.astro` uses native controls, inline playback, no autoplay or loop, and `preload="none"`.
28+
The page loads a poster; the MP4 is requested on playback. Links permit downloading the files.
29+
30+
| Recording | Placement | SHA-256 of MP4 |
31+
| --- | --- | --- |
32+
| `reader-markdown` | Reader getting started | `facce287ffa892083736bad3c82d83cb41e22ab97914843f6260f7e0ad57f317` |
33+
| `extension-capture` | Reader browser extension | `c57cf032886260fed0370eb206812c52844aad76a07363f31231205c8b287573` |
34+
| `reader-library` | Reader library and views | `81892c8efe4528ee2b6fa93d38eaa2abddde7dc938352ef90fa3b8188a765349` |
35+
| `writer-paper` | Writer getting started | `ce34aa1b8046715dd435ff730568b980116942db10986bb6b3ab06166a62cc14` |
36+
| `writer-book` | Writer chapters and embeds | `a587ba3ec2b23d8c12fdfbea14be2038c1e1276b3bec477728e5c91366b28bd3` |
37+
38+
## Checks and deployment
39+
40+
```sh
41+
pnpm test:docs
42+
pnpm check
43+
pnpm build
44+
MDBASE_SPEC_DIR=/absolute/path/to/mdbase-spec pnpm import:spec
45+
pnpm check:links
46+
```
47+
48+
`test:docs` checks the catalogue, documentation navigation, recording assets and text descriptions,
49+
and opt-in accessible video controls. Site CI and the production build run it too.
50+
51+
Production is the repository's GitHub Pages workflow (`.github/workflows/deploy.yml`), triggered
52+
by a merge to `main`. Cloudflare Pages is only the separate development deployment. Verify
53+
`/apps/`, both documentation roots, all five video files and their posters after deployment.

‎package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@
1818
"test:deploy:dev": "node --test scripts/deploy-pages-dev.test.mjs",
1919
"test:release-update": "node --test scripts/connect-release-record.test.mjs",
2020
"test:home": "node --test scripts/home-animation.test.mjs",
21+
"test:docs": "node --test scripts/app-docs.test.mjs",
2122
"test:spec": "node --test scripts/spec-page.test.mjs",
22-
"test": "pnpm test:spec && pnpm test:home && pnpm test:deploy:dev && pnpm test:release-update && pnpm check:release && pnpm check && pnpm build && pnpm import:spec && pnpm check:links"
23+
"test": "pnpm test:spec && pnpm test:home && pnpm test:docs && pnpm test:deploy:dev && pnpm test:release-update && pnpm check:release && pnpm check && pnpm build && pnpm import:spec && pnpm check:links"
2324
},
2425
"dependencies": {
2526
"@astrojs/sitemap": "^3.7.3",
70.6 KB
Loading
2.56 MB
Binary file not shown.

‎public/videos/reader-library.jpg‎

91.6 KB
Loading

‎public/videos/reader-library.mp4‎

2.01 MB
Binary file not shown.

‎public/videos/reader-markdown.jpg‎

85.7 KB
Loading

‎public/videos/reader-markdown.mp4‎

2.61 MB
Binary file not shown.

0 commit comments

Comments
 (0)