Skip to content

Contributed by WT_0213, curated by Ai-Thinker

If you want to have local doc documentation, take a look. Under C:\aithinker_Ai-M6X_SDK\docs there is SDK-related documentation. However, since it is in rst format, it cannot be viewed directly. You can compile it to HTML with Python and then view it. Next, let's compile the docs directory to HTML. Download and install Python Open https://www.python.org/ to enter the Python official website Then point the mouse at the Downloads tab A menu pops up Click to download Python 3.12.0 After downloading, find the downloaded installer. Double-click to start it; the installation page is as follows Check "Add python.exe to PATH", click Install Now, and follow the prompts to install. After installation, verify by pressing Win+R, entering cmd, then typing python; it displays as shown below. Opening Python rst files RST is to Python what Javadoc is to Java. If you download someone else's Python source code containing an rst folder, we can convert it to HTML and open it with a browser.

Operation Steps

1
Install Python's sphinx module:

Install Python’s sphinx module:

pip install sphinx
2
Run make

Run make

C:\aithinker_Ai-M6X_SDK\docs>make
Sphinx v7.2.6
Please use `make target' where target is one of
html        to make standalone HTML files
dirhtml     to make HTML files named index.html in directories
singlehtml  to make a single large HTML file
pickle      to make pickle files
json        to make JSON files
htmlhelp    to make HTML files and an HTML help project
qthelp      to make HTML files and a qthelp project
devhelp     to make HTML files and a Devhelp project
epub        to make an epub
latex       to make LaTeX files, you can set PAPER=a4 or PAPER=letter
text        to make text files
man         to make manual pages
texinfo     to make Texinfo files
gettext     to make PO message catalogs
changes     to make an overview of all changed/added/deprecated items
xml         to make Docutils-native XML files
pseudoxml   to make pseudoxml-XML files for display purposes
linkcheck   to check all external links for integrity
doctest     to run all doctests embedded in the documentation (if enabled)
coverage    to run coverage check of the documentation (if enabled)
clean       to remove everything in the build directory
3
Then run make html

Then run make html

C:\aithinker_Ai-M6X_SDK\docs>make html
Running Sphinx v7.2.6
Extension error:
Could not import extension recommonmark (exception: No module named 'recommonmark')

Found a missing module; run pip install recommonmark

C:\aithinker_Ai-M6X_SDK\docs>pip install recommonmark
Collecting recommonmark
Downloading recommonmark-0.7.1-py2.py3-none-any.whl (10 kB)
Collecting commonmark>=0.8.1 (from recommonmark)
Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)
---------------------------------------- 51.1/51.1 kB 113.4 kB/s eta 0:00:00
Requirement already satisfied: docutils>=0.11 in c:\python\python312\lib\site-packages (from recommonmark) (0.20.1)
Requirement already satisfied: sphinx>=1.3.1 in c:\python\python312\lib\site-packages (from recommonmark) (7.2.6)
Requirement already satisfied: sphinxcontrib-applehelp in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.0.7)
Requirement already satisfied: sphinxcontrib-devhelp in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.0.5)
Requirement already satisfied: sphinxcontrib-jsmath in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.0.1)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.0.4)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.9 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.1.9)
Requirement already satisfied: sphinxcontrib-qthelp in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.0.6)
Requirement already satisfied: Jinja2>=3.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (3.1.2)
Requirement already satisfied: Pygments>=2.14 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.17.2)
Requirement already satisfied: snowballstemmer>=2.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.2.0)
Requirement already satisfied: babel>=2.9 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.13.1)
Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (0.7.13)
Requirement already satisfied: imagesize>=1.3 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.4.1)
Requirement already satisfied: requests>=2.25.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.31.0)
Requirement already satisfied: packaging>=21.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (23.2)
Requirement already satisfied: colorama>=0.4.5 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (0.4.6)
Requirement already satisfied: setuptools in c:\python\python312\lib\site-packages (from babel>=2.9->sphinx>=1.3.1->recommonmark) (69.0.2)
Requirement already satisfied: MarkupSafe>=2.0 in c:\python\python312\lib\site-packages (from Jinja2>=3.0->sphinx>=1.3.1->recommonmark) (2.1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx>=1.3.1->recommonmark) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx>=1.3.1->recommonmark) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx>=1.3.1->recommonmark) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx>=1.3.1->recommonmark) (2023.11.17)
Installing collected packages: commonmark, recommonmark
Successfully installed commonmark-0.9.1 recommonmark-0.7.1
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip

Run make html again

C:\aithinker_Ai-M6X_SDK\docs>make html
Running Sphinx v7.2.6
Extension error:
Could not import extension sphinx_markdown_tables (exception: No module named 'sphinx_markdown_tables')

Missing module sphinx_markdown_tables; run pip install sphinx_markdown_tables

C:\aithinker_Ai-M6X_SDK\docs>pip install sphinx_markdown_tables
Collecting sphinx_markdown_tables
Downloading sphinx_markdown_tables-0.0.17-py3-none-any.whl (28 kB)
Collecting markdown>=3.4 (from sphinx_markdown_tables)
Obtaining dependency information for markdown>=3.4 from [https://files.pythonhosted.org/packages/70/58/2c5a654173937d9f540a4971c569b44dcd55e5424a484d954cdaeebcf79c/Markdown-3.5.1-py3-none-any.whl.metadata](https://files.pythonhosted.org/packages/70/58/2c5a654173937d9f540a4971c569b44dcd55e5424a484d954cdaeebcf79c/Markdown-3.5.1-py3-none-any.whl.metadata)
Downloading Markdown-3.5.1-py3-none-any.whl.metadata (7.1 kB)
Downloading Markdown-3.5.1-py3-none-any.whl (102 kB)
---------------------------------------- 102.2/102.2 kB 391.1 kB/s eta 0:00:00
Installing collected packages: markdown, sphinx_markdown_tables
Successfully installed markdown-3.5.1 sphinx_markdown_tables-0.0.17
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip

Run make html again

C:\aithinker_Ai-M6X_SDK\docs>make html
Running Sphinx v7.2.6
making output directory... done
Theme error:
no theme named 'sphinx_rtd_theme' found (missing theme.conf?)

Missing sphinx_rtd_theme; run pip install sphinx_rtd_theme again

C:\aithinker_Ai-M6X_SDK\docs>pip install sphinx_rtd_theme
Collecting sphinx_rtd_theme
Obtaining dependency information for sphinx_rtd_theme from [https://files.pythonhosted.org/packages/ea/46/00fda84467815c29951a9c91e3ae7503c409ddad04373e7cfc78daad4300/sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl.metadata](https://files.pythonhosted.org/packages/ea/46/00fda84467815c29951a9c91e3ae7503c409ddad04373e7cfc78daad4300/sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl.metadata)
Downloading sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl.metadata (4.4 kB)
Requirement already satisfied: sphinx<8,>=5 in c:\python\python312\lib\site-packages (from sphinx_rtd_theme) (7.2.6)
Requirement already satisfied: docutils<0.21 in c:\python\python312\lib\site-packages (from sphinx_rtd_theme) (0.20.1)
Collecting sphinxcontrib-jquery<5,>=4 (from sphinx_rtd_theme)
Downloading sphinxcontrib_jquery-4.1-py2.py3-none-any.whl (121 kB)
---------------------------------------- 121.1/121.1 kB 33.2 kB/s eta 0:00:00
Requirement already satisfied: sphinxcontrib-applehelp in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.0.7)
Requirement already satisfied: sphinxcontrib-devhelp in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.0.5)
Requirement already satisfied: sphinxcontrib-jsmath in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.0.1)
Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.0.4)
Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.9 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.1.9)
Requirement already satisfied: sphinxcontrib-qthelp in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.0.6)
Requirement already satisfied: Jinja2>=3.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (3.1.2)
Requirement already satisfied: Pygments>=2.14 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.17.2)
Requirement already satisfied: snowballstemmer>=2.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.2.0)
Requirement already satisfied: babel>=2.9 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.13.1)
Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (0.7.13)
Requirement already satisfied: imagesize>=1.3 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.4.1)
Requirement already satisfied: requests>=2.25.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.31.0)
Requirement already satisfied: packaging>=21.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (23.2)
Requirement already satisfied: colorama>=0.4.5 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (0.4.6)
Requirement already satisfied: setuptools in c:\python\python312\lib\site-packages (from babel>=2.9->sphinx<8,>=5->sphinx_rtd_theme) (69.0.2)
Requirement already satisfied: MarkupSafe>=2.0 in c:\python\python312\lib\site-packages (from Jinja2>=3.0->sphinx<8,>=5->sphinx_rtd_theme) (2.1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx<8,>=5->sphinx_rtd_theme) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx<8,>=5->sphinx_rtd_theme) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx<8,>=5->sphinx_rtd_theme) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx<8,>=5->sphinx_rtd_theme) (2023.11.17)
Downloading sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl (2.8 MB)
---------------------------------------- 2.8/2.8 MB 43.8 kB/s eta 0:00:00
Installing collected packages: sphinxcontrib-jquery, sphinx_rtd_theme
Successfully installed sphinx_rtd_theme-2.0.0 sphinxcontrib-jquery-4.1
[notice] A new release of pip is available: 23.2.1 -> 23.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip

Run make html again; compilation finally succeeded

C:\aithinker_Ai-M6X_SDK\docs>make html
Running Sphinx v7.2.6
[autosummary] generating autosummary for: advance_samples/index.rst, api_reference/components/bflog.rst, api_reference/components/ble.rst, api_reference/components/index.rst, api_reference/components/wifi.rst, api_reference/peripherals/adc.rst, api_reference/peripherals/cks.rst, api_reference/peripherals/clock.rst, api_reference/peripherals/dac.rst, api_reference/peripherals/dma.rst, ..., samples/peripherals/i2c/index.rst, samples/peripherals/index.rst, samples/peripherals/ir/index.rst, samples/peripherals/ir/ir_nec.rst, samples/peripherals/ir/ir_rc5.rst, samples/peripherals/ir/ir_swm.rst, samples/peripherals/ir/ir_tx_dma.rst, samples/peripherals/uart/index.rst, samples/peripherals/uart/uart_dma.rst, samples/peripherals/uart/uart_poll.rst
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 69 source files that are out of date
updating environment: [new config] 69 added, 0 changed, 0 removed
reading sources... [100%] samples/peripherals/uart/uart_poll
C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:11: WARNING: Bullet list ends without a blank line; unexpected unindent.
C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:16: WARNING: Bullet list ends without a blank line; unexpected unindent.
C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:22: WARNING: Bullet list ends without a blank line; unexpected unindent.
C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:23: WARNING: Bullet list ends without a blank line; unexpected unindent.
C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:523: WARNING: Explicit markup ends without a blank line; unexpected unindent.
C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:716: WARNING: Explicit markup ends without a blank line; unexpected unindent.
C:\aithinker_Ai-M6X_SDK\docs\source\samples/peripherals/gpio/index.rst:13: ERROR: "table" widths do not match the number of columns in table (2).
.. table:: GPIO 口
:widths: 25, 25, 25, 25
:width: 80%
:align: center
+----------------------+--------------------------------------------------------------------------------+
|   开发板             | GPIO                                                                           |
+======================+================================================================================+
| BL61x_MB_V1          | GPIO 0-34(其中 GPIO 2 为 BOOT 引脚,GPIO16/17默认为晶振引脚)                   |
+----------------------+--------------------------------------------------------------------------------+
C:\aithinker_Ai-M6X_SDK\docs\source\samples/peripherals/i2c/i2c_eeprom_interrupt.rst:2: WARNING: Title underline too short.
I2C - eeprom_interrupt
====================
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
writing output... [100%] samples/peripherals/uart/uart_poll
C:\aithinker_Ai-M6X_SDK\docs\source\samples\components\freertos.rst:69: WARNING: undefined label: 'bl_dev_cube'
generating indices... genindex done
writing additional pages... search done
copying images... [100%] notes/img/uart_sig.png
dumping search index in English (code: en)... done
dumping object inventory... done
====================== slowest reading durations =======================
0.187 api_reference/peripherals/adc
0.156 api_reference/components/bflog
0.156 api_reference/peripherals/spi
0.125 api_reference/peripherals/flash
0.125 api_reference/peripherals/pwm_v2
build succeeded, 9 warnings.
The HTML pages are in build\html.

Finally open index.html under C:\aithinker_Ai-M6X_SDK\docs\build\html The result: we now have an offline SDK documentation.

If you want to have local doc documentation, take a look.

Under C:\aithinker_Ai-M6X_SDK\docs there is SDK-related documentation. However, since it is in rst format, it cannot be viewed directly.

You can compile it to HTML with Python and then view it.

Next, let’s compile the docs directory to HTML.

Download and install Python

Open https://www.python.org/ to enter the Python official website

Then point the mouse at the Downloads tab

A menu pops up

Click to download Python 3.12.0

After downloading, find the downloaded installer.

Double-click to start it; the installation page is as follows

Check “Add python.exe to PATH”, click Install Now, and follow the prompts to install.

After installation, verify by pressing Win+R, entering cmd, then typing python; it displays as shown below.

Opening Python rst files

RST is to Python what Javadoc is to Java.

If you download someone else’s Python source code containing an rst folder, we can convert it to HTML and open it with a browser.

Operation Steps (continued)

1
Install Python's sphinx module:

Install Python’s sphinx module:

pip install sphinx
2
Run make

Run make

C:\aithinker_Ai-M6X_SDK\docs>make

Sphinx v7.2.6

Please use `make target' where target is one of

  html        to make standalone HTML files

  dirhtml     to make HTML files named index.html in directories

  singlehtml  to make a single large HTML file

  pickle      to make pickle files

  json        to make JSON files

  htmlhelp    to make HTML files and an HTML help project

  qthelp      to make HTML files and a qthelp project

  devhelp     to make HTML files and a Devhelp project

  epub        to make an epub

  latex       to make LaTeX files, you can set PAPER=a4 or PAPER=letter

  text        to make text files

  man         to make manual pages

  texinfo     to make Texinfo files

  gettext     to make PO message catalogs

  changes     to make an overview of all changed/added/deprecated items

  xml         to make Docutils-native XML files

  pseudoxml   to make pseudoxml-XML files for display purposes

  linkcheck   to check all external links for integrity

  doctest     to run all doctests embedded in the documentation (if enabled)

  coverage    to run coverage check of the documentation (if enabled)

  clean       to remove everything in the build directory
