MKAutoDocs Code Documentation Repository¶
Everthing on here has been generated by gpt
This repository showcases the use of OpenAI's GPT-3.5 language model for generating documentation for code automatically. The generated documentation is then turned into a "doc as code" site for easy access and sharing.
Getting Started¶
To use this repository, you will need to have a valid OpenAI API key for GPT-3.5 language model and a codebase that you want to generate documentation for.
Usage¶
- Clone or download this repository to your local machine.
- Set up your OpenAI API key in the
.env
file located in the root directory of the project. - Install the required dependencies by running the following command:
pip install -r requirements.txt
- Edit the configuration file to point to your code repository.
- Run
python Auto_Doc.py
to generate documentation for your code. - Use MkDocs to turn the generated documentation into a "doc as code" site. Run
mkdocs serve
to preview the site ormkdocs build
to generate a static website in thesite
directory.
Contributing¶
If you want to contribute to this repository, please feel free to open a pull request or an issue. We welcome any feedback, suggestions, or improvements to the code.
License¶
This repository is licensed under the MIT License. See the LICENSE
file for more information.