Skip to content

Conversation

@Davda-James
Copy link
Contributor

@Davda-James Davda-James commented Oct 2, 2025

Generate full CLI docs from click's metadata and also added it in pre commit hooks

Ran precommit hooks.

Added one Readme for clearance what /(dev contains if not needed will remove it pls tell me)

docs will be generated at docs/docs/core/cli-reference.md also added it in pre commit hooks (can check in image, name: generate-cli-docs)

image

@Davda-James
Copy link
Contributor Author

@georgeh0 I have added a Readme /dev was earlier thinking no need to, but added for clarity, pls confirm do we need it or not ?

@Davda-James Davda-James force-pushed the feat/full-cli-docs-from-click branch from 5b7deb0 to 6ca74a1 Compare October 2, 2025 03:15
@Davda-James
Copy link
Contributor Author

@georgeh0 resolved the test-docs ci failing issue now, all checks passed

Copy link
Member

@georgeh0 georgeh0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Thanks!

sys.path.insert(0, str(python_path))

try:
import md_click
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we want to add this as an optional dependency at

dev = ["pytest", "pytest-asyncio", "ruff", "mypy", "pre-commit"]

cocoindex show --help # Show usage of "show" subcommand
```

## Detailed Command Reference
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering will it work if we directly import the file?

https://stackoverflow.com/questions/65741307/how-to-include-import-markdown-file-content-in-docusaurus-v2?utm_source=chatgpt.com

This can be tested out by yarn start under the docs/ directory.

Also if import works, the "Subcommands" section above can also be removed as it's already generated. And top-level headers / overviews from the generated markdown can also be removed.

Let me know if import doesn't work. We can submit it as is. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@georgeh0 done its working, will soon add commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing some formatting so markdownlinter do not cry..

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done @georgeh0, pls check.

@georgeh0
Copy link
Member

georgeh0 commented Oct 2, 2025

@georgeh0 I have added a Readme /dev was earlier thinking no need to, but added for clarity, pls confirm do we need it or not ?

This provides more background. We can keep it. Thanks!

…ored cli generation to fix markdownlinter issues
Copy link
Member

@georgeh0 georgeh0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot!

@georgeh0 georgeh0 merged commit c4ba813 into cocoindex-io:main Oct 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants