Documentation
The documentation for remoteStorage.js comes from two different sources:
- Markdown documents in the
docs/
folder for normal pages - TypeDoc comments in the source code, which are also rendered as Markdown pages when updating the website
The pages are then transformed into a functional website using VitePress. Please refer to the VitePress documentation for available Markdown extensions, configuring the sidebar menu, and more.
Contributing
You can just edit any Markdown document or TypeDoc comment and propose the changes in a new pull request. No need to build the docs locally if you don't want to.
Local preview
There is a local setup in this repository for previewing the rendered output. A live preview with automatic reloading upon changes can be started using this command:
npm run docs:dev
If you want to edit TypeDoc comments and have the changes appear in your local preview, then you also have to run this command:
typedoc --watch
Publishing
The rs.js documentation on https://remotestorage.io/rs.js/docs/ is published from the remotestorage/website repo.
This repository is included as a submodule in the website repo to avoid duplication of content or builds. Whenever this repository's master
branch is updated on GitHub, it will notify the website repo to update its submodule and trigger a new website build and deployment.