Skip to content

Commit d7d1915

Browse files
committed
s
1 parent 714c35d commit d7d1915

File tree

3 files changed

+431
-7
lines changed

3 files changed

+431
-7
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ jobs:
2828
python-version: '3.13'
2929
enable-cache: true
3030
cache-suffix: docs
31-
32-
- run: uvx hatch run docs:cli
31+
- run: uv sync --frozen --group=ci --group=docs
3332

3433
- run: hatch run docs:cli
3534
- run: hatch run docs:build

pyproject.toml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ docs = [
8181
"mkdocs-minify-plugin~=0.7",
8282
"mkdocstrings[python]~=0.25",
8383
]
84+
ci = [
85+
"build",
86+
"hatch",
87+
]
8488

8589
[tool.hatch.build.targets.sdist]
8690
only-include = [
@@ -129,11 +133,11 @@ cov-total = """
129133
python -c "import json;print(json.load(open('coverage.json'))['totals']['percent_covered_display'])"
130134
"""
131135

132-
# [tool.hatch.envs.docs.scripts]
133-
# cli = "typer src/re3data/_cli.py utils docs --name=re3data --title='Command Line Interface' --output docs/src/cli.md"
134-
# build = "mkdocs build --config-file=docs/mkdocs.yml"
135-
# serve = "mkdocs serve --verbose --config-file=docs/mkdocs.yml"
136-
# deploy = "mike deploy --push --update-aliases $(hatch version) latest --config-file=docs/mkdocs.yml"
136+
[tool.hatch.envs.docs.scripts]
137+
cli = "typer src/re3data/_cli.py utils docs --name=re3data --title='Command Line Interface' --output docs/src/cli.md"
138+
build = "mkdocs build --config-file=docs/mkdocs.yml"
139+
serve = "mkdocs serve --verbose --config-file=docs/mkdocs.yml"
140+
deploy = "mike deploy --push --update-aliases $(hatch version) latest --config-file=docs/mkdocs.yml"
137141

138142
[tool.ruff] # Ref: https://docs.astral.sh/ruff/configuration/
139143
line-length = 120

0 commit comments

Comments
 (0)