mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-11 17:14:41 +00:00
doc/common/requirements: Rename to static.
We will work on a version that can be toggled dynamically. It will just include this static version. This keeps things simple and still lets us use the static version as needed.
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ extensions = [
|
||||
'sphinx.ext.mathjax',
|
||||
'color',
|
||||
'classlink',
|
||||
'requirements',
|
||||
'requirements-static',
|
||||
]
|
||||
|
||||
# Add any paths that contain templates here, relative to this directory.
|
||||
|
||||
+3
-3
@@ -29,7 +29,7 @@ HUB_FEATURES = {
|
||||
}
|
||||
|
||||
|
||||
class PybricksRequirementsDirective(Directive):
|
||||
class PybricksRequirementsStaticDirective(Directive):
|
||||
|
||||
required_arguments = 0
|
||||
optional_arguments = 10
|
||||
@@ -88,6 +88,6 @@ class PybricksRequirementsDirective(Directive):
|
||||
def setup(app):
|
||||
app.add_directive_to_domain(
|
||||
'py',
|
||||
'pybricks-requirements',
|
||||
PybricksRequirementsDirective
|
||||
'pybricks-requirements-static',
|
||||
PybricksRequirementsStaticDirective
|
||||
)
|
||||
@@ -13,7 +13,7 @@
|
||||
This module has classes for generic input/output devices. It is available on
|
||||
these hubs:
|
||||
|
||||
.. pybricks-requirements:: pybricks-iodevices
|
||||
.. pybricks-requirements-static:: pybricks-iodevices
|
||||
|
||||
.. pybricks-classlink:: PUPDevice
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
This MicroPython module is similar to the `math module`_ in Python.
|
||||
It is available on these hubs:
|
||||
|
||||
.. pybricks-requirements:: stm32-extra stm32-float
|
||||
.. pybricks-requirements-static:: stm32-extra stm32-float
|
||||
|
||||
|
||||
.. module:: umath
|
||||
|
||||
Reference in New Issue
Block a user