Skip to content

Commit

Permalink
Add a line plot example and tutorial working (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
corranwebster authored Oct 23, 2024
1 parent 7e877f4 commit 04330de
Show file tree
Hide file tree
Showing 24 changed files with 871 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
python-version: '3.11'
- name: Install dependencies and local packages
run: python -m pip install sphinx pydata-sphinx-theme sphinx-autoapi
run: python -m pip install sphinx pydata-sphinx-theme sphinx-autoapi sphinx-design
- name: Build HTML documentation with Sphinx
run: |
make html
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/check_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
python-version: '3.11'
- name: Install dependencies and local packages
run: python -m pip install sphinx pydata-sphinx-theme sphinx-autoapi
run: python -m pip install sphinx pydata-sphinx-theme sphinx-autoapi sphinx-design
- name: Build HTML documentation with Sphinx
run: |
make html
Expand Down
6 changes: 5 additions & 1 deletion ci/deploy_to_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def deploy():
try:
deploy_py_files(Path("examples"), ":", clear=False)
deploy_py_files(Path("examples/devices"), ":/devices")
deploy_py_files(Path("examples/data"), ":/data")
deploy_py_files(Path("src/tempe"), ":/lib/tempe")
#deploy_py_files(Path("src/tempe/fonts"), ":/lib/tempe/fonts")
#deploy_py_files(Path("src/tempe/colormaps"), ":/lib/tempe/colormaps")
Expand All @@ -31,7 +32,7 @@ def deploy_py_files(path: Path, destination, clear=True):
print('remove', destination, '...')
for file in listdir(destination):
file = file.decode('utf-8')
if not (file.endswith('.py') or file.endswith('.mpy')):
if not (file.endswith('.py') or file.endswith('.mpy') or file.endswith('.af')):
continue
print('remove', f"{destination}/{file}")
try:
Expand All @@ -47,6 +48,9 @@ def deploy_py_files(path: Path, destination, clear=True):
for file in path.glob("*.mpy"):
mpremote("cp", str(file), f"{destination}/{file.name}")

for file in path.glob("*.af"):
mpremote("cp", str(file), f"{destination}/{file.name}")


def listdir(directory):
listing = mpremote("ls", directory)
Expand Down
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.napoleon',
'autoapi.extension'
'autoapi.extension',
"sphinx_design",
]

templates_path = ['_templates']
Expand Down
Binary file added docs/source/user_guide/line_plot_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/user_guide/line_plot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/user_guide/line_plot_3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/user_guide/line_plot_4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/user_guide/line_plot_axes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/user_guide/line_plot_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/user_guide/line_plot_border.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/source/user_guide/lines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 04330de

Please sign in to comment.