3
Then run make html

Then run make html

C:\aithinker_Ai-M6X_SDK\docs>make html

Running Sphinx v7.2.6

Extension error:

Could not import extension recommonmark (exception: No module named 'recommonmark')

Found a missing module; run pip install recommonmark

C:\aithinker_Ai-M6X_SDK\docs>pip install recommonmark

Collecting recommonmark

  Downloading recommonmark-0.7.1-py2.py3-none-any.whl (10 kB)

Collecting commonmark>=0.8.1 (from recommonmark)

  Downloading commonmark-0.9.1-py2.py3-none-any.whl (51 kB)

     ---------------------------------------- 51.1/51.1 kB 113.4 kB/s eta 0:00:00

Requirement already satisfied: docutils>=0.11 in c:\python\python312\lib\site-packages (from recommonmark) (0.20.1)

Requirement already satisfied: sphinx>=1.3.1 in c:\python\python312\lib\site-packages (from recommonmark) (7.2.6)

Requirement already satisfied: sphinxcontrib-applehelp in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.0.7)

Requirement already satisfied: sphinxcontrib-devhelp in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.0.5)

Requirement already satisfied: sphinxcontrib-jsmath in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.0.1)

Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.0.4)

Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.9 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.1.9)

Requirement already satisfied: sphinxcontrib-qthelp in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.0.6)

