-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b81920
commit 2888aa9
Showing
1 changed file
with
58 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,59 @@ | ||
# doc-comments.ai | ||
<div align="center"> | ||
|
||
# Generate your code documentation with doc-comments.ai | ||
|
||
[![Build](https://github.com/fynnfluegge/doc-comments.ai/actions/workflows/build.yaml/badge.svg)](https://github.com/fynnfluegge/doc-comments.ai/actions/workflows/build.yaml) | ||
[![Publish](https://github.com/fynnfluegge/doc-comments.ai/actions/workflows/publish.yaml/badge.svg)](https://github.com/fynnfluegge/doc-comments.ai/actions/workflows/publish.yaml) | ||
<img src="https://img.shields.io/badge/License-MIT-green.svg"/> | ||
</a> | ||
</div> | ||
|
||
<div align="center"> | ||
![ezgif-4-53d6e634af](https://github.com/fynnfluegge/doc-comments.ai/assets/16321871/6ab34a94-4394-4755-be7c-66dd8d304beb) | ||
</div> | ||
|
||
|
||
Focus on writing your code, let AI write the documentation for you. With just a few keystrokes in your terminal. | ||
|
||
## ✨ Features | ||
- Create documentation comment blocks for all methods in a file | ||
- Create inline documentation comments in method bodies | ||
- Treesitter integration | ||
|
||
## 🚀 Usage | ||
- `aicomments <RELATIVE_FILE_PATH>`: Create documentations for any method in the file which doesn"t have any yet. | ||
- `aicomments <RELATIVE_FILE_PATH> --inline`: Create also documentation comments in the method body. | ||
- `aicomments <RELATIVE_FILE_PATH> --gpt4`: Use GPT-4 model (Default is GPT-3.5). | ||
|
||
## ⚙️ Supported Languages | ||
- [x] Python | ||
- [x] Typescript | ||
- [x] Javascript | ||
- [x] Java | ||
- [x] Rust | ||
- [ ] Kotlin | ||
- [ ] Go | ||
- [ ] C++ | ||
- [ ] C | ||
- [ ] Scala | ||
|
||
## 📋 Requirements | ||
|
||
- Python >= 3.9 | ||
|
||
## 🔧 Installation | ||
|
||
Create your personal OpenAI Api key and add it as `$OPENAI_API_KEY` to your environment with: | ||
|
||
``` | ||
export OPENAI_API_KEY=<YOUR_API_KEY> | ||
``` | ||
|
||
Install with `pipx`: | ||
|
||
``` | ||
pipx install doc-comments-ai | ||
``` | ||
|
||
> [!NOTE] | ||
> It is recommended to use `pipx` for installation, nonetheless it is also possible to use `pip`. |