summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-04-10 11:33:30 -0700
committerGitHub <noreply@github.com>2020-04-10 11:33:30 -0700
commit2e29cbf598dc6f6a542c6af2035f44e9213ebf07 (patch)
treeea34966ac28391d48f1ae36cc800e30de253605b
parentb3b8b5ca71dc58415083180d04b407185514c216 (diff)
parent1d64c51b7e84a72f443e6bc43cdd0d2e7520247b (diff)
Merge pull request #2757 from sommersoft/sphinx3_fix
RFC: Use Sphinx 3 To Build Docs
-rw-r--r--.github/workflows/build.yml2
-rw-r--r--conf.py14
-rw-r--r--docs/library/network.rst2
-rw-r--r--shared-bindings/ulab/__init__.rst2
4 files changed, 12 insertions, 8 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 455f83a21..333c98846 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -24,7 +24,7 @@ jobs:
run: |
sudo apt-get install -y eatmydata
sudo eatmydata apt-get install -y gettext librsvg2-bin mingw-w64
- pip install requests sh click setuptools cpp-coveralls "Sphinx<3" sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib pyyaml
+ pip install requests sh click setuptools cpp-coveralls "Sphinx<4" sphinx-rtd-theme recommonmark sphinxcontrib-svg2pdfconverter polib pyyaml
- name: Versions
run: |
gcc --version
diff --git a/conf.py b/conf.py
index 1dde709d7..19542ad9f 100644
--- a/conf.py
+++ b/conf.py
@@ -17,7 +17,7 @@ import json
import sys
import os
-from recommonmark.parser import CommonMarkParser
+import recommonmark
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
@@ -55,16 +55,20 @@ extensions = [
'sphinx.ext.todo',
'sphinx.ext.coverage',
'rstjinja',
- 'c2rst'
+ 'c2rst',
+ 'recommonmark',
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['templates']
# The suffix of source filenames.
-source_suffix = ['.rst', '.md', '.c', '.h']
+source_suffix = {
+ '.rst': 'restructuredtext',
+ '.md': 'markdown',
+ '.c': ''
+}
-source_parsers = {'.md': CommonMarkParser}
# The encoding of source files.
#source_encoding = 'utf-8-sig'
@@ -357,4 +361,4 @@ intersphinx_mapping = {"cpython": ('https://docs.python.org/3/', None),
"register": ('https://circuitpython.readthedocs.io/projects/register/en/latest/', None)}
def setup(app):
- app.add_stylesheet("customstyle.css")
+ app.add_css_file("customstyle.css")
diff --git a/docs/library/network.rst b/docs/library/network.rst
index cdcc5f323..bd32267fe 100644
--- a/docs/library/network.rst
+++ b/docs/library/network.rst
@@ -247,7 +247,7 @@ Methods
nic.ifconfig(('192.168.0.4', '255.255.255.0', '192.168.0.1', '8.8.8.8'))
.. method:: wlan.config('param')
-.. method:: wlan.config(param=value, ...)
+ wlan.config(param=value, ...)
Get or set general network interface parameters. These methods allow to work
with additional parameters beyond standard IP configuration (as dealt with by
diff --git a/shared-bindings/ulab/__init__.rst b/shared-bindings/ulab/__init__.rst
index 1379e56f3..d8c10dcc8 100644
--- a/shared-bindings/ulab/__init__.rst
+++ b/shared-bindings/ulab/__init__.rst
@@ -126,7 +126,7 @@ Array type codes
Type code for unsigned integers in the range 0 .. 255 inclusive, like the 'H' typecode of `array.array`
-.. attribute:: uint8
+.. attribute:: uint16
Type code for unsigned integers in the range 0 .. 65535 inclusive, like the 'h' typecode of `array.array`