summaryrefslogtreecommitdiff
path: root/docs/conf.py
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2025-11-11 13:19:59 +0700
committerGitHub <[email protected]>2025-11-11 13:19:59 +0700
commit8a094e807b34bcc018c971d59acb660b1a9ddf9f (patch)
treea533fccebf77b046bbd6002f9bb077d98a9df6c3 /docs/conf.py
parent96f35fc0a559aa09da70e0dede5a43081615723f (diff)
parenta1ae5b20ccf760282538dd81b9290527757fa9c7 (diff)
Merge pull request #3278 from c1570/improved_docs
Documentation improvements
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()