Skip to content

Commit 2588776

Browse files
committed
Configure JupyterLite
1 parent cb28492 commit 2588776

File tree

5 files changed

+76
-0
lines changed

5 files changed

+76
-0
lines changed

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
'myst_parser',
3737
'sphinx.ext.autodoc',
3838
'sphinx.ext.napoleon',
39+
'jupyterlite_sphinx',
3940
]
4041

4142
# Add any paths that contain templates here, relative to this directory.
@@ -61,3 +62,7 @@
6162
# relative to this directory. They are copied after the builtin static files,
6263
# so a file named "default.css" will overwrite the builtin "default.css".
6364
# html_static_path = ['_static']
65+
66+
# JupyterLite
67+
jupyterlite_contents = ["robotLite.urdf", "notebook.ipynb"]
68+
jupyterlite_dir = "."

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ With this JupyterLab extension, you can easily create and modify URDF files from
1111
.. image:: _static/urdfOverview.gif
1212
:alt: Functionality of extension
1313

14+
.. retrolite:: notebook.ipynb
15+
1416
.. toctree::
1517
:maxdepth: 2
1618
:caption: Contents:

docs/jupyterlite_config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"LiteBuildConfig": {
3+
"federated_extensions": [
4+
"https://anaconda.org/conda-forge/jupyterlab-urdf/0.1.0a0/download/noarch/jupyterlab-urdf-0.1.0a0-pyhd8ed1ab_0.tar.bz2"
5+
],
6+
"ignore_sys_prefix": true
7+
}
8+
}

docs/notebook.ipynb

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": null,
6+
"id": "f5b0e5cc-c84f-46fe-8297-c437dc4c18e5",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": []
10+
}
11+
],
12+
"metadata": {
13+
"kernelspec": {
14+
"display_name": "Python 3 (ipykernel)",
15+
"language": "python",
16+
"name": "python3"
17+
},
18+
"language_info": {
19+
"codemirror_mode": {
20+
"name": "ipython",
21+
"version": 3
22+
},
23+
"file_extension": ".py",
24+
"mimetype": "text/x-python",
25+
"name": "python",
26+
"nbconvert_exporter": "python",
27+
"pygments_lexer": "ipython3",
28+
"version": "3.9.13"
29+
}
30+
},
31+
"nbformat": 4,
32+
"nbformat_minor": 5
33+
}

docs/robotLite.urdf

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0"?>
2+
<robot name="robot">
3+
<link name="base_link">
4+
<visual>
5+
<geometry>
6+
<cylinder length="1" radius="0.25"/>
7+
</geometry>
8+
<origin rpy="0 0 0" xyz="0 0 0.5"/>
9+
</visual>
10+
</link>
11+
12+
<joint name="base_to_plate" type="prismatic">
13+
<parent link="base_link"/>
14+
<child link="plate"/>
15+
<origin rpy="0 0 0" xyz="0 0 0"/>
16+
<axis xyz="0 0 1"/>
17+
<limit effort="1000.0" lower="0" upper="1" velocity="0.5"/>
18+
</joint>
19+
20+
<link name="plate">
21+
<visual>
22+
<geometry>
23+
<box size="0.7 0.7 0.05"/>
24+
</geometry>
25+
<origin rpy="0 0 0" xyz="0 0 0.025"/>
26+
</visual>
27+
</link>
28+
</robot>

0 commit comments

Comments
 (0)