Skip to content

Commit 2e29cbf

Browse files
authored
Merge pull request #2757 from sommersoft/sphinx3_fix
RFC: Use Sphinx 3 To Build Docs
2 parents b3b8b5c + 1d64c51 commit 2e29cbf

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: |
2525
sudo apt-get install -y eatmydata
2626
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64
27-
pip install requests sh click setuptools cpp-coveralls "Sphinx<3" sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib pyyaml
27+
pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib pyyaml
2828
- name: Versions
2929
run: |
3030
gcc --version

conf.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import sys
1818
import os
1919

20-
from recommonmark.parser import CommonMarkParser
20+
import recommonmark
2121

2222
# If extensions (or modules to document with autodoc) are in another directory,
2323
# add these directories to sys.path here. If the directory is relative to the
@@ -55,16 +55,20 @@
5555
'sphinx.ext.todo',
5656
'sphinx.ext.coverage',
5757
'rstjinja',
58-
'c2rst'
58+
'c2rst',
59+
'recommonmark',
5960
]
6061

6162
# Add any paths that contain templates here, relative to this directory.
6263
templates_path = ['templates']
6364

6465
# The suffix of source filenames.
65-
source_suffix = ['.rst', '.md', '.c', '.h']
66+
source_suffix = {
67+
'.rst': 'restructuredtext',
68+
'.md': 'markdown',
69+
'.c': ''
70+
}
6671

67-
source_parsers = {'.md': CommonMarkParser}
6872

6973
# The encoding of source files.
7074
#source_encoding = 'utf-8-sig'
@@ -357,4 +361,4 @@
357361
"register": ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None)}
358362

359363
def setup(app):
360-
app.add_stylesheet("customstyle.css")
364+
app.add_css_file("customstyle.css")

docs/library/network.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Methods
247247
nic.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
248248

249249
.. method:: wlan.config('param')
250-
.. method:: wlan.config(param=value, ...)
250+
wlan.config(param=value, ...)
251251

252252
Get or set general network interface parameters. These methods allow to work
253253
with additional parameters beyond standard IP configuration (as dealt with by

shared-bindings/ulab/__init__.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Array type codes
126126

127127
Type code for unsigned integers in the range 0 .. 255 inclusive, like the 'H' typecode of `array.array`
128128

129-
.. attribute:: uint8
129+
.. attribute:: uint16
130130

131131
Type code for unsigned integers in the range 0 .. 65535 inclusive, like the 'h' typecode of `array.array`
132132

0 commit comments

Comments
 (0)