| 1 | # frei0r website maintenance |
| 2 | |
| 3 | The website uses the Dyne-styled VitePress files in this directory and publishes |
| 4 | generated Doxygen documentation in the same artifact. |
| 5 | |
| 6 | ## Requirements |
| 7 | |
| 8 | - Node.js 24 or a compatible current LTS release |
| 9 | - npm |
| 10 | - Doxygen |
| 11 | - Graphviz |
| 12 | |
| 13 | ## Local development |
| 14 | |
| 15 | ```sh |
| 16 | cd docs |
| 17 | npm ci |
| 18 | npm run dev |
| 19 | ``` |
| 20 | |
| 21 | Frontend-only builds do not require Doxygen: |
| 22 | |
| 23 | ```sh |
| 24 | npm run build:site |
| 25 | ``` |
| 26 | |
| 27 | Use this while editing Markdown or the theme. Links under `/codedoc/html/` are |
| 28 | allowed because they are generated in the complete build. |
| 29 | |
| 30 | ## Complete production build |
| 31 | |
| 32 | From `docs/`: |
| 33 | |
| 34 | ```sh |
| 35 | npm ci |
| 36 | npm run build |
| 37 | npm run check |
| 38 | ``` |
| 39 | |
| 40 | `npm run build` runs `doxygen docs/Doxyfile` from the repository root, then |
| 41 | VitePress. Output is written to `docs/.vitepress/dist/`, including the API |
| 42 | reference under `codedoc/html/`. |
| 43 | |
| 44 | Generated Doxygen output under `docs/public/codedoc/`, VitePress output, |
| 45 | caches, and `node_modules` are ignored. |
| 46 | |
| 47 | ## Preview |
| 48 | |
| 49 | ```sh |
| 50 | npm run preview |
| 51 | ``` |
| 52 | |
| 53 | To test operation below a path prefix: |
| 54 | |
| 55 | ```sh |
| 56 | BASE_PATH=/frei0r/ npm run build:site |
| 57 | ``` |
| 58 | |
| 59 | Production currently uses `/frei0r/` because the site is published below |
| 60 | `https://dyne.org/`. |
| 61 | |
| 62 | ## Content policy |
| 63 | |
| 64 | Read `content-sources.md` before changing technical, historical, package or host |
| 65 | support claims: |
| 66 | |
| 67 | 1. The API header and current repository are authoritative. |
| 68 | 2. Current host documentation supports integration claims. |
| 69 | 3. The Dyne article and old sites support history and context. |
| 70 | 4. Wikipedia supplies useful leads, not sole technical evidence. |
| 71 | 5. Historical software must be labelled as historical. |
| 72 | |
| 73 | Preserve the URL contract in `public-urls.md`. |
| 74 | |
| 75 | ## Deployment |
| 76 | |
| 77 | `.github/workflows/pages.yml` validates pull requests and deploys `master` with |
| 78 | GitHub Pages actions. It installs Doxygen and Graphviz, executes the complete |
| 79 | build, checks the artifact, and deploys through the `github-pages` environment. |
| 80 | |
| 81 | See `DEPLOYMENT.md` for Pages settings, custom-domain setup and production |
| 82 | verification. |
| 83 | |
| 84 | ## Template |
| 85 | |
| 86 | The reusable Dyne theme and public assets live directly under `docs/.vitepress/` |
| 87 | and `docs/public/`. Do not reintroduce a nested scaffold copy unless the parent |
| 88 | site generator requires it again. |