Requirement already satisfied: Jinja2>=3.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (3.1.2)

Requirement already satisfied: Pygments>=2.14 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.17.2)

Requirement already satisfied: snowballstemmer>=2.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.2.0)

Requirement already satisfied: babel>=2.9 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.13.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (0.7.13)

Requirement already satisfied: imagesize>=1.3 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (1.4.1)

Requirement already satisfied: requests>=2.25.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (2.31.0)

Requirement already satisfied: packaging>=21.0 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (23.2)

Requirement already satisfied: colorama>=0.4.5 in c:\python\python312\lib\site-packages (from sphinx>=1.3.1->recommonmark) (0.4.6)

Requirement already satisfied: setuptools in c:\python\python312\lib\site-packages (from babel>=2.9->sphinx>=1.3.1->recommonmark) (69.0.2)

Requirement already satisfied: MarkupSafe>=2.0 in c:\python\python312\lib\site-packages (from Jinja2>=3.0->sphinx>=1.3.1->recommonmark) (2.1.3)

Requirement already satisfied: charset-normalizer<4,>=2 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx>=1.3.1->recommonmark) (3.3.2)

Requirement already satisfied: idna<4,>=2.5 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx>=1.3.1->recommonmark) (3.6)

Requirement already satisfied: urllib3<3,>=1.21.1 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx>=1.3.1->recommonmark) (2.1.0)

