ci: protect site branch with a ruleset (#5)
1 file changed
tree: c8f73c79113e807ecf459b0c17259d7d686abe27
  1. .github/
  2. src/
  3. static/
  4. .asf.yaml
  5. .gitignore
  6. .npmrc
  7. .oxfmtrc.json
  8. DISCLAIMER
  9. LICENSE
  10. mdsvex.config.ts
  11. NOTICE
  12. package.json
  13. pnpm-lock.yaml
  14. README.md
  15. tsconfig.json
  16. vite.config.ts
README.md

Apache Asyncband (Incubating) Website

This repository contains the source for the Apache Asyncband (Incubating) website. Read the project DISCLAIMER and learn what incubation means.

Developing

Install dependencies and start the SvelteKit development server:

pnpm install
pnpm dev

The local site is available at http://localhost:5173/ by default.

Pagefind search is generated from the static HTML during pnpm build, so use the production preview below when testing search.

Writing documentation

Documentation pages live under src/routes/docs/ as MDsveX .svx files. Each page starts with frontmatter for its navigation label and metadata; the rest of the file is Markdown.

Second-level headings generate the on-page table of contents automatically. Fenced bash and rust code blocks are highlighted during the build. MDsveX also supports Svelte components when a document needs behavior beyond Markdown.

Validating

Run the type, formatting, lint, and production-build checks:

pnpm validate

Building and previewing

Generate the static site and preview the result locally:

pnpm build
pnpm preview

The generated site is written to build/. Pushing to main builds and publishes the site through the asf-site branch.

To publish a staging preview, push the site source to a branch named preview/<name>. The same deployment workflow publishes the build through site/<name>-staging, which ASF serves at https://asyncband-<name>.staged.apache.org/.

License

Licensed under the Apache License, Version 2.0.