Skip to content

Commit f220410

Browse files
authored
Add Makefile command for starting Vitepress locally and some minor changes (#293)
* add Makefile command for starting Vitepress locally * minor changes
1 parent 5d4acec commit f220410

File tree

4 files changed

+29
-19
lines changed

4 files changed

+29
-19
lines changed

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,18 @@ docs:
1212
${JULIA} --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
1313
${JULIA} --project=docs docs/make.jl
1414

15-
all: format test docs
15+
vitepress:
16+
npm --prefix docs i
17+
npm --prefix docs run docs:dev
18+
19+
all: format test docs vitepress
1620

1721
help:
1822
@echo "The following make commands are available:"
1923
@echo " - make format: format codes with JuliaFormatter"
2024
@echo " - make test: run the tests"
2125
@echo " - make docs: instantiate and build the documentation"
26+
@echo " - make vitepress: start Vitepress site of documentation"
2227
@echo " - make all: run every commands in the above order"
2328

24-
.PHONY: default format test docs all help
29+
.PHONY: default format test docs vitepress all help

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ QuantumToolbox.jl is equipped with a robust set of features:
6565

6666
- **Quantum State and Operator Manipulation:** Easily handle quantum states and operators with a rich set of tools, with the same functionalities as QuTiP.
6767
- **Dynamical Evolution:** Advanced solvers for time evolution of quantum systems, thanks to the powerful [DifferentialEquations.jl](https://github.com/SciML/DifferentialEquations.jl) package.
68-
- **GPU Computing:** Leverage GPU resources for high-performance computing. For example, you run the master equation directly on the GPU with the same syntax as the CPU case.
68+
- **GPU Computing:** Leverage GPU resources for high-performance computing. Simulate quantum dynamics directly on the GPU with the same syntax as the CPU case.
6969
- **Distributed Computing:** Distribute the computation over multiple nodes (e.g., a cluster). For example, you can run hundreds of quantum trajectories in parallel on a cluster, with, again, the same syntax as the simple case.
7070
- **Easy Extension:** Easily extend the package, taking advantage of the Julia language features, like multiple dispatch and metaprogramming.
7171

docs/README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
1-
# How to build documentation locally ?
1+
# How to build documentation and start Vitepress site locally ?
22

33
## Working Directory
44
All the commands should be run under the root folder of the package: `/path/to/QuantumToolbox.jl/`
55

66
The document pages will be generated in the directory: `/path/to/QuantumToolbox.jl/docs/build/` (which is ignored by git).
77

88
## Method 1: Run with `make` command
9-
Run the following command:
9+
Run the following command to instantiate and build the documentation:
1010
```shell
1111
make docs
1212
```
1313

14-
## Method 2: Run `julia` command manually
14+
Run the following command to start Vitepress site of documentation:
15+
> [!NOTE]
16+
> You need to install `Node.js` and `npm` first.
17+
```shell
18+
make vitepress
19+
```
20+
21+
## Method 2: Run commands manually
1522

1623
### Build Pkg
1724
Run the following command:
@@ -26,22 +33,16 @@ Run the following command:
2633
julia --project=docs docs/make.jl
2734
```
2835

29-
# How to start a local Vitepress site ?
30-
36+
### Start a local Vitepress site
3137
> [!NOTE]
32-
> You need to install `Node.js` and `npm` first.
33-
34-
Enter `docs` directory first:
35-
```shell
36-
cd /path/to/QuantumToolbox.jl/docs
37-
```
38+
> You need to install `Node.js` and `npm` first.
3839
3940
Install `npm` dependencies:
4041
```shell
41-
npm i
42+
npm --prefix docs i
4243
```
4344

4445
Run the following command:
4546
```shell
46-
npm run docs:dev
47+
npm --prefix docs run docs:dev
4748
```

docs/src/index.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ layout: home
55
66
hero:
77
name: "QuantumToolbox.jl"
8-
tagline: High-performance quantum simulations made simple
8+
tagline: A pure Julia framework designed for High-performance quantum physics simulations
99
image:
1010
src: /logo.png
1111
alt: QuantumToolbox
@@ -25,17 +25,21 @@ hero:
2525
2626
2727
features:
28+
- icon: <img width="64" height="64" src="https://qutip.org/images/logo.png" alt="markdown"/>
29+
title: QuTiP
30+
details: Easily handle quantum states and operators with a rich set of tools, with the same functionalities as Python QuTiP.
31+
link: https://qutip.org/
2832
- icon: <img width="64" height="64" src="https://docs.sciml.ai/DiffEqDocs/stable/assets/logo.png" alt="markdown"/>
2933
title: Dynamical Evolution
3034
details: Advanced solvers for time evolution of quantum systems, thanks to the powerful DifferentialEquations.jl package.
3135
link: /users_guide/time_evolution/intro
3236
- icon: <img width="64" height="64" src="https://cuda.juliagpu.org/stable/assets/logo.png" />
3337
title: GPU Computing
34-
details: Leverage GPU resources for high-performance computing. Simulate the master equation directly on the GPU with the same syntax as the CPU case.
38+
details: Leverage GPU resources for high-performance computing. Simulate quantum dynamics directly on the GPU with the same syntax as the CPU case.
3539
link: /getting_started
3640
- icon: <img width="64" height="64" src="https://img.icons8.com/?size=100&id=1W4Bkj363ov0&format=png&color=000000" />
3741
title: Distributed Computing
38-
details: Distribute the computation over multiple nodes (e.g., a cluster). Simulate undreds of quantum trajectories in parallel on a cluster, with, again, the same syntax as the simple case.
42+
details: Distribute the computation over multiple nodes (e.g., a cluster). Simulate hundreds of quantum trajectories in parallel on a cluster, with, again, the same syntax as the simple case.
3943
link: /users_guide/time_evolution/mcsolve
4044
---
4145
```

0 commit comments

Comments
 (0)