Skip to content

Commit

Permalink
Add Pyodide CLI documentation (pyodide#3367)
Browse files Browse the repository at this point in the history
Co-authored-by: Gyeongjae Choi <def6488@gmail.com>
  • Loading branch information
rth and ryanking13 authored Dec 22, 2022
1 parent 8c6b0a3 commit fdbcc08
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"sphinxcontrib.napoleon",
"myst_parser",
"sphinx_js",
"sphinx_click",
"autodocsumm",
"sphinx_panels",
"sphinx_pyodide",
Expand Down
3 changes: 3 additions & 0 deletions docs/requirements-doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ sphinx-issues==2.0.0
sphinx-js==3.1
sphinx-version-warning~=1.1.2
sphinx-panels
sphinx-click
markupsafe<2.1.0
pydantic
# Packages that we want to document as part of the Pyodide CLI
./pyodide-build/
# Version should be consistent with packages/micropip/meta.yaml
micropip==0.2.0
1 change: 1 addition & 0 deletions docs/usage/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
api/js-api.md
api/python-api.md
Micropip API <https://micropip.pyodide.org/en/stable/project/api.html>
api/pyodide-cli.md
api/pyodide-build-cli.md
```
4 changes: 4 additions & 0 deletions docs/usage/api/pyodide-build-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

# pyodide-build CLI

```{note}
This CLI is being deprecated in favor of the {ref}`pyodide-cli` and will be removed in the future
```

```{eval-rst}
.. sphinx_argparse_cli::
:module: pyodide_build.__main__
Expand Down
13 changes: 13 additions & 0 deletions docs/usage/api/pyodide-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
(pyodide-cli)=

# pyodide CLI

This page documents the Pyodide Command Line Interface (CLI) interface. In addition to the commands defined by `pyodide-build`, documented below, other subcommands are defined in external packages (which can be installed with pip):

- `pyodide pack`, defined in [pyodide-pack](https://github.com/pyodide/pyodide-pack) is a package bundler for Pyodide

```{eval-rst}
.. click:: pyodide_cli.app:typer_click_object
:prog: pyodide
:nested: full
```
2 changes: 1 addition & 1 deletion pyodide-build/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ install_requires =
build==0.7.0
virtualenv
pydantic>=1.10.2
pyodide-cli>=0.2.0
pyodide-cli~=0.2.1
cmake
unearth~=0.6
requests
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
pre-commit
# testing
build==0.7.0
sphinx-click
hypothesis
pytest
pytest-asyncio
Expand Down

0 comments on commit fdbcc08

Please sign in to comment.