Requirement already satisfied: certifi>=2017.4.17 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx>=1.3.1->recommonmark) (2023.11.17)

Installing collected packages: commonmark, recommonmark

Successfully installed commonmark-0.9.1 recommonmark-0.7.1

[notice] A new release of pip is available: 23.2.1 -> 23.3.1

[notice] To update, run: python.exe -m pip install --upgrade pip

Run make html again

C:\aithinker_Ai-M6X_SDK\docs>make html

Running Sphinx v7.2.6

Extension error:

Could not import extension sphinx_markdown_tables (exception: No module named 'sphinx_markdown_tables')

Missing module sphinx_markdown_tables; run pip install sphinx_markdown_tables

C:\aithinker_Ai-M6X_SDK\docs>pip install sphinx_markdown_tables

Collecting sphinx_markdown_tables

  Downloading sphinx_markdown_tables-0.0.17-py3-none-any.whl (28 kB)

Collecting markdown>=3.4 (from sphinx_markdown_tables)

  Obtaining dependency information for markdown>=3.4 from [https://files.pythonhosted.org/packages/70/58/2c5a654173937d9f540a4971c569b44dcd55e5424a484d954cdaeebcf79c/Markdown-3.5.1-py3-none-any.whl.metadata](https://files.pythonhosted.org/packages/70/58/2c5a654173937d9f540a4971c569b44dcd55e5424a484d954cdaeebcf79c/Markdown-3.5.1-py3-none-any.whl.metadata)

  Downloading Markdown-3.5.1-py3-none-any.whl.metadata (7.1 kB)

Downloading Markdown-3.5.1-py3-none-any.whl (102 kB)

   ---------------------------------------- 102.2/102.2 kB 391.1 kB/s eta 0:00:00

Installing collected packages: markdown, sphinx_markdown_tables

Successfully installed markdown-3.5.1 sphinx_markdown_tables-0.0.17

[notice] A new release of pip is available: 23.2.1 -> 23.3.1

[notice] To update, run: python.exe -m pip install --upgrade pip

Run make html again

C:\aithinker_Ai-M6X_SDK\docs>make html

Running Sphinx v7.2.6

making output directory... done

Theme error:

no theme named 'sphinx_rtd_theme' found (missing theme.conf?)

Missing sphinx_rtd_theme; run pip install sphinx_rtd_theme again

C:\aithinker_Ai-M6X_SDK\docs>pip install sphinx_rtd_theme

Collecting sphinx_rtd_theme

  Obtaining dependency information for sphinx_rtd_theme from [https://files.pythonhosted.org/packages/ea/46/00fda84467815c29951a9c91e3ae7503c409ddad04373e7cfc78daad4300/sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl.metadata](https://files.pythonhosted.org/packages/ea/46/00fda84467815c29951a9c91e3ae7503c409ddad04373e7cfc78daad4300/sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl.metadata)

  Downloading sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl.metadata (4.4 kB)

Requirement already satisfied: sphinx<8,>=5 in c:\python\python312\lib\site-packages (from sphinx_rtd_theme) (7.2.6)

Requirement already satisfied: docutils<0.21 in c:\python\python312\lib\site-packages (from sphinx_rtd_theme) (0.20.1)

Collecting sphinxcontrib-jquery<5,>=4 (from sphinx_rtd_theme)

  Downloading sphinxcontrib_jquery-4.1-py2.py3-none-any.whl (121 kB)

     ---------------------------------------- 121.1/121.1 kB 33.2 kB/s eta 0:00:00

Requirement already satisfied: sphinxcontrib-applehelp in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.0.7)

Requirement already satisfied: sphinxcontrib-devhelp in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.0.5)

