Commit 11ae130
fix(docs): render every sidebar link, not just /docs/docker (#396)
Only `/docs/docker` had a corresponding `app/docs/<slug>/page.tsx`,
so the other 17 sidebar links 404'd and `/docs` itself rendered an
empty `<div>` next to a sidebar full of dead links. The Next.js
rewrite was started in commit e9ebe3d ("Started with integrating
documentation") and only completed the docker page in be54131.
This finishes the migration without hand-porting each markdown file
to JSX:
- `app/docs/[slug]/page.tsx` reads `docs-content/<slug>.md` at build
time, parses with `marked` (already a dep), and renders into a
`.markdown-body` article. `generateStaticParams` enumerates the
slugs so all pages are pre-rendered into the static export.
- The 17 markdown files are vendored into `docs-content/` from
`etherpad/doc/` (canonical upstream source).
- The `app/docs/page.tsx` index now lists the available pages
grouped by section instead of being empty.
- The hard-coded `app/docs/docker/page.tsx` is removed; the dynamic
route handles docker uniformly.
- `DocSidebar` had two links pointing at `/docs/plugins`; the API
one now points at `/docs/pluginfw` (matching the upstream filename
`pluginfw.md`). The Easysync entries point at the original PDFs,
which are now hosted under `public/easysync/`.
- `app/index.css` gains a `.markdown-body` typography block for the
dark theme: headings, lists, tables, code blocks, blockquotes.
Verified with `pnpm build`: 17 doc routes generate static HTML, and
the rendered pages contain the expected headings and code blocks.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 01657b2 commit 11ae130
24 files changed
Lines changed: 3914 additions & 223 deletions
File tree
- app
- docs
- [slug]
- docker
- docs-content
- public/easysync
- src/components
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
3 | 2 | | |
4 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 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 | + | |
5 | 75 | | |
0 commit comments