Skip to content

Commit 8d430b8

Browse files
committed
docs: Apply all initial OpenMV changes from v4.8.1.
1 parent d6d6fbf commit 8d430b8

282 files changed

Lines changed: 62080 additions & 556 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.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
build/
1111
build-*/
1212
docs/genrst/
13+
docs/_build/
1314

1415
# Test failure outputs and intermediate artefacts
1516
tests/results/*
@@ -18,6 +19,9 @@ tests/ports/unix/ffi_lib.so
1819
# Python cache files
1920
__pycache__/
2021

22+
# Compiled translation files
23+
docs/**/*.mo
24+
2125
# Customized Makefile/project overrides
2226
GNUmakefile
2327
user.props

docs/conf.py

Lines changed: 92 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,20 +72,24 @@
7272

7373
# General information about the project.
7474
project = "MicroPython"
75-
copyright = "- The MicroPython Documentation is Copyright © 2014-2026, " + micropy_authors
75+
copyright = "- The MicroPython Documentation is Copyright © 2014-2026, Damien P. George, Paul Sokolovsky, and contributors"
7676

7777
# The version info for the project you're documenting, acts as replacement for
7878
# |version| and |release|, also used in various other places throughout the
7979
# built documents.
8080
#
8181
# We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags"
8282
# breakdown, so use the same version identifier for both to avoid confusion.
83-
version = release = micropy_version
83+
version = release = "1.26"
8484

8585
# The language for content autogenerated by Sphinx. Refer to documentation
8686
# for a list of supported languages.
8787
# language = None
8888

89+
# -- Options for i18n output ----------------------------------------------
90+
locale_dirs = ["locale"]
91+
gettext_compact = False
92+
8993
# There are two options for replacing |today|: either, you set today to some
9094
# non-false value, then it is used:
9195
# today = ''
@@ -94,7 +98,75 @@
9498

9599
# List of patterns, relative to source directory, that match files and
96100
# directories to ignore when looking for source files.
97-
exclude_patterns = ["build", ".venv"]
101+
exclude_patterns = [
102+
"build",
103+
".venv",
104+
"esp32",
105+
"esp8266",
106+
"pyboard",
107+
"wipy",
108+
"library/btree.rst",
109+
"library/esp.rst",
110+
"library/espnow.rst",
111+
"library/esp32.rst",
112+
"library/framebuf.rst",
113+
"library/rp2.rst",
114+
"library/rp2.DMA.rst",
115+
"library/rp2.Flash.rst",
116+
"library/rp2.PIO.rst",
117+
"library/rp2.StateMachine.rst",
118+
"library/wm8960.rst",
119+
"library/zephyr.rst",
120+
"library/zephyr.DiskAccess.rst",
121+
"library/zephyr.FlashArea.rst",
122+
"library/zephyr.zsensor.rst",
123+
"library/lcd160cr.rst",
124+
"library/machine.ADCWiPy.rst",
125+
"library/machine.Counter.rst",
126+
"library/machine.DAC.rst",
127+
"library/machine.Encoder.rst",
128+
"library/machine.SD.rst",
129+
"library/machine.SDCard.rst",
130+
"library/machine.TimerWiPy.rst",
131+
"library/machine.USBDevice.rst",
132+
"library/network.CC3K.rst",
133+
"library/network.WIZNET5K.rst",
134+
"library/network.WLANWiPy.rst",
135+
"library/neopixel.rst",
136+
"library/pyb.Accel.rst",
137+
"library/pyb.LCD.rst",
138+
"library/pyb.Switch.rst",
139+
"library/wipy.rst",
140+
"mimxrt/general.rst",
141+
"mimxrt/pinout.rst",
142+
"mimxrt/tutorial/intro.rst",
143+
"mimxrt/quickref.rst",
144+
"renesas-ra/general.rst",
145+
"renesas-ra/quickref.rst",
146+
"renesas-ra/tutorial/index.rst",
147+
"renesas-ra/tutorial/intro.rst",
148+
"renesas-ra/tutorial/program_in_flash.rst",
149+
"renesas-ra/tutorial/reset.rst",
150+
"renesas-ra/tutorial/troubleshooting.rst",
151+
"renesas-ra/tutorial/using_peripheral.rst",
152+
"rp2/general.rst",
153+
"rp2/quickref.rst",
154+
"rp2/tutorial/intro.rst",
155+
"rp2/tutorial/pio.rst",
156+
"rp2/tutorial/reset.rst",
157+
"samd/general.rst",
158+
"samd/quickref.rst",
159+
"samd/pinout.rst",
160+
"samd/tutorial/intro.rst",
161+
"unix/quickref.rst",
162+
"zephyr/general.rst",
163+
"zephyr/quickref.rst",
164+
"zephyr/tutorial/index.rst",
165+
"zephyr/tutorial/intro.rst",
166+
"zephyr/tutorial/pins.rst",
167+
"zephyr/tutorial/repl.rst",
168+
"zephyr/tutorial/storage.rst",
169+
]
98170

