There are 3 commands involved in generating the live documentation site:
Will generate a static Markdown file for each component. This file will include the component's documentation as well as its examples.
A constants component will be created in
This special component will render a table displaying all constants exported by the component.
Generates static Markdown files when any component changes. It generates the constants component automatically, too.
You'll probably want to run
docs:build:markdown before since
docs:watch:markdown won't generate the initial documentation: it will generate files only after some component or example file is modified.
Start Vuepress (opens new window) and serves generated documentation.
Pages will reload after any static Markdown file or constants component is modified but not after any component or example is modified so you'll probably want to run
docs:watch:markdown while you are running
Equivalent to running:
- In parallel:
This is the script you probably want to run to see the live documentation page.
Builds the library for NPM.