Skip to content

Commit 43efb46

Browse files
committed
docs/library/index.rst: Minimally adapt for unix port.
1 parent c6bc5b6 commit 43efb46

1 file changed

Lines changed: 21 additions & 6 deletions

File tree

docs/library/index.rst

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ The following standard Python libraries are built in to MicroPython.
1717
For additional libraries, please download them from the `micropython-lib repository
1818
<https://github.com/micropython/micropython-lib>`_.
1919

20+
.. only:: port_unix
21+
22+
.. toctree::
23+
:maxdepth: 1
24+
25+
cmath.rst
26+
gc.rst
27+
math.rst
28+
os.rst
29+
struct.rst
30+
sys.rst
31+
time.rst
32+
2033
.. only:: port_pyboard
2134

2235
.. toctree::
@@ -50,13 +63,15 @@ the philosophy of MicroPython. They provide the core functionality of that
5063
module and are intended to be a drop-in replacement for the standard Python
5164
library.
5265

53-
The modules are available by their u-name, and also by their non-u-name. The
54-
non-u-name can be overridden by a file of that name in your package path.
55-
For example, ``import json`` will first search for a file ``json.py`` or
56-
directory ``json`` and load that package if it is found. If nothing is found,
57-
it will fallback to loading the built-in ``ujson`` module.
66+
.. only:: not port_unix
5867

59-
.. only:: port_pyboard
68+
The modules are available by their u-name, and also by their non-u-name. The
69+
non-u-name can be overridden by a file of that name in your package path.
70+
For example, ``import json`` will first search for a file ``json.py`` or
71+
directory ``json`` and load that package if it is found. If nothing is found,
72+
it will fallback to loading the built-in ``ujson`` module.
73+
74+
.. only:: port_pyboard or port_unix
6075

6176
.. toctree::
6277
:maxdepth: 1

0 commit comments

Comments
 (0)