| name | new-theme |
| description | Scaffold a new documentation theme following the project's theme registration pattern from CLAUDE.md |
The user provides a theme name (kebab-case, e.g. dark-mode).
Follow the "Adding a New Theme" steps from CLAUDE.md exactly:
-
Create templates_embed/templates/themes/<theme-name>/readme.tmpl.
Read the default template at templates_embed/templates/readme.tmpl and use it as a starting point.
-
Add two constants to appconstants/constants.go:
Theme<ThemeName> = "<theme-name>"
TemplatePath<ThemeName> = "templates/themes/<theme-name>/readme.tmpl"
Note: the path uses templates/ prefix (not templates_embed/templates/).
-
Add a case to internal/config.go:resolveThemeTemplate():
case appconstants.Theme<ThemeName>:
templatePath = appconstants.TemplatePath<ThemeName>
-
Update configThemesHandler() in main.go to include the new theme name in its output.
-
Run go build . — report success or any compilation errors.
-
Test: go run . gen testdata/example-action/ --theme <theme-name> --output /tmp/test-<theme-name>.md
Show the first 20 lines of the generated output.