Skip to content

Commit b9d8c33

Browse files
Refresh Docs (#1171)
* WIP refresh WK docs structure; update Python deps * Replace pdocs with mkdocstrings * remove pdoc templates * only create api docs for classes in wk-libs submodules * fix generate.sh script * added some comments * formatting * update CI for building docs * fix markdown links, changed due mkdocs * Update docs/generate.sh Co-authored-by: Mark Bader <[email protected]> * fix API overview page * restructure navigation menu * Revert "restructure navigation menu" This reverts commit d8e039d. * restructure nav * fix issues with mkdocs-videos and empty pages * added index pages to all sections * update mkdocs-glightbox * remove unused styles; add custom page footer * enable dark/light mode * update nav index * updates to navigation * more nav * fix API nav links * more spacing for the content page footer * apply albane's changes * stuff * fix webknossos-libs build * update cluster_tools build --------- Co-authored-by: markbader <[email protected]>
1 parent e0cc0dc commit b9d8c33

File tree

9 files changed

+321
-273
lines changed

9 files changed

+321
-273
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- name: Install uv
4848
uses: astral-sh/setup-uv@v3
4949
with:
50-
version: "0.4.19"
50+
version: "0.4.22"
5151

5252
- name: Set up Python ${{ matrix.python-version }}
5353
run: uv python install ${{ matrix.python-version }}
@@ -165,7 +165,7 @@ jobs:
165165
uses: astral-sh/setup-uv@v3
166166
with:
167167
# Install a specific version of uv.
168-
version: "0.4.19"
168+
version: "0.4.22"
169169

170170
- name: Set up Python ${{ matrix.python-version }}
171171
run: uv python install ${{ matrix.python-version }}
@@ -207,7 +207,7 @@ jobs:
207207
uses: astral-sh/setup-uv@v3
208208
with:
209209
# Install a specific version of uv.
210-
version: "0.4.19"
210+
version: "0.4.22"
211211
- name: Write version file
212212
run: |
213213
pushd webknossos
@@ -284,7 +284,7 @@ jobs:
284284
uses: astral-sh/setup-uv@v3
285285
with:
286286
# Install a specific version of uv.
287-
version: "0.4.19"
287+
version: "0.4.22"
288288
- name: Build Docs
289289
run: |
290290
cd docs
@@ -336,7 +336,7 @@ jobs:
336336
uses: astral-sh/setup-uv@v3
337337
with:
338338
# Install a specific version of uv.
339-
version: "0.4.19"
339+
version: "0.4.22"
340340
- name: Publish python packages
341341
env:
342342
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_PASSWORD }}

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contributing Guide
22

3-
**Welcome to the WEBKNOSSOS-libs contributing guide :sparkles: **
3+
**Welcome to the WEBKNOSSOS-libs contributing guide :sparkles:**
44

55
Thank you for taking the time to contribute to this project! The following is a set of guidelines for contributing to the different WEBKNOSSOS related Python libraries, which are part of the [WEBKNOSSOS-libs repository on GitHub](https://github.com/scalableminds/webknossos-libs). These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
66

cluster_tools/pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ dev-dependencies = [
3030
requires = ["setuptools>=70.0", "wheel; python_version>='3.12'"]
3131
build-backend = "setuptools.build_meta"
3232

33-
[tool.setuptools]
34-
packages = ["cluster_tools"]
33+
[tool.setuptools.packages.find]
34+
where = ["."]
35+
include = ["cluster_tools*"]
36+
exclude = ["cluster_tools.tests"]
37+
3538

3639
[tool.ruff]
3740
# Exclude a variety of commonly ignored directories.

docs/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ rm -rf src/api/webknossos
1212
uv run --frozen generate_api_doc_pages.py
1313

1414
if [ $# -eq 1 ] && [ "$1" = "--persist" ]; then
15-
uv run mkdocs build
15+
uv run --with black mkdocs build
1616
else
17-
uv run mkdocs serve -a localhost:8197 --watch-theme
17+
uv run --with black mkdocs serve -a localhost:8197 --watch-theme
1818
fi

0 commit comments

Comments
 (0)