aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/docs.yaml2
-rw-r--r--docs/utils.py2
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")