Requirement already satisfied: sphinxcontrib-jsmath in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.0.1)

Requirement already satisfied: sphinxcontrib-htmlhelp>=2.0.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.0.4)

Requirement already satisfied: sphinxcontrib-serializinghtml>=1.1.9 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.1.9)

Requirement already satisfied: sphinxcontrib-qthelp in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.0.6)

Requirement already satisfied: Jinja2>=3.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (3.1.2)

Requirement already satisfied: Pygments>=2.14 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.17.2)

Requirement already satisfied: snowballstemmer>=2.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.2.0)

Requirement already satisfied: babel>=2.9 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.13.1)

Requirement already satisfied: alabaster<0.8,>=0.7 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (0.7.13)

Requirement already satisfied: imagesize>=1.3 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (1.4.1)

Requirement already satisfied: requests>=2.25.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (2.31.0)

Requirement already satisfied: packaging>=21.0 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (23.2)

Requirement already satisfied: colorama>=0.4.5 in c:\python\python312\lib\site-packages (from sphinx<8,>=5->sphinx_rtd_theme) (0.4.6)

Requirement already satisfied: setuptools in c:\python\python312\lib\site-packages (from babel>=2.9->sphinx<8,>=5->sphinx_rtd_theme) (69.0.2)

Requirement already satisfied: MarkupSafe>=2.0 in c:\python\python312\lib\site-packages (from Jinja2>=3.0->sphinx<8,>=5->sphinx_rtd_theme) (2.1.3)

