Laurens Valk
aa2019be02
@pybricks/ide-docs v1.3.3
2021-06-23 19:36:00 +02:00
Laurens Valk
1ac78b5b82
@pybricks/ide-docs v1.3.2
2021-06-23 19:35:59 +02:00
Laurens Valk
847a3d5eec
@pybricks/ide-docs v1.3.1
2021-06-23 19:35:59 +02:00
Laurens Valk
1a208ddd25
@pybricks/ide-docs v1.3.0
2021-06-23 19:35:59 +02:00
Laurens Valk
07c53e9a3d
v3: Drop parameters Side and Button.
2021-06-23 19:35:58 +02:00
Laurens Valk
b600f5029e
v3: Drop Remote control.
2021-06-23 19:35:58 +02:00
Laurens Valk
5f767f3fee
v3: Drop geometry module.
2021-06-23 19:35:57 +02:00
Laurens Valk
8db7892f8c
v3: Drop Prime Hub and Inventor Hub.
2021-06-23 19:35:57 +02:00
Laurens Valk
b325bf4bff
v3: Drop IMU documentation.
...
This is not officially supported yet, so drop from release docs.
2021-06-23 19:35:57 +02:00
David Lechner
5d355e9892
doc/api/media: fix audio playback
...
Sphinx changed how filenames are generated which broke media playback.
The file name now includes the MD5 hash of the filename passed to the
:download: directive.
This was done with the following script:
for f in $(find media/ev3dev-media/ -name "*.wav" -exec bash -c 'echo "$(echo -n ../../'{}' | md5sum)/$(basename '{}')"' \;); do
sed -i "s,_downloads/$(basename $f),_downloads/$f," doc/api/media.rst;
done
2021-06-04 12:45:44 -05:00
Laurens Valk
3b20a811cb
examples/pup/motor_dc: Add battery box example.
2021-05-21 14:00:57 +02:00
David Lechner
73cc441edb
github: add release action
...
This publishes the Python package to PyPI when a release is created on
GitHub.
v3.0.0c1
2021-05-17 16:42:16 -05:00
David Lechner
7770a88aa0
github: fix build action name
...
It does more than just build the Python package.
2021-05-17 16:38:58 -05:00
David Lechner
f06caa32bc
3.0.0-rc.1
2021-05-17 16:35:37 -05:00
thesynman
fb8198fe8f
pybricks/robotics.pyi: improve type hint ( #60 )
...
* Allow the wheel diameter and axle track of a DriveBase to be an int or a float
2021-05-10 13:08:25 -05:00
David Lechner
3dad15ac11
examples: fix use of OSError
...
We generally shouldn't be raising OSError from user code since it
represents an error the bubbles up from the OS. Also, when handling
an OSError, we almost always want to check for a specific error code.
2021-04-29 09:38:16 -05:00
Laurens Valk
790fcfa66a
examples/pup/iodevices: Add PUPDevice example.
2021-04-29 13:03:34 +02:00
David Lechner
d108d7c163
doc/common/conf: use xcode syntax highlighting
...
This matches the style used in Pybricks Code.
2021-04-28 15:54:11 -05:00
Martyn Boogaarts
7ce3721b48
examples/pup/hub_shared: Update light animation examples.
...
See https://github.com/pybricks/support/issues/253
* Update light_animate.py
corrected syntax
* Update light_animate.py
corrected syntax
* Update light_animate.py
corrected syntax
* Update light_animate.py
corrected syntax
2021-04-24 21:36:10 +02:00
David Lechner
d0bfbcb4d1
js: only apply target="_blank" to IDE build
...
On the web, we want to be able to navigate between the various Pybricks
subdomains without opening new tabs. But Pybricks Code is treated as an
"app", we don't want links to open in Pybricks Code.
2021-04-20 12:38:33 -05:00
David Lechner
2aadc75f2c
poetry: bump version to match current firmware
v3.0.0a5
2021-04-20 12:07:36 -05:00
David Lechner
8bf42c7d2d
poetry: Bump RTD and theme versions.
...
This is mainly to pull in the requirement of docutils < 0.17 from
sphinx-rtd-theme. Just bumping to latest sphinx doc while we are at it.
Issue: https://github.com/pybricks/pybricks-api/issues/55
2021-04-12 11:12:23 +02:00
Laurens Valk
de13c01673
api/nxtdevices: Update color method.
...
This shares the implementation with the PUP color sensors, so update accordingly.
2021-04-10 15:31:29 +02:00
Laurens Valk
ca96ee2fce
examples: Update detectable colors API.
2021-04-10 15:31:28 +02:00
Laurens Valk
68f626f1ef
doc/pupdevices: Update usage of color.
2021-04-10 15:31:28 +02:00
Laurens Valk
570fac30c5
api/parameters/Color: Fix color definitions.
...
Match the implementation.
2021-04-10 15:31:28 +02:00
Laurens Valk
1f0be98649
api/parameters/Color: Add missing color typing.
2021-04-10 15:31:27 +02:00
Laurens Valk
e91590feec
examples/pup/sensor: Fix use of lights.on.
...
The documentation says to use a list or tuple of brightness values.
https://github.com/pybricks/support/issues/273
Implementation fixed via https://github.com/pybricks/pybricks-micropython/commit/28b5413c2b41283a5c1ea3e8cccf4a2900dd7fc3
2021-04-09 15:44:08 +02:00
Laurens Valk
597b6d682f
@pybricks/ide-docs v1.2.0
@pybricks/ide-docs/v1.2.0
2021-04-09 12:31:37 +02:00
Laurens Valk
9c8d41efb8
doc/index: Update install note in IDE docs.
2021-04-09 12:21:47 +02:00
Laurens Valk
a06e01c6de
doc/start_pup/ev3: Drop installation guide.
...
These are now at https://pybricks.com/install/
2021-04-07 19:56:56 +02:00
David Lechner
186c46f52c
api/pybricks/messaging: fix BluetoothMailboxServer close
...
As per standard Python socketserver, there is `server_close()` rather than `close()`.
Fixes #51
2021-04-07 19:42:33 +02:00
Laurens Valk
7679b8b47d
examples/hubs/MoveHub: imu examples
2021-02-17 23:31:19 +01:00
Laurens Valk
c14f1cf473
api/hubs/MoveHub: add basic imu
...
This is similar to the other hubs, but with reduced functionality.
2021-02-17 23:23:40 +01:00
Jerry Nicholls
6ce8336c26
doc/common/Motor: fix docstring for run_target
...
Changed "does" to "doesn't" for the target angle. The sign of the speed is irrelevant.
2021-02-15 19:12:41 +01:00
Laurens Valk
c46b249c8c
@pybricks/ide-docs v1.1.1
@pybricks/ide-docs/v1.1.1
2021-02-14 19:32:52 +01:00
Laurens Valk
67008b67d8
doc/ide: include installation guide
2021-02-14 19:26:10 +01:00
Laurens Valk
9c1beef6b6
doc/parameters/Port: move doc to rst
2021-02-14 19:00:52 +01:00
Laurens Valk
5eb7a143fa
doc/parameters/Stop: move doc to rst
2021-02-14 19:00:52 +01:00
Laurens Valk
fc04059d86
doc/parameters/Button: move doc to rst
2021-02-14 19:00:45 +01:00
Laurens Valk
0082f0502a
doc/parameters/Direction: move doc to rst
2021-02-14 18:44:25 +01:00
Laurens Valk
e7dc4bb609
doc/parameters/Side: move doc to rst
2021-02-14 18:41:17 +01:00
Laurens Valk
fb86e4bcef
doc/parameters/Stop: fix typo
2021-02-14 16:21:37 +01:00
Laurens Valk
632908f59a
doc/parameters: split out page per class
2021-02-14 16:06:23 +01:00
Laurens Valk
4a7fa12eaa
config: add classlink directive
...
We have index pages for most modules now, which link to individual classes. It is helpful if these empty class headers are hyperlinks. This commit does just that.
For most sensors/devices so far this is not really necessary as the images are already hyperlinks. But this will become more useful as we start adding index pages like these for classes without images, such as parameters.
2021-02-14 15:39:39 +01:00
Jorge Pereira
109fcf19c1
examples/pup/motor: update motor_action_basic
...
Demo of run_angle had a typo
2021-02-14 13:54:58 +01:00
Laurens Valk
3229da030b
doc/start_pup: update getting started instructions
2021-02-14 12:41:05 +01:00
Laurens Valk
4b052fa66d
doc/pupdevices/motor: drop image alignment
...
Fixes https://github.com/pybricks/pybricks-api/issues/40
2021-02-12 11:10:51 +01:00
Laurens Valk
3c6ebd09bd
doc/parameters/Color: add examples
2021-02-12 10:53:40 +01:00
Laurens Valk
af1b84afe2
api/parameters/Color: drop name attribute
2021-02-12 10:16:43 +01:00