[Docs] CLI Documentation#533
Conversation
IMHO the Native and Pretty formats are better, but they hide the possible choice values and default values for click.Choice options. The legacy/no tables option is the only one that doesn't lose info. Bug reports are filed with mkdocs-typer2; when they are fixed this can probably change.
|
|
Just a note for anyone who hits the same issue: the edit: Pixi checks are still failing… any recomendations? |
|
… and somehow the build for the new page itself failed in CI, probably something to do with the new dependency being in the wrong spot in ‘pyproject.toml`. Converting this to draft until that’s solved. |
I see that the Pixi lock file changes have not been committed, which explains why it still fails. Note also that in that case, you just need to run |
|
Thank you @paugier! I committed the lockfile, and also bumped pixi from Still have build issues in CI, but not locally... the |
|
This is fixed up and ready for review! The relevant page on the preview docs is reference/cli. Of note - added a mechanism to declare that we're in a docs build ( |
Add a page which documents the SPy CLI. Documentation is generated by the
mkdocs-typer2extension.I think the formatting of this page is fine but not amazing. I like the optional "native+pretty" formatting option that the plugin provides, but there's currently a bug that omits the possible options for Choices. The current formatting ("legacy") I think is less clear than the tables, but actually has all the information.
I think it's still worth dropping in a CLI docs page for now. Once that bug is fixed, a follow-up PR can update the formatting.
Also, propose changing the category
API Referenceto justReference.