Requirement already satisfied: charset-normalizer<4,>=2 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx<8,>=5->sphinx_rtd_theme) (3.3.2)

Requirement already satisfied: idna<4,>=2.5 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx<8,>=5->sphinx_rtd_theme) (3.6)

Requirement already satisfied: urllib3<3,>=1.21.1 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx<8,>=5->sphinx_rtd_theme) (2.1.0)

Requirement already satisfied: certifi>=2017.4.17 in c:\python\python312\lib\site-packages (from requests>=2.25.0->sphinx<8,>=5->sphinx_rtd_theme) (2023.11.17)

Downloading sphinx_rtd_theme-2.0.0-py2.py3-none-any.whl (2.8 MB)

   ---------------------------------------- 2.8/2.8 MB 43.8 kB/s eta 0:00:00

Installing collected packages: sphinxcontrib-jquery, sphinx_rtd_theme

Successfully installed sphinx_rtd_theme-2.0.0 sphinxcontrib-jquery-4.1

[notice] A new release of pip is available: 23.2.1 -> 23.3.1

[notice] To update, run: python.exe -m pip install --upgrade pip

Run make html again; compilation finally succeeded

C:\aithinker_Ai-M6X_SDK\docs>make html

Running Sphinx v7.2.6

[autosummary] generating autosummary for: advance_samples/index.rst, api_reference/components/bflog.rst, api_reference/components/ble.rst, api_reference/components/index.rst, api_reference/components/wifi.rst, api_reference/peripherals/adc.rst, api_reference/peripherals/cks.rst, api_reference/peripherals/clock.rst, api_reference/peripherals/dac.rst, api_reference/peripherals/dma.rst, ..., samples/peripherals/i2c/index.rst, samples/peripherals/index.rst, samples/peripherals/ir/index.rst, samples/peripherals/ir/ir_nec.rst, samples/peripherals/ir/ir_rc5.rst, samples/peripherals/ir/ir_swm.rst, samples/peripherals/ir/ir_tx_dma.rst, samples/peripherals/uart/index.rst, samples/peripherals/uart/uart_dma.rst, samples/peripherals/uart/uart_poll.rst

