Skip to content

Commit a0e9c5d

Browse files
authored
Merge branch 'TexasInstruments:master' into master
2 parents d81d7ae + c4f0b56 commit a0e9c5d

132 files changed

Lines changed: 1865 additions & 1876 deletions

File tree

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
EOF
3939
4040
for path in build/*/; do
41-
root_index=$(find "$path" -name index.html | sort -u | tail -1)
41+
root_index=$(find "$path" -name index.html -print -quit)
4242
if [ -n "$root_index" ]; then
4343
text=$(basename "$path")
4444
relative_path=$(realpath "$root_index" --relative-to=build)

README.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,25 @@ Processor SDK Documentation in Sphinx
33

44
## Instructions to build the project on Ubuntu
55

6+
### Clone the Git Repo
7+
8+
$ git clone https://github.com/TexasInstruments/processor-sdk-doc.git
9+
610
### Install tools on Ubuntu
711

812
Use the following command in a python virtual environment for a known working
913
config:
1014

11-
# python3 -m pip install -r requirements.txt
15+
$ cd processor-sdk-doc
16+
$ python3 -m pip install -r requirements.txt
17+
18+
> [!WARNING]
19+
> This is supported using Python v3.12+. If using an older Python version, some package versions in `requirements.txt` may not be compatible, possibly due to an older
20+
> bundled `pip` version.
1221
1322
OR you can use a docker container like the following:
1423
- [psdk-doc-docker](https://github.com/TexasInstruments/processor-sdk-doc/pkgs/container/processor-sdk-doc)
1524

16-
### Clone the Git Repo
17-
18-
$ git clone https://github.com/TexasInstruments/processor-sdk-doc.git
19-
2025
### Build on Ubuntu
2126

2227
To build the documentation a DEVFAMILY and OS must be specified as either an
@@ -51,23 +56,23 @@ Example build commands:
5156

5257
- Build linux documentation for AM335X
5358

54-
$ make DEVFAMILY=AM335X OS=linux
59+
$ make DEVFAMILY=AM335X OS=linux
5560

5661
- Build android documentation for AM62X
5762

58-
$ make DEVFAMILY=AM62X OS=android
63+
$ make DEVFAMILY=AM62X OS=android
5964

6065
- Build debian documentation for AM62PX
6166

62-
$ make DEVFAMILY=AM62PX OS=debian
67+
$ make DEVFAMILY=AM62PX OS=debian
6368

6469
### HTML Page Output
6570

6671
Open the index page in a web browser
6772

6873
linux: ./build/processor-sdk-linux-<FAMILY>/esd/docs/[version]/index.html
6974
android: ./build/processor-sdk-android-<FAMILY>/esd/docs/[version]/index.html
70-
debian: ./build/processor-sdk-debian-<FAMILY>/esd/docs/[version]/index.html
75+
debian: ./build/processor-sdk-debian-<FAMILY>/esd/docs/[version]/index.html
7176

7277
## Live Preview on GitHub Pages
7378

bin/rename.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def update_directives(**kwargs):
162162
"""Replace old include and image/figure statements"""
163163
ref_destination = (
164164
' '
165-
+ destination.relative_to(kwargs["file"], walk_up=True).as_posix()
165+
+ destination.relative_to(kwargs["file"].parent, walk_up=True).as_posix()
166166
+ "\n"
167167
)
168168

@@ -182,7 +182,7 @@ def update_inlines(**kwargs):
182182
ref_destination = (
183183
"`"
184184
+ destination.with_suffix("")
185-
.relative_to(kwargs["file"], walk_up=True)
185+
.relative_to(kwargs["file"].parent, walk_up=True)
186186
.as_posix()
187187
+ "`"
188188
)

conf.py

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -260,9 +260,6 @@
260260

261261
# -- Tag file loader ------------------------------------------------------
262262

263-
# Defaults
264-
exclude_patterns = []
265-
266263
FAMILY = os.environ.get("DEVFAMILY", "")
267264
OS = os.environ.get("OS", "")
268265
try:
@@ -277,6 +274,9 @@
277274
# Family Configuration file to use
278275
family_config_inputfile = f"{FAMILY}/{FAMILY}_{OS}_config.txt"
279276

277+
# Set document exclusion list from the tocfiles
278+
exclude_patterns = sectinc.generate_exclude_patterns(family_tocfiles)
279+
280280
# Hash table for Replacement Variables and Config Values
281281
family_replacevars, family_configvals = interpretvalues.read_familyvals(family_config_inputfile)
282282

@@ -299,16 +299,6 @@ def setup(app):
299299
print("family_configvals = ")
300300
print(family_configvals)
301301

302-
# Determine which sections need to be excluded
303-
sectinc.find_all_rst_files(app, exclude_patterns)
304-
sectinc.fill_docs_to_keep(app, family_tocfiles, 0)
305-
sectinc.set_excluded_docs(app, exclude_patterns)
306-
print(FAMILY + " exclude_patterns is:")
307-
print('[')
308-
for elem in exclude_patterns:
309-
print(elem)
310-
print(']')
311-
312302
# Load family config values into application context
313303
for key, value in family_configvals.items():
314304
app.add_config_value(key, value, 'env')

configs/AM335X/AM335X_linux_tags.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,5 @@
99
# The master toctree document.
1010
master_doc = 'devices/AM335X/linux/index'
1111

12-
# List of patterns, relative to source directory, that match files and
13-
# directories to ignore when looking for source files.
14-
exclude_patterns = ['rtos', 'android', 'linux/index.rst', 'devices/AM335X/rtos', 'devices/AM437X', 'devices/AM64X', 'devices/AM65X', 'devices/J7_Family', 'devices/DRA821A', 'devices/AM62X', 'devices/AM62AX', 'devices/AM62PX', 'devices/AM62LX']
15-
1612
# OS for the build. Sphinx uses source/{sdk_os} when looking for doc inputs
1713
sdk_os = 'linux'

configs/AM335X/AM335X_linux_toc.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ linux/Foundational_Components/U-Boot/UG-UART
3636
linux/Foundational_Components/U-Boot/UG-UFS
3737
linux/Foundational_Components/U-Boot/UG-DDR3
3838
linux/Foundational_Components/U-Boot/Applications
39-
linux/Foundational_Components/U-Boot/Apps-SPL-Debug
4039
linux/Foundational_Components/U-Boot/Apps-SPL-Debug-OpenOCD
4140
linux/Foundational_Components/U-Boot/Apps-Load-in-CCS
4241
linux/Foundational_Components/U-Boot/Apps-Splash-Screen
@@ -96,7 +95,7 @@ linux/Foundational_Components/Machine_Learning/tidl
9695
linux/Foundational_Components/Machine_Learning/tflite
9796
linux/Foundational_Components/Machine_Learning/tvm
9897

99-
linux/Foundational_Components_Graphics
98+
linux/Foundational_Components/Graphics/index
10099
linux/Foundational_Components/Graphics/Common/Display
101100
linux/Foundational_Components/Graphics/Common/GTK+_Graphics_Framework
102101
linux/Foundational_Components/Graphics/Common/OpenGL_ES

configs/AM437X/AM437X_linux_tags.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,5 @@
99
# The master toctree document.
1010
master_doc = 'devices/AM437X/linux/index'
1111

12-
# List of patterns, relative to source directory, that match files and
13-
# directories to ignore when looking for source files.
14-
exclude_patterns = ['rtos', 'android', 'linux/index.rst', 'devices/AM437X/rtos', 'devices/AM335X', 'devices/AM64X', 'devices/AM65X', 'devices/J7_Family', 'devices/DRA821A', 'devices/AM62X', 'devices/AM62AX', 'devices/AM62PX', 'devices/AM62LX']
15-
1612
# OS for the build. Sphinx uses source/{sdk_os} when looking for doc inputs
1713
sdk_os = 'linux'

configs/AM437X/AM437X_linux_toc.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ linux/Foundational_Components/U-Boot/UG-UART
3737
linux/Foundational_Components/U-Boot/UG-UFS
3838
linux/Foundational_Components/U-Boot/UG-DDR3
3939
linux/Foundational_Components/U-Boot/Applications
40-
linux/Foundational_Components/U-Boot/Apps-SPL-Debug
4140
linux/Foundational_Components/U-Boot/Apps-SPL-Debug-OpenOCD
4241
linux/Foundational_Components/U-Boot/Apps-Load-in-CCS
4342
linux/Foundational_Components/U-Boot/Apps-TroubleShooting
@@ -97,7 +96,7 @@ linux/Foundational_Components/Machine_Learning/tidl
9796
linux/Foundational_Components/Machine_Learning/tflite
9897
linux/Foundational_Components/Machine_Learning/tvm
9998

100-
linux/Foundational_Components_Graphics
99+
linux/Foundational_Components/Graphics/index
101100
linux/Foundational_Components/Graphics/Common/Display
102101
linux/Foundational_Components/Graphics/Common/GTK+_Graphics_Framework
103102
linux/Foundational_Components/Graphics/Common/OpenGL_ES

configs/AM57X/AM57X_linux_tags.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,5 @@
99
# The master toctree document.
1010
master_doc = 'devices/AM57X/linux/index'
1111

12-
# List of patterns, relative to source directory, that match files and
13-
# directories to ignore when looking for source files.
14-
exclude_patterns = ['rtos', 'android', 'linux/index.rst', 'devices/AM57X/rtos', 'devices/AM335X', 'devices/AM437X', 'devices/AM64X', 'devices/AM65X', 'devices/J7_Family', 'devices/DRA821A', 'devices/AM62X', 'devices/AM62AX', 'devices/AM62PX', 'devices/AM62LX']
15-
1612
# OS for the build. Sphinx uses source/{sdk_os} when looking for doc inputs
1713
sdk_os = 'linux'

configs/AM57X/AM57X_linux_toc.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ linux/Foundational_Components/U-Boot/UG-SATA
3737
linux/Foundational_Components/U-Boot/UG-DDR3
3838
linux/Foundational_Components/U-Boot/UG-RemoteProc
3939
linux/Foundational_Components/U-Boot/Applications
40-
linux/Foundational_Components/U-Boot/Apps-SPL-Debug
40+
linux/Foundational_Components/U-Boot/Apps-SPL-Debug-OpenOCD
4141
linux/Foundational_Components/U-Boot/Apps-Load-in-CCS
4242
linux/Foundational_Components/U-Boot/Apps-TroubleShooting
4343
linux/Foundational_Components_Boot_Monitor
@@ -98,7 +98,7 @@ linux/Foundational_Components_CMEM
9898
linux/Foundational_Components_OPTEE
9999
linux/Foundational_Components_ATF
100100

101-
linux/Foundational_Components_Graphics
101+
linux/Foundational_Components/Graphics/index
102102
linux/Foundational_Components/Graphics/Common/Display
103103
linux/Foundational_Components/Graphics/Common/GTK+_Graphics_Framework
104104
linux/Foundational_Components/Graphics/Common/OpenGL_ES

0 commit comments

Comments
 (0)