Skip to content

Commit 7ead4ca

Browse files
authored
Setup Zensical for Documentation Site and GHA workflow (#81)
* Add 'site' to .gitignore for improved file management * feat: add zensical * chore: update lock file * feat: add initial zensical configuration file * feat: add initial documentation index file * feat: add GitHub Actions workflow for documentation deployment * ci: improve GitHub Actions workflow for documentation deployment * refactor: reorganize dependency groups in pyproject.toml and move zensical to docs dep group
1 parent 743888f commit 7ead4ca

6 files changed

Lines changed: 285 additions & 135 deletions

File tree

.github/workflows/docs.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- "docs/**"
8+
- "zensical.toml"
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
16+
jobs:
17+
deploy:
18+
environment:
19+
name: github-pages
20+
url: ${{ steps.deployment.outputs.page_url }}
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v6
25+
26+
- uses: actions/configure-pages@v5
27+
28+
- name: Install uv
29+
uses: astral-sh/setup-uv@v7
30+
with:
31+
enable-cache: true
32+
33+
- name: Install docs dependencies via uv
34+
run: uv sync --locked --only-group docs
35+
36+
- name: Build docs with zensical via uv
37+
run: uv run zensical build --clean
38+
39+
- uses: actions/upload-pages-artifact@v4
40+
with:
41+
path: site
42+
43+
- uses: actions/deploy-pages@v4
44+
id: deployment

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ VideoMaMaInferenceModule/checkpoints/*
4545
!VideoMaMaInferenceModule/checkpoints/.gitkeep
4646
gvm_core/weights/*
4747
!gvm_core/weights/.gitkeep
48+
49+
site

docs/index.md

Whitespace-only changes.

pyproject.toml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ dependencies = [
1616
"opencv-python",
1717
"tqdm",
1818
"setuptools",
19-
2019
# GVM alpha hint generator
2120
"diffusers",
2221
"transformers",
@@ -28,21 +27,16 @@ dependencies = [
2827
"easydict",
2928
"imageio",
3029
"matplotlib",
31-
3230
# VideoMaMa alpha hint generator
3331
"einops",
34-
3532
# CLI tools (huggingface-hub is also a transitive dep, but must be direct
3633
# so that uv installs the "hf" console-script entry point)
3734
"huggingface-hub",
3835
]
3936

4037
[dependency-groups]
41-
dev = [
42-
"pytest",
43-
"pytest-cov",
44-
"ruff",
45-
]
38+
dev = ["pytest", "pytest-cov", "ruff"]
39+
docs = ["zensical>=0.0.24"]
4640

4741
[project.scripts]
4842
corridorkey = "corridorkey_cli:main"
@@ -83,7 +77,7 @@ omit = [
8377
"gvm_core/*",
8478
"VideoMaMaInferenceModule/*",
8579
"tests/*",
86-
"test_vram.py", # manual GPU smoke test, not part of the pytest suite
80+
"test_vram.py", # manual GPU smoke test, not part of the pytest suite
8781
]
8882

8983
[[tool.uv.index]]

0 commit comments

Comments
 (0)