building [mo]: targets for 0 po files that are out of date

writing output...

building [html]: targets for 69 source files that are out of date

updating environment: [new config] 69 added, 0 changed, 0 removed

reading sources... [100%] samples/peripherals/uart/uart_poll

C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:11: WARNING: Bullet list ends without a blank line; unexpected unindent.

C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:16: WARNING: Bullet list ends without a blank line; unexpected unindent.

C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:22: WARNING: Bullet list ends without a blank line; unexpected unindent.

C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:23: WARNING: Bullet list ends without a blank line; unexpected unindent.

C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:523: WARNING: Explicit markup ends without a blank line; unexpected unindent.

C:\aithinker_Ai-M6X_SDK\docs\source\api_reference/components/ble.rst:716: WARNING: Explicit markup ends without a blank line; unexpected unindent.

C:\aithinker_Ai-M6X_SDK\docs\source\samples/peripherals/gpio/index.rst:13: ERROR: "table" widths do not match the number of columns in table (2).

.. table:: GPIO 口

    :widths: 25, 25, 25, 25

    :width: 80%

    :align: center

    +----------------------+--------------------------------------------------------------------------------+

    |   开发板             | GPIO                                                                           |

    +======================+================================================================================+

    | BL61x_MB_V1          | GPIO 0-34(其中 GPIO 2 为 BOOT 引脚,GPIO16/17默认为晶振引脚)                   |

    +----------------------+--------------------------------------------------------------------------------+

C:\aithinker_Ai-M6X_SDK\docs\source\samples/peripherals/i2c/i2c_eeprom_interrupt.rst:2: WARNING: Title underline too short.

I2C - eeprom_interrupt

====================

looking for now-outdated files... none found

pickling environment... done

checking consistency... done

preparing documents... done

copying assets... copying static files... done

copying extra files... done

done

writing output... [100%] samples/peripherals/uart/uart_poll

C:\aithinker_Ai-M6X_SDK\docs\source\samples\components\freertos.rst:69: WARNING: undefined label: 'bl_dev_cube'

generating indices... genindex done

writing additional pages... search done

copying images... [100%] notes/img/uart_sig.png

dumping search index in English (code: en)... done

dumping object inventory... done

====================== slowest reading durations =======================

0.187 api_reference/peripherals/adc

0.156 api_reference/components/bflog

0.156 api_reference/peripherals/spi

0.125 api_reference/peripherals/flash

0.125 api_reference/peripherals/pwm_v2

build succeeded, 9 warnings.

The HTML pages are in build\html.

Finally open index.html under C:\aithinker_Ai-M6X_SDK\docs\build\html

The result: we now have an offline SDK documentation.

Have questions?

For other questions, please visit the unified discussion area: Ai-Thinker Discussions

Released under the MIT License. Build Time 2026-09-11 14:52:23