David Lechner
9d8531a85b
npm/ide-docs: move npm packaging to separate directory
...
This makes a clean separation between the packaging and the docs.
2021-11-19 19:30:57 -06:00
David Lechner
fee122cf33
CHANGELOG: move to top level
...
This makes the CHANGELOG easy to find.
2021-11-19 16:37:38 -06:00
David Lechner
f42ed06d4f
doc/main/CHANGELOG: use keepachangelog.com recommendations
...
This updates the changelog to use keepachangelog.com recommendations
to make it consistent with other Pybricks changelogs.
2021-08-30 13:29:38 -05:00
David Lechner
a8126f0bed
doc/main: fix dir in package.json
...
Another case of a missed ide to main directory.
2021-08-30 12:20:44 -05:00
David Lechner
2c4685f594
doc/main: add TAG make option
...
This splits the Sphinx tag option from SPHINXOPTS. This allows us to
specify the tag without having to remember to add -W and -t. It also
fixes not being able to specify the tag with make.bat on Windows.
While we are touching this, redundant SOURCEDIR uses are removed (main
is already the default) and the .github/workflows/publish-ide-docs.yml
script is fixed (ide directory no longer exists).
2021-08-30 12:14:34 -05:00
David Lechner
8b0f98d25b
@pybricks/ide-docs v1.6.0
2021-08-30 11:12:05 -05:00
Laurens Valk
dd2e6e8603
ubuiltins.int: Document from_bytes manually.
...
Sphinx fails to show the docsting for class methods. Since we have very few of them, it is easier to just document this one manually
Fixes https://github.com/pybricks/pybricks-api/issues/86
2021-08-22 12:15:42 +02:00
Laurens Valk
d86b5584fb
ubuiltins: Type enumerate as a class.
...
This reverts commit a0ea0d8ca0 because of https://github.com/pybricks/pybricks-api/issues/72
2021-08-06 09:51:52 +02:00
Laurens Valk
1c01e981e0
usys: Clean up.
...
Add requirements, drop autodoc, and add a few cross references.
2021-08-05 16:13:50 +02:00
Laurens Valk
8a6ddf677c
pybricks.pupdevices.Remote: Light examples.
2021-08-05 14:56:00 +02:00
Laurens Valk
5d4481dbb0
pybricks.pupdevices.ColorDistanceSensor: Drop duplicate example.
2021-08-05 13:45:57 +02:00
Laurens Valk
b3c5353dd6
ubuiltins: Reorganize page.
...
Fixes https://github.com/pybricks/pybricks-api/issues/80
2021-08-05 12:32:41 +02:00
Laurens Valk
0ecf536cda
ubuiltins: Add compatibility everywhere.
...
This lets us sort everything by category or alphabetically without having to make special categories for Move Hub.
2021-08-05 12:32:37 +02:00
David Lechner
f2124615ba
ubuiltins: List decorators in separate section.
...
This moves the built-in decorators to their own section and uses
`autodecorator` to indicate they are decorators.
2021-08-05 12:32:29 +02:00
Laurens Valk
49ade9d9c6
pybricks.robotics: Show compatibility.
2021-08-05 12:32:03 +02:00
Laurens Valk
045312921e
pybricks.geometry: Show compatibility.
2021-08-05 12:32:03 +02:00
Laurens Valk
39f58b9e03
pybricks.tools: Show compatibility.
2021-08-05 12:32:03 +02:00
Laurens Valk
4945156d9a
pybricks.parameters: Show compatibility.
2021-08-05 12:32:03 +02:00
Laurens Valk
97b2de46ac
pybricks.hubs: Show compatibility.
2021-08-05 12:32:03 +02:00
Laurens Valk
979da8b170
pybricks.pupdevices: Show compatibility.
2021-08-05 12:32:03 +02:00
Laurens Valk
ac4a913be3
doc/common/requirements: Toggle hub table.
...
This makes it possible to hide/unhide the compatibility table.
It is adapted from the sphinxcontrib-contentui extension: https://github.com/ulrobix/sphinxcontrib-contentui
2021-08-05 12:32:03 +02:00
Laurens Valk
31a30f380f
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.
2021-08-05 12:32:03 +02:00
Laurens Valk
75bc15f071
ubuiltins: Add bytearray.
2021-08-05 12:32:03 +02:00
Laurens Valk
0b9280a8df
uerrno: Display on separate page.
...
Fixes https://github.com/pybricks/pybricks-api/issues/78
2021-08-02 11:01:20 +02:00
Laurens Valk
62bb262b96
pybricks.pupdevices.Remote: Add more examples.
2021-07-28 14:50:43 +02:00
Laurens Valk
8463206f8e
pybricks.pupdevices.Remote: Add name().
...
https://github.com/pybricks/support/issues/404
2021-07-28 13:41:00 +02:00
Laurens Valk
1cf6f8d31b
pybricks.iodevices: Document availability.
2021-07-27 15:55:38 +02:00
Laurens Valk
efc907fb0c
doc/main: Add hub compatibility icons.
...
Also render to git tree.
2021-07-27 14:56:11 +02:00
Laurens Valk
be0903de9e
doc/common/extensions: Basic styling.
...
Turns it into a table with images, using builtin RTD classes for CSS.
2021-07-26 15:47:02 +02:00
Laurens Valk
20361971da
doc/main/images: Crop City Hub.
...
This hub had extra whitespace so they were all the same height, but this is no longer needed in the current layout.
2021-07-26 15:03:42 +02:00
Laurens Valk
cefa78270a
doc/common/extensions: Add requirements directive.
...
Displays compatibility for each hub depending on its features.
2021-07-26 12:18:55 +02:00
Laurens Valk
1f5eb1790b
doc/main/package: Reenable warnings as errors.
...
This gets disabled when overriding SPHINXOPTS.
2021-07-23 15:59:33 +02:00
Laurens Valk
cb74f8e302
doc/main: Move signals to Pybricks TOC.
...
This was the only remaining section under "extras", so it is better to have it elsewhere. Since it only applies to the Pybricks package, put it there.
Also rename Pybricks Modules heading to Pybricks Package, since it behaves more like a package in contrast with the MicroPython modules that we now document as well.
2021-07-23 15:38:05 +02:00
Laurens Valk
24bba6d24c
pybricks.pupdevices.Motor: Document control here.
...
Based on user feedback, we learned that the control attribute is used more frequently than anticipated. Therefore it makes sense to document it here, just like we do with instances of pybricks.common classes in hubs.
This makes it a bit easier to find and see how it is used, along with some of the existing examples.
2021-07-23 15:33:18 +02:00
Laurens Valk
0edddbb0c2
pybricks.common.Control: Fix scale doc.
...
Document it as an attribute instead of in the main docstring. This way we can choose where it shows up in the docs.
2021-07-23 14:51:21 +02:00
Laurens Valk
a11af0845b
doc/main/motors: Drop commented sections.
...
This is not going to be completed here in the API docs.
2021-07-23 14:37:28 +02:00
Laurens Valk
3b71bce0b0
doc/main: Build IDE docs from main docs.
...
With EV3 dropped from the 3.X documentation, the main docs are now nearly identical to the IDE docs, save for some layout changes.
Having just one set of docs is easier to maintain. This drops the IDE doc target.
2021-07-23 12:56:33 +02:00
Laurens Valk
434ff5e346
doc/common/conf: Keep IDE conf settings.
...
We are going to be deleting the ide build files, so make sure we keep what's needed.
2021-07-23 12:45:30 +02:00
Laurens Valk
f7239fc9a9
pybricks.parameters.Port: Drop EV3 sensor ports.
...
We can restore these if the docs cover EV3 once more.
2021-07-23 12:35:46 +02:00
Laurens Valk
78feab8949
pybricks.tools: Drop Datalog class from doc.
...
We can unhide this if/when we support this on Powered Up.
2021-07-23 11:35:32 +02:00
Laurens Valk
f692e5a127
pybricks.iodevices: Drop EV3 specific devices.
...
Some of these could be brought back if we add Powered Up support.
2021-07-23 11:32:01 +02:00
Laurens Valk
fbd843cb54
doc/main/index: Unify IDE and main build.
...
The `only` directive can be used to include content selectively. It cannot be used to select a different TOC, which is why we resorted to separate doc builds before.
Now that we have dropped EV3 references from the docs, we can use a single build and just customize the content on the landing page with the only directive.
The docs can now be built with:
# Main docs:
make -C doc html SPHINXOPTS=-tmain
# IDE docs:
make -C doc html SPHINXOPTS=-tide
2021-07-23 11:25:51 +02:00
Laurens Valk
1be7fce116
doc/main: Drop EV3 references.
...
To make the documentation easier to use and maintain, EV3 content will be hidden.
The stable 2.0 docs should be used for EV3 instead.
2021-07-23 10:41:34 +02:00
Laurens Valk
5ab81dc732
doc/main: Update landing page with link to EV3.
2021-07-21 19:27:45 +02:00
Laurens Valk
72e0d87f77
ubuiltins: Examples for common exceptions.
2021-07-21 14:53:56 +02:00
Laurens Valk
923e8caf84
ubuiltins: Organize exceptions.
2021-07-21 11:12:51 +02:00
Laurens Valk
e8d47ffca1
uerrno: Document alongside OSError.
...
These are meant to be used together, so document them in the same place along with a practical example.
2021-07-19 15:03:10 +02:00
Laurens Valk
64ea5e341c
ubuiltins: Sort classes and functions by use case.
2021-07-16 16:07:55 +02:00
Laurens Valk
29404babcf
ubuiltins: Split out automodule.
...
List all functions and classes explicitly so we can organize them by category in later commits.
Also split out exceptions and uerrno to dedicated page because the builtins page was getting very long and hard to navigate.
2021-07-16 16:07:46 +02:00
Laurens Valk
3b1fd091f1
micropython: Add examples for memory stats.
2021-07-14 16:08:52 +02:00