99171
# The reST default role (used for this markup: `text`) to use for all
100172
# documents.
@@ -131,7 +203,18 @@
131203

132204
import sphinx_rtd_theme
133205

134-
html_theme = "sphinx_rtd_theme"
206+
on_rtd = os.environ.get("READTHEDOCS", None) == "True"
207+
208+
if not on_rtd: # only import and set the theme if we're building docs locally
209+
try:
210+
import sphinx_rtd_theme
211+
212+
html_theme = "sphinx_rtd_theme"
213+
except:
214+
html_theme = "default"
215+
html_theme_path = ["."]
216+
else:
217+
html_theme_path = ["."]
135218

136219
# Theme options are theme-specific and customize the look and feel of a theme
137220
# further. For a list of options available for each theme, see the
@@ -150,12 +233,12 @@
150233

151234
# The name of an image file (relative to this directory) to place at the top
152235
# of the sidebar.
153-
# html_logo = '../../logo/trans-logo.png'
236+
html_logo = "../../openmv-media/logos/openmv-logo-white/web-logo-sticky.png"
154237

155238
# The name of an image file (within the static path) to use as favicon of the
156239
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
157240
# pixels large.
158-
html_favicon = "static/favicon.ico"
241+
html_favicon = "../../openmv-media/icons/openmv-icon/openmv.ico"
159242

160243
# Add any paths that contain custom static files (such as style sheets) here,
161244
# relative to this directory. They are copied after the builtin static files,
@@ -237,7 +320,7 @@
237320
master_doc,
238321
"MicroPython.tex",
239322
"MicroPython Documentation",
240-
micropy_authors,
323+
"Damien P. George, Paul Sokolovsky, OpenMV LLC, and contributors",
241324
"manual",
242325
),
243326
]
@@ -274,7 +357,7 @@
274357
"index",
275358
"micropython",
276359
"MicroPython Documentation",
277-
[micropy_authors],
360+
["Damien P. George, Paul Sokolovsky, OpenMV LLC, and contributors"],
278361
1,
279362
),
280363
]
@@ -293,7 +376,7 @@
293376
master_doc,
294377
"MicroPython",
295378
"MicroPython Documentation",
296-
micropy_authors,
379+
"Damien P. George, Paul Sokolovsky, OpenMV LLC, and contributors",
297380
"MicroPython",
298381
"One line description of project.",
299382
"Miscellaneous",

docs/index.rst

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,4 @@ MicroPython documentation and references
88
genrst/index.rst
99
develop/index.rst
1010
license.rst
11-
pyboard/quickref.rst
12-
esp8266/quickref.rst
13-
esp32/quickref.rst
14-
rp2/quickref.rst
15-
mimxrt/quickref.rst
16-
wipy/quickref.rst
17-
unix/quickref.rst
18-
zephyr/quickref.rst
19-
renesas-ra/quickref.rst
20-
samd/quickref.rst
11+
openmvcam/quickref.rst

docs/library/btree.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
:synopsis: simple BTree database
66

77
The ``btree`` module implements a simple key-value database using external
8-
storage (disk files, or in general case, a random-access `stream`). Keys are
8+
storage (disk files, or in general case, a random-access ``stream``). Keys are
99
stored sorted in the database, and besides efficient retrieval by a key
1010
value, a database also supports efficient ordered range scans (retrieval
1111
of values with the keys in a given range). On the application interface
@@ -79,7 +79,7 @@ Functions
7979

8080
.. function:: open(stream, *, flags=0, pagesize=0, cachesize=0, minkeypage=0)
8181

82-
Open a database from a random-access `stream` (like an open file). All
82+
Open a database from a random-access :std:term:`stream` (like an open file). All
8383
other parameters are optional and keyword-only, and allow to tweak advanced
8484
parameters of the database operation (most users will not need them):
8585

docs/library/cmath.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@
99
The ``cmath`` module provides some basic mathematical functions for
1010
working with complex numbers.
1111

12-
Availability: not available on WiPy and ESP8266. Floating point support
13-
required for this module.
14-
1512
Functions
1613
---------
1714

0 commit comments

Comments
 (0)