From 222025fdaab4cc66427590dc053730a09a5af24e Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Thu, 24 Feb 2022 17:44:07 +0000 Subject: Update GHA Docs Build To Match Pyproject Updates the command in GH actions to match the command in pyproject to generate the correct output. Kaizens a small fix in clean up. --- .github/workflows/docs.yaml | 2 +- docs/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 8018d63c..a01ea58f 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -31,7 +31,7 @@ jobs: - run: pip install six - name: Generate AutoDoc References - run: sphinx-apidoc -o docs/output botcore -fe + run: sphinx-apidoc -o docs/output botcore -feM - name: Generate HTML Site run: sphinx-build -nW -j auto -b html docs docs/build diff --git a/docs/utils.py b/docs/utils.py index 6afbeec0..76b3e098 100644 --- a/docs/utils.py +++ b/docs/utils.py @@ -79,7 +79,7 @@ def cleanup() -> None: # Example: botcore.exts -> Botcore Exts title = content[0].split()[0].strip().replace("botcore.", "").replace(".", " ").title() title = f"{title}\n{'=' * len(title)}\n\n" - content[0:2] = title + content = title, *content[3:] file.write_text("".join(content), encoding="utf-8") -- cgit v1.2.3