-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Workflow for generating JSDoc comments / documentation #1110
Comments
I can pick this up. Hmu on discord @0xbuildinpublic if interested in helping. |
I am beginner coder but I can help with menial tasks like the manual phase while we get the automation up an running. |
Progress can be checked in this repo: |
Doing some clean up then opening the PR tomorrow |
There's now an awesome PR for agentic JSdocs documentation via github actions. This could help us generate better API docs with the typedoc-markdown-docusuarus plugin as seen here: https://ai16z.github.io/eliza/api/ Here is a screenshot of how it looks in practice: https://github.com/AudixAI/eliza/pulls I find the API docs useful when prompting, other devs already have all this functionality in their IDE. It's been said that more commented code improves the generation. I've gotten some feedback about how comments might get in the way of reading the code. My response to that was if it becomes an issue, then could we have a branch where the code is commented thoroughly for API docs generatoin? Or maybe there's a workflow for people to hide comments easily? Any thoughts? |
Yes I could easily add a boolean flag in the workflow that removes any pre-existing JSDoc instead of generating it: Also in the future I could add "Improve/Edit mode" that takes a specific prompt & scans all preexisting JSDoc to modify them in some way - maybe different languages (Spanish, Mandarin, ect.) 🤔 or just make them all more/less verbose. |
Also, IMO, having JSDoc or at least a branch that's fully JSDoc'd will make things like this easier in the future: |
Those are all great ideas! Shaw is excited, I am too. Will do some testing |
I think this might be able to be closed @madjin :) |
Is your feature request related to a problem? Please describe.
Currently, maintaining comprehensive JSDoc documentation across our TypeScript codebase is a manual and time-consuming process. This leads to inconsistent documentation coverage and puts an unnecessary burden on developers. We need an automated solution that can help generate and maintain JSDoc comments while ensuring high quality and consistency.
Describe the solution you'd like
Propose a two-phase approach:
Manual Documentation Phase:
Automation Implementation:
Create a GitHub Actions workflow/AI agent that:
Automated Documentation Generation:
Quality Control:
Pull Request Management:
Configuration:
Describe alternatives you've considered
Additional context
Required Permissions and Secrets:
Additional Motivation
This could be a proof of concept AI junior dev Karpathy talks about
The text was updated successfully, but these errors were encountered: