ahryman40k
v15.0.0
Published
Vitepress addin for Nx
Downloads
4
Readme
Ahryman40k
This project was generated using Nx.
Install the plugin
You first need to install the plugin to your workspace
npm i -D @ahryman40k/nx-vitepress
Add a vitepress project to workspace
then you can add as many vitepress projects to your workspace
nx g @ahryman40k/nx-vitepress:app
Vitepress project is initialized with
- a dark/light theme switcher
- a custom toolbar
- a predefined navbar
- an home page
the vitepress project declares 3 commands:
nx build --project your_doc_project
to build your documentation projectnx serve --project your_doc_project
to serve your documentation projectnx dev --project your_doc_project
to serve your documentation project for development purpose (hot reload, ...)
The addin also support custom directory.
nx g @ahryman40k/nx-vitepress:app --directory your_custom_dir