Skip to content

Commit

Permalink
Rework docs and examples (#198)
Browse files Browse the repository at this point in the history
* Docs / examples rework

* nits

* Refinements

* ruff

* ignore mypy errors for docs update script
  • Loading branch information
brentyi committed Nov 7, 2024
1 parent afd5486 commit 445155a
Show file tree
Hide file tree
Showing 98 changed files with 3,922 additions and 2,906 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<br />

<strong><code>tyro.cli()</code></strong> is a tool for generating CLI
interfaces.
interfaces in Python.

We can define configurable scripts using functions:

Expand Down Expand Up @@ -211,9 +211,10 @@ particularly like:
[jsonargparse](https://github.com/omni-us/jsonargparse), which provide deeper
integration with configuration file formats like YAML and JSON.
- [clipstick](https://github.com/sander76/clipstick), which focuses on
generating CLIs from Pydantic models.
simplicity + generating CLIs from Pydantic models.
- [datargs](https://github.com/roee30/datargs), which provides a minimal API for
dataclasses.
- [defopt](https://defopt.readthedocs.io/), which has similarly comprehensive type annotation support.
- [fire](https://github.com/google/python-fire) and
[clize](https://github.com/epsy/clize), which support arguments without type
annotations.
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ furo==2024.8.6
docutils==0.20.1
sphinx-autoapi==3.0.0
m2r2==0.3.3.post2
ansi2html==1.9.2
git+https://github.com/brentyi/sphinxcontrib-programoutput.git
git+https://github.com/brentyi/ansi.git
sphinxcontrib-googleanalytics==0.4
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
exclude_patterns: List[str] = []

# The name of the Pygments (syntax highlighting) style to use.
pygments_style = "monokai"
pygments_style = "default"


# -- Options for HTML output -------------------------------------------------
Expand Down
56 changes: 0 additions & 56 deletions docs/source/examples/01_basics/01_functions.rst

This file was deleted.

57 changes: 0 additions & 57 deletions docs/source/examples/01_basics/02_dataclasses.rst

This file was deleted.

81 changes: 0 additions & 81 deletions docs/source/examples/01_basics/03_dataclasses_defaults.rst

This file was deleted.

61 changes: 0 additions & 61 deletions docs/source/examples/01_basics/04_collections.rst

This file was deleted.

71 changes: 0 additions & 71 deletions docs/source/examples/01_basics/05_flags.rst

This file was deleted.

Loading

0 comments on commit 445155a

Please sign in to comment.