Skip to content

Commit 2495563

Browse files
authored
Merge pull request #2917 from hathach/board-doc
update docs, embed metadata to family.c and board.h
2 parents 86ad6e5 + de38e53 commit 2495563

File tree

258 files changed

+1871
-714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

258 files changed

+1871
-714
lines changed

README.rst

Lines changed: 144 additions & 102 deletions
Large diffs are not rendered by default.

docs/conf.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55
# list see the documentation:
66
# https://www.sphinx-doc.org/en/master/usage/configuration.html
77

8+
import re
9+
from pathlib import Path
10+
811
# -- Path setup --------------------------------------------------------------
912

1013

1114
# -- Project information -----------------------------------------------------
1215

1316
project = 'TinyUSB'
14-
copyright = '2021, Ha Thach'
17+
copyright = '2024, Ha Thach'
1518
author = 'Ha Thach'
1619

1720

@@ -40,3 +43,16 @@
4043
}
4144

4245
todo_include_todos = True
46+
47+
# pre-process path in README.rst
48+
def preprocess_readme():
49+
"""Modify figure paths in README.rst for Sphinx builds."""
50+
src = Path(__file__).parent.parent / "README.rst"
51+
tgt = Path(__file__).parent.parent / "README_processed.rst"
52+
if src.exists():
53+
content = src.read_text()
54+
content = re.sub(r"docs/", r"", content)
55+
content = re.sub(r".rst", r".html", content)
56+
tgt.write_text(content)
57+
58+
preprocess_readme()
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../CODE_OF_CONDUCT.rst
1+
.. include:: ../../CODE_OF_CONDUCT.rst

docs/contributing/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@ Index
1919
:maxdepth: 2
2020

2121
code_of_conduct
22-
structure
2322
porting

docs/contributing/structure.rst

Lines changed: 0 additions & 59 deletions
This file was deleted.

docs/index.rst

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
:hide-toc:
22

3-
*********
4-
TinyUSB
5-
*********
6-
7-
TinyUSB is an open-source cross-platform USB Host/Device stack for embedded systems,
8-
designed to be memory-safe with no dynamic allocation and thread-safe with all interrupt events being deferred and then handled in the non-ISR task function.
9-
3+
.. include:: ../README_processed.rst
104

115
.. toctree::
126
:caption: Index

docs/info/changelog.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ General
1717
- Build ARM IAR with CircleCI
1818
- Improve HIL with dual/host_info_to_device_cdc optional for pico/pico2, enable dwc2 dma test
1919

20-
2120
API Changes
2221
-----------
2322

@@ -31,7 +30,6 @@ API Changes
3130
- ``CFG_TUD/TUH_DWC2_SLAVE_ENABLE`` enable dwc2 slave mode
3231
- ``CFG_TUD/TUH_DWC2_DMA_ENABLE`` enable dwc2 dma mode
3332

34-
3533
Controller Driver (DCD & HCD)
3634
-----------------------------
3735

docs/info/contributors.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../CONTRIBUTORS.rst
1+
.. include:: ../../CONTRIBUTORS.rst

docs/info/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,5 @@ Index
88
.. toctree::
99
:maxdepth: 2
1010

11-
uses
1211
changelog
1312
contributors

docs/info/uses.rst

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)