|
| 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. |
0 commit comments