summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
Diffstat (limited to 'docs/conf.py')
-rwxr-xr-xdocs/conf.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/conf.py b/docs/conf.py
index 4249d41f7..cd0338413 100755
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -14,7 +14,7 @@ from pathlib import Path
# -- Project information -----------------------------------------------------
project = 'TinyUSB'
-copyright = '2024, Ha Thach'
+copyright = '2025, Ha Thach'
author = 'Ha Thach'
@@ -41,6 +41,8 @@ html_favicon = 'assets/logo.svg'
html_theme_options = {
'sidebar_hide_name': True,
}
+html_static_path = ['_static']
+html_css_files = ['custom.css']
todo_include_todos = True
@@ -52,7 +54,9 @@ def preprocess_readme():
if src.exists():
content = src.read_text()
content = re.sub(r"docs/", r"", content)
- content = re.sub(r".rst", r".html", content)
+ content = re.sub(r"\.rst\b", r".html", content)
+ if not content.endswith("\n"):
+ content += "\n"
tgt.write_text(content)
preprocess_readme()