aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/utils.py2
1 files changed, 1 insertions, 1 deletions
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")