Write and maintain documentation
The website under docs is the canonical documentation source. The standalone starter remains under plugin-creation/starter; the old Markdown guides link readers into this site.
Add or update an article
Section titled “Add or update an article”Use Markdown for prose and code, MDX only when components are needed. Every article needs title and description frontmatter. Put it under the correct audience/category path and add it to the explicit sidebar in astro.config.mjs.
Public articles explain tasks and visible results. Plugin guides focus on the public SDK. Contributor articles explain architecture only where it informs changes.
Keep the user guide non-technical
Section titled “Keep the user guide non-technical”The Using FluxPlugs section (docs/src/content/docs/about) is for people who only use FluxPlugs. Its articles name buttons as the injector and Fluxer show them and avoid commands, file formats and internal terms such as runtime, manifest, SDK, hash or Electron. The only terminal commands there are the download checksum checks.
When a user article needs technical detail, put the detail in Plugin development or FluxPlugs development and link to it from a short For developers or For plugin authors note at the end of the user article. Dev pages that user articles link to open with a tip pointing back to the matching user page.
Every page under develop/ and contributing/ also gets a banner linking to the user guide. src/routeData.ts adds it, so new dev articles need no frontmatter for it; a page’s own banner frontmatter takes precedence.
When you merge, move or delete an article, add its old path to redirects in astro.config.mjs so existing links keep working.
Link internally using root-relative site paths with trailing slashes. Use real heading anchors, meaningful link labels, and alt text for informative images. Verify claims against current source and tests.
Checked examples
Section titled “Checked examples”Use a fenced ts api-example block for code that runs inside start(api); the checker provides api and a cleanup disposer array. Use ts plugin-example for a complete module with imports and definePlugin.
The example checker compiles against built public SDK declarations. All TypeScript fences in plugin articles must declare one of these modes, and the required guide examples must remain present.
Run from the project root:
pnpm --filter @fluxplugs/plugin-tools... buildpnpm test:docspnpm --dir docs install --frozen-lockfilepnpm --dir docs buildpnpm --dir docs check:linksPreview and style
Section titled “Preview and style”Use pnpm –dir docs exec astro dev –background, then status/logs/stop with the same prefix. Theme styles map to the injector’s palette; check dark and light modes, mobile navigation, focus, tables, code blocks, and search.
Docs dependencies use their own lockfile. Production output is static docs/dist, with site URL https://fluxer.plus. Publishing runs through Deploy docs to GitHub Pages (deploy.yml): automatically on pushes to main that change docs/ or the bundled plugins’ manifests and READMEs, when the community plugin repository reports a new release, or by hand from the Actions tab. It checks out the community plugins into plugins-community/, builds the site, checks links, and deploys to GitHub Pages. DNS is managed separately.
FluxPlugs is an independent project, not affiliated with or endorsed by Fluxer.