| 1 | # Website deployment |
| 2 | |
| 3 | The repository workflow `.github/workflows/pages.yml` builds VitePress and |
| 4 | Doxygen, uploads `docs/.vitepress/dist`, and deploys it with GitHub Pages. |
| 5 | |
| 6 | ## One-time repository configuration |
| 7 | |
| 8 | 1. Open **Settings → Pages** in `dyne/frei0r`. |
| 9 | 2. Set **Source** to **GitHub Actions**. |
| 10 | 3. Keep the public site configured for the `/frei0r/` path on `dyne.org`. |
| 11 | 4. If you later move the site back to the `frei0r.dyne.org` custom domain, |
| 12 | set `BASE_PATH=/` before deployment. |
| 13 | 5. Enable **Enforce HTTPS** on the live site if the platform exposes that toggle. |
| 14 | |
| 15 | The workflow uses the protected `github-pages` environment. Repository |
| 16 | administrators may add deployment reviewers or branch rules there. |
| 17 | |
| 18 | `docs/public/CNAME` preserves the custom-domain value in the static artifact and |
| 19 | alternate publishing tools, but it is not used for the current subpath |
| 20 | deployment. |
| 21 | |
| 22 | ## DNS |
| 23 | |
| 24 | Before cutover, confirm that `dyne.org/frei0r/` resolves and serves the site |
| 25 | you expect: |
| 26 | |
| 27 | ```powershell |
| 28 | Resolve-DnsName dyne.org |
| 29 | ``` |
| 30 | |
| 31 | Do not change DNS and the publishing source at the same time unless rollback |
| 32 | has been prepared. The existing `gh_pages` branch remains available during the |
| 33 | first deployment. |
| 34 | |
| 35 | ## Manual validation |
| 36 | |
| 37 | Run the website workflow with **workflow_dispatch** on `master`, or merge a |
| 38 | documentation change after Pages is configured. Confirm the build job contains: |
| 39 | |
| 40 | - `docs/.vitepress/dist/index.html` |
| 41 | - `docs/.vitepress/dist/codedoc/html/index.html` |
| 42 | |
| 43 | After deployment, verify: |
| 44 | |
| 45 | ```text |
| 46 | https://dyne.org/frei0r/ |
| 47 | https://dyne.org/frei0r/pics/fla_name_lb.webp |
| 48 | https://dyne.org/frei0r/pics/frei0r.png |
| 49 | https://dyne.org/frei0r/frei0r-all.webm |
| 50 | https://dyne.org/frei0r/codedoc/html/ |
| 51 | https://dyne.org/frei0r/codedoc/html/frei0r_8h.html |
| 52 | ``` |
| 53 | |
| 54 | Check that: |
| 55 | |
| 56 | - HTTP redirects to HTTPS. |
| 57 | - Page metadata names `https://dyne.org/frei0r/` as canonical. |
| 58 | - VitePress navigation, assets and local search work. |
| 59 | - Doxygen pages load their CSS, scripts and diagrams. |
| 60 | - GitHub and Telegram links lead to the intended project destinations. |
| 61 | |
| 62 | Keep `gh_pages` until these checks have passed in production. It is historical |
| 63 | content and a rollback source, not the new publication mechanism. |