Skip to content

Commit 6e596d9

Browse files
committed
DEV: add task to open locally-built docs
1 parent 3d95451 commit 6e596d9

File tree

3 files changed

+48
-40
lines changed

3 files changed

+48
-40
lines changed

docs/contributing.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ pixi run test
4444
pixi run docs
4545
```
4646

47+
- To open and preview the locally-built docs:
48+
49+
```
50+
pixi run open-docs
51+
```
52+
4753
- To install a [pre-commit](https://pre-commit.com) hook and run the lint suite:
4854

4955
```

pixi.lock

Lines changed: 41 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ sphinx_autodoc_typehints = "*"
100100

101101
[tool.pixi.feature.docs.tasks]
102102
docs = { cmd = ["sphinx-build", ".", "build/"], cwd = "docs" }
103+
open-docs = { cmd = ["open", "build/index.html"], cwd = "docs" }
103104

104105
[tool.pixi.feature.dev.dependencies]
105106
ipython = "*"

0 commit comments

Comments
 (0)