Skip to content

Commit

Permalink
add commands docs
Browse files Browse the repository at this point in the history
  • Loading branch information
carderne committed Aug 27, 2024
1 parent 38218f2 commit 8843e76
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 21 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ jobs:
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
- run: pip install uv
- run: uv sync --python-preference=system
- run: uv run mkdocs gh-deploy --force
5 changes: 5 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CLI Commands

::: mkdocs-typer
:module: una.cli
:command: app
2 changes: 1 addition & 1 deletion docs/install.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Installation
The CLI tool isn't strictly necessary, as all the stuff that lets the monorepo builds work is in the separate (and tiny) [hatch-una](plugins/hatch) package.
The CLI tool isn't strictly necessary, as all the stuff that lets the monorepo builds work is in the separate (and tiny) [hatch-una](https://github.com/carderne/una/tree/main/plugins/hatch) package.
But you will likely struggle to manage your monorepo without the tool!

So you may as well install it:
Expand Down
15 changes: 0 additions & 15 deletions docs/usage.md

This file was deleted.

5 changes: 4 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ theme:
- navigation.instant
- navigation.sections

markdown_extensions:
- mkdocs-typer

nav:
- Home:
- About: index.md
- Quickstart: quickstart.md
- Walkthrough:
- Install: install.md
- Usage: usage.md
- Commands: commands.md
- Build: build.md
- Packages: packages.md
- Integration:
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dev-dependencies = [
"basedpyright >= 1.15.2",
"mkdocs-material >= 9.5.31",
"ruff >= 0.6.2",
"mkdocs-typer>=0.0.3",
]

[tool.uv.workspace]
Expand Down
18 changes: 16 additions & 2 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8843e76

Please sign in to comment.