|
72 | 72 |
|
73 | 73 | # General information about the project. |
74 | 74 | 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" |
76 | 76 |
|
77 | 77 | # The version info for the project you're documenting, acts as replacement for |
78 | 78 | # |version| and |release|, also used in various other places throughout the |
79 | 79 | # built documents. |
80 | 80 | # |
81 | 81 | # We don't follow "The short X.Y version" vs "The full version, including alpha/beta/rc tags" |
82 | 82 | # breakdown, so use the same version identifier for both to avoid confusion. |
83 | | -version = release = micropy_version |
| 83 | +version = release = "1.26" |
84 | 84 |
|
85 | 85 | # The language for content autogenerated by Sphinx. Refer to documentation |
86 | 86 | # for a list of supported languages. |
87 | 87 | # language = None |
88 | 88 |
|
| 89 | +# -- Options for i18n output ---------------------------------------------- |
| 90 | +locale_dirs = ["locale"] |
| 91 | +gettext_compact = False |
| 92 | + |
89 | 93 | # There are two options for replacing |today|: either, you set today to some |
90 | 94 | # non-false value, then it is used: |
91 | 95 | # today = '' |
|
94 | 98 |
|
95 | 99 | # List of patterns, relative to source directory, that match files and |
96 | 100 | # 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 | +] |
98 | 170 |
|
99 | 171 | # The reST default role (used for this markup: `text`) to use for all |
100 | 172 | # documents. |
|
131 | 203 |
|
132 | 204 | import sphinx_rtd_theme |
133 | 205 |
|
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 = ["."] |
135 | 218 |
|
136 | 219 | # Theme options are theme-specific and customize the look and feel of a theme |
137 | 220 | # further. For a list of options available for each theme, see the |
|
150 | 233 |
|
151 | 234 | # The name of an image file (relative to this directory) to place at the top |
152 | 235 | # of the sidebar. |
153 | | -# html_logo = '../../logo/trans-logo.png' |
| 236 | +html_logo = "../../openmv-media/logos/openmv-logo-white/web-logo-sticky.png" |
154 | 237 |
|
155 | 238 | # The name of an image file (within the static path) to use as favicon of the |
156 | 239 | # docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32 |
157 | 240 | # pixels large. |
158 | | -html_favicon = "static/favicon.ico" |
| 241 | +html_favicon = "../../openmv-media/icons/openmv-icon/openmv.ico" |
159 | 242 |
|
160 | 243 | # Add any paths that contain custom static files (such as style sheets) here, |
161 | 244 | # relative to this directory. They are copied after the builtin static files, |
|
237 | 320 | master_doc, |
238 | 321 | "MicroPython.tex", |
239 | 322 | "MicroPython Documentation", |
240 | | - micropy_authors, |
| 323 | + "Damien P. George, Paul Sokolovsky, OpenMV LLC, and contributors", |
241 | 324 | "manual", |
242 | 325 | ), |
243 | 326 | ] |
|
274 | 357 | "index", |
275 | 358 | "micropython", |
276 | 359 | "MicroPython Documentation", |
277 | | - [micropy_authors], |
| 360 | + ["Damien P. George, Paul Sokolovsky, OpenMV LLC, and contributors"], |
278 | 361 | 1, |
279 | 362 | ), |
280 | 363 | ] |
|
293 | 376 | master_doc, |
294 | 377 | "MicroPython", |
295 | 378 | "MicroPython Documentation", |
296 | | - micropy_authors, |
| 379 | + "Damien P. George, Paul Sokolovsky, OpenMV LLC, and contributors", |
297 | 380 | "MicroPython", |
298 | 381 | "One line description of project.", |
299 | 382 | "Miscellaneous", |
|
0 commit comments