Skip to content

Commit ef11061

Browse files
committed
Added mkdocs aliases for hatch and fixed readthedocs command
1 parent c6634cc commit ef11061

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ build:
1313
commands:
1414
- pip install hatch
1515
- hatch run build-ext
16-
- mkdocs build
16+
- hatch run docs:build
1717
- mkdir --parents $READTHEDOCS_OUTPUT
1818
- mv site $READTHEDOCS_OUTPUT/html

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,10 @@ fixall = "inv fixall --args '{args}'"
192192
[tool.hatch.envs.docs]
193193
features = ["scripts", "docs", "lint"]
194194

195+
[tool.hatch.envs.docs.scripts]
196+
build = "mkdocs build {args}"
197+
serve = "mkdocs serve {args}"
198+
195199
[tool.hatch.envs.check]
196200
features = ["scripts", "check"]
197201

0 commit comments

Comments
 (0)