|
| 1 | +# Documentation site |
| 2 | + |
| 3 | +## Goal |
| 4 | + |
| 5 | +Move the user documentation to a Docusaurus site in `docs/`, published on GitHub Pages, and keep `README.md` minimal. |
| 6 | + |
| 7 | +## Context |
| 8 | + |
| 9 | +- `README.md` (426 lines) holds the whole user guide: usage, artifacts, every property, assets, templates, runtime JVM options, snapshots, building and publishing. |
| 10 | +- `docs/` has per-platform property pages, Maven/Gradle samples, `manifest.md`, the Windows tools guide and a DMG image. Some content is outdated or wrong (old `fvarrui` links, bad Windows paths in samples, old bundle names, a broken XML closing tag) and some properties only link to the code (`fileAssociations`, `scripts`). |
| 11 | +- No GitHub Pages site yet. Node 26 and npm are available locally. |
| 12 | +- Decisions (user, 2026-10-11): publish from `main` (the site documents the latest release), no versioned docs. |
| 13 | + |
| 14 | +## Changes |
| 15 | + |
| 16 | +- Docusaurus (classic preset) project in `docs/`; pages in `docs/content/` (existing files moved with `git mv`; not Docusaurus' default `docs/docs`, user choice), images in `docs/static/img/`. |
| 17 | +- Site URL `https://javapackager.github.io/JavaPackager/`; workflow `.github/workflows/docs.yml` builds on push and pull requests to `devel`/`main` touching `docs/` and deploys on push to `main` (plus manual dispatch) with `actions/deploy-pages`. |
| 18 | +- Content, checked against the code (defaults, types, Maven and Gradle syntax): |
| 19 | + - Introduction, getting started (Maven, Gradle), generated artifacts. |
| 20 | + - Configuration reference: common properties, GNU/Linux, macOS, Windows, manifest, file associations, scripts. |
| 21 | + - Guides: bundling a JRE (customized, full, existing, `additionalJlinkArgs`, other platforms, JDK 24+), icons and assets, templates, runtime JVM options, multiple executions and platforms, code signing, Windows tools, snapshots, upgrading from 1.x. |
| 22 | + - Contributing: building the plugin, smoke tests, publishing. |
| 23 | +- `README.md`: what it is, quick start (Maven and Gradle), link to the site, maintainers wanted, apps packaged with it, license. |
| 24 | +- `CLAUDE.md` and conventions: documentation lives in `docs/content/` (new properties are documented there). |
| 25 | + |
| 26 | +## Acceptance |
| 27 | + |
| 28 | +- `npm run build` in `docs/` succeeds with no broken links. |
| 29 | +- The site is live at the URL above after a push to `main`. |
| 30 | +- Every property in `PackagerSettings` and the platform configs is documented with its real default. |
| 31 | +- `README.md` fits in one screen or two and links to the site. |
0 commit comments