Skip to content

Commit

Permalink
Docs / examples rework
Browse files Browse the repository at this point in the history
  • Loading branch information
brentyi committed Nov 7, 2024
1 parent afd5486 commit cd7067b
Show file tree
Hide file tree
Showing 93 changed files with 3,842 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
3 changes: 2 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
],
"light_logo": "logo-light.svg",
"dark_logo": "logo-dark.svg",
"navigation_with_keys": True,
}

# Pull documentation types from hints
Expand Down Expand Up @@ -112,7 +113,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 cd7067b

Please sign in to comment.