All the commands should be run under the root folder of the package: /path/to/QuantumToolbox.jl/
The document pages will be generated in the directory: /path/to/QuantumToolbox.jl/docs/build/
(which is ignored by git).
Run the following command to instantiate and build the documentation:
make docs
Run the following command to start Vitepress site of documentation:
Note
You need to install Node.js
and npm
first.
make vitepress
Run the following command:
julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
NOTE:
Pkg.develop(PackageSpec(path=pwd()))
adds the local version ofQuantumToolbox
as dev-dependency instead of pulling from the registered version.
Run the following command:
julia --project=docs docs/make.jl
Note
You need to install Node.js
and npm
first.
Install npm
dependencies:
npm --prefix docs i
Run the following command:
npm --prefix docs run docs:dev