From 47c84f8b8cc2ada14af1a6da19e0feaf7fb22ceb Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Wed, 17 Jun 2026 15:31:03 -0400 Subject: [PATCH] Added theme module to docs. --- docs/api/index.md | 3 +++ docs/api/theme.md | 3 +++ mkdocs.yml | 1 + 3 files changed, 7 insertions(+) create mode 100644 docs/api/theme.md diff --git a/docs/api/index.md b/docs/api/index.md index c386df05a..d412daaf6 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -12,6 +12,8 @@ incremented according to the [Semantic Version Specification](https://semver.org ## Modules - [cmd2.Cmd](./cmd.md) - functions and attributes of the main class in this library +- [cmd2.annotated](./annotated.md) - build `argparse` parsers from type-annotated function + signatures - [cmd2.argparse_completer](./argparse_completer.md) - classes for `argparse`-based tab completion - [cmd2.argparse_utils](./argparse_utils.md) - classes and functions for extending `argparse` - [cmd2.clipboard](./clipboard.md) - functions to copy from and paste to the clipboard/pastebuffer @@ -31,4 +33,5 @@ incremented according to the [Semantic Version Specification](https://semver.org - [cmd2.rich_utils](./rich_utils.md) - common utilities to support Rich in cmd2 applications - [cmd2.string_utils](./string_utils.md) - string utility functions - [cmd2.styles](./styles.md) - cmd2-specific Rich styles and a StrEnum of their corresponding names +- [cmd2.theme](./theme.md) - provides a centralized theming system for cmd2 - [cmd2.utils](./utils.md) - various utility classes and functions diff --git a/docs/api/theme.md b/docs/api/theme.md new file mode 100644 index 000000000..ed5aa8bdf --- /dev/null +++ b/docs/api/theme.md @@ -0,0 +1,3 @@ +# cmd2.theme + +::: cmd2.theme diff --git a/mkdocs.yml b/mkdocs.yml index 035ae72d5..d928fdcb0 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -214,6 +214,7 @@ nav: - api/rich_utils.md - api/string_utils.md - api/styles.md + - api/theme.md - api/utils.md - Version Upgrades: - upgrades.md