feat: allow custom docs folder path via docsDir config#32
feat: allow custom docs folder path via docsDir config#32hiiamtrong wants to merge 4 commits intocodeaholicguy:mainfrom
Conversation
Add a docsDir option to .ai-devkit.json that allows users to customize where AI documentation is stored instead of the hardcoded docs/ai path. The init command now prompts for the docs directory, and templates also support the new field. Closes codeaholicguy#31
Allows setting custom docs directory non-interactively via `ai-devkit init --docs-dir .ai-docs`. Priority: CLI flag > template config > interactive prompt > default (docs/ai).
When copying command templates, replace all `docs/ai` references with the configured docsDir value. This affects copyCommands, copyGeminiSpecificFiles, and copyCommandsToGlobal. Also fix init command to use docsDir-aware template manager for environment setup.
|
Thanks for the suggestion; it is a good idea, and I have some comments as well. Naming
|
- Rename config field from flat `docsDir` to namespaced `paths.docs`
- Change TemplateManager constructor to options object pattern
- Use {{docsDir}} template variables instead of naive string replacement
- Separate docsDir from LintOptions into standalone parameter
- Remove interactive prompt for docsDir during init
- Remove redundant DOCS_DIR constant re-export
|
Addressed all 6 items in
All 346 tests pass. Ready for another look @codeaholicguy. |
Add a docsDir option to .ai-devkit.json that allows users to customize where AI documentation is stored instead of the hardcoded docs/ai path. The init command now prompts for the docs directory, and templates also support the new field.
Closes #31