Documentation Generator is an automated tool designed to simplify the process of creating documentation for codebases. It leverages the power of GitHub and Greptile APIs to index repositories, generate README files, and streamline the documentation workflow.
- Automatic repository indexing
- README generation using AI-powered content creation
- GitHub integration for branch creation and file management
- Command-line interface for easy usage
-
Clone the repository:
git clone https://github.com/hasanatjahan/codebase-doc-generator.git
-
Navigate to the project directory:
cd codebase-doc-generator
-
Install dependencies:
npm install
-
Create a
.env
file in the root directory. -
Add the following environment variables:
GITHUB_TOKEN=your_github_token GREPTILE_API_KEY=your_greptile_api_key
Run the tool using the following command:
npm start <github_repository_url>
or
node index.js <github_repository_url>
- dotenv
- node-fetch
- uuid
npm start
: Run the application
- The tool extracts repository information from the provided GitHub URL.
- It indexes the repository using the Greptile API.
- The indexing process is monitored until completion.
- A README is generated using AI-powered content creation.
- A new branch is created in the GitHub repository.
- The generated README is staged in the new branch for review.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the ISC License.
Hasanat Jahan ChatGPT was a helping hand for this tool