You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EEST command line interfaces (CLIs) are documented using the [`click`](https://click.palletsprojects.com) library's built-in help system and the [`mkdocs-click`](https://github.com/mkdocs/mkdocs-click) extension for mkdocs. This allows generation of CLI documentation directly from the (click) source code, ensuring that the documentation is always up-to-date with the code.
4
+
5
+
Current limitations:
6
+
7
+
1.`mkdocs serve` does not automatically update the CLI documentation when the source code changes. You must restart the server to see the changes.
8
+
2.`mkdocs-click` does not automatically generate a short help string from sub-command docstrings. You must provide a short help string for each sub-command in the source code with `@click.command(short_help="...")`.
9
+
10
+
See the [markdown](https://github.com/ethereum/execution-spec-tests/blob/main/docs/library/cli/evm_bytes.md) and corresponding [Python docstrings](https://github.com/ethereum/execution-spec-tests/blob/main/src/cli/evm_bytes.py) for the [`evm_bytes` CLI documentation](../library/cli/evm_bytes.md) as an example of how to document a CLI using `mkdocs-click`.
Copy file name to clipboardExpand all lines: docs/dev/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@ This documentation is aimed at maintainers of `execution-spec-tests` but may be
5
5
-[Managing configurations](./configurations.md): Instructions for setting up and modifying test configurations.
6
6
-[Interactive usage](./interactive_usage.md): Guide on interactive use of EEST packages using `ipython`.
7
7
-[Generating documentation](./docs.md): Steps to create and build documentation for the project.
8
+
-[Documenting CLI commands](./documenting_clis.md): Instructions for documenting command line interfaces (CLIs).
8
9
-[Coding style](./coding_style.md): Standards and best practices for code formatting and to maintain consistency across the repository.
9
10
-[Enabling pre-commit checks](./precommit.md): A guide for setting up pre-commit hooks to enforce code quality before commits.
10
11
-[Running github actions locally](./test_actions_locally.md): Instructions for testing GitHub Actions workflows on your local machine to streamline development and debugging.
0 commit comments