Skip to content

About Docs Vault

How this static documentation portal works.

Docs Vault is a static site that aggregates documentation from multiple open source projects into one searchable portal.

Every upstream project is configured in config/projects.mjs. Before each build, loaders clone or pull the source repository into .cache/repos/ and copy transformed Markdown into src/content/docs/<project>/.

LoaderUse case
gitDefault loader for Starlight/MDX upstream docs
vueVue.js docs with VitePress syntax cleanup

Add a custom loader by extending GitDocsLoader in loaders/projects/ and registering it in loaders/index.ts.

Terminal window
npm run build:lite
npm run build
npm run sync -- --only vue
  1. Add an entry to config/projects.mjs
  2. Run npm run sync -- --only <id>
  3. Run npm run build

Use contentExclude in the project config to omit commercial or unwanted doc categories from sync and navigation.