Package Maintainer Recipes
Status:
- practical maintainer guide
- backend-neutral
Purpose:
- show the shortest credible path from package source to deployed docs
- keep the choice between
vitepressandjasprhonest and easy
Choose A Backend
Choose vitepress when:
- you want the strongest static-site ecosystem
- your team is comfortable with Node and VitePress
- you want the lower-risk polished path today
Choose jaspr when:
- you want a Dart-native docs app scaffold
- you want typed generated sidebar data and Dart-side theming
- you want to extend the docs shell without Vue or TypeScript
Honest framing:
vitepress= ecosystem-firstjaspr= Dart-first
Recipe 1: VitePress
Generate docs:
bash
dartdoc_modern --format vitepress --output docs-sitePreview locally:
bash
cd docs-site
npm install
npx vitepress devBuild for deploy:
bash
npx vitepress buildDeploy this directory:
text
docs-site/.vitepress/distRecipe 2: Jaspr
Generate docs:
bash
dartdoc_modern --format jaspr --output docs-sitePrepare and build:
bash
cd docs-site
dart pub get
dart pub global activate jaspr_cli
jaspr build --dart-define DOCS_THEME=oceanFor subpath hosting:
bash
jaspr build \
--dart-define DOCS_THEME=graphite \
--dart-define DOCS_BASE_PATH=/your-repo-nameDeploy this directory:
text
docs-site/build/jasprBefore You Post Or Publish
Strongest package-wide gate:
bash
dart run tool/task.dart validate package-releaseThat covers:
- repo-wide
dart analyze --fatal-infos dart pub publish --dry-run- the full
jaspr-releasegate - the full
vitepressend-to-end smoke suite
If Playwright is installed outside /tmp/pw-run, set PLAYWRIGHT_DIR first.
If You Are Evaluating The Repo Itself
Use the local source instead of a global install:
bash
dart run ./bin/dartdoc_modern.dart --format vitepress --output docs-site
dart run ./bin/dartdoc_modern.dart --format jaspr --output docs-site