3 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|
@@ -35,7 +35,9 @@ jobs:
|
35 | 35 | run: poetry install --no-interaction --no-ansi --only docs |
36 | 36 | # build package |
37 | 37 | - name: Build package |
38 | | -run: python build.py |
| 38 | +run: | |
| 39 | + source .venv/bin/activate |
| 40 | + python build.py |
39 | 41 | # publish package |
40 | 42 | - name: Publish to PyPI |
41 | 43 | uses: pypa/gh-action-pypi-publish@release/v1 |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -61,11 +61,11 @@ def generate_documentation(source: Path, discard_refs: bool = True):
|
61 | 61 | # generate reference documentation |
62 | 62 | nav_items = _generate_reference(source / "validators/__init__.py", source / "docs/reference") |
63 | 63 | # backup mkdocs config |
64 | | -_update_mkdocs_config(source / "mkdocs.yml", source / "mkdocs.bak.yml", nav_items) |
| 64 | +_update_mkdocs_config(source / "mkdocs.yaml", source / "mkdocs.bak.yml", nav_items) |
65 | 65 | # build docs as subprocess |
66 | 66 | print(run(("mkdocs", "build"), capture_output=True).stderr.decode()) |
67 | 67 | # restore mkdocs config |
68 | | -move(str(source / "mkdocs.bak.yml"), source / "mkdocs.yml") |
| 68 | +move(str(source / "mkdocs.bak.yml"), source / "mkdocs.yaml") |
69 | 69 | # optionally discard reference folder |
70 | 70 | if discard_refs: |
71 | 71 | rmtree(source / "docs/reference") |
|
File renamed without changes.