Skip to content

🦆 Quack Docs is your AI-powered documentation assistant. Leveraging the capabilities of Amazon Q, it automatically generates high-quality documentation for your code.

License

Notifications You must be signed in to change notification settings

wesley-archives/quack-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🦆 Quack Docs

Quack Docs is your AI-powered documentation sidekick, built on Amazon Q to help you write, clean, and maintain beautiful code documentation—without the grunt work.

Whether you're managing a solo project or collaborating across teams, Quack Docs automates documentation with precision and ease.

📌 Table of Contents

🚀 What It Does

Quack Docs streamlines code documentation by:

  • 📄 Generating clean, structured Markdown documentation from your codebase.
  • 🧠 Injecting smart, context-aware docstrings directly into your code—without altering logic.
  • Boosting code clarity and maintainability, saving you time for what matters: building.

✨ Key Features

  • 🔍 Auto language detection via file extensions (supports Python, JS, Go, Java, C++, and more).
  • 📑 Markdown export with elegant formatting and syntax-highlighted code blocks.
  • 🧾 Inline docstring injection powered by Amazon Q’s understanding—safe and non-destructive.
  • 💬 CLI-first workflow, easy to integrate into any dev pipeline.

🛠️ How It Works

Under the hood, Quack Docs leverages the Amazon Q CLI to analyze and document your source files.

Choose between two modes:

  • Markdown mode: Generates external .md docs.
  • In-place mode: Enhances code with inline docstrings.

📦 Getting Started

Prerequisites

  • Python 3.8 or higher, you can download it from python.org.
  • pipx for installing Python applications in isolated environments.
  • Amazon Q CLI for code analysis and documentation generation.
  • An AWS account or a Builder ID to use the Amazon Q CLI (free plan), you can create one here.

1. Clone the Repo

git clone https://github.com/wesleybertipaglia/quack-docs.git
cd quack-docs

2. Install pipx (if you don't have it)

python3 -m pip install --user pipx
python3 -m pipx ensurepath

3. Set up Amazon Q CLI (if you don't have it)

Follow these steps to install and authenticate:

q login

4. Install Quack Docs

# using make
make install

# or using pipx
pipx install .

That's it, now quack-docs is ready to use! 🎉

🧪 Usage

Generate Markdown Documentation

quack-docs --file path/to/your_file.py

➡️ Creates a Markdown file like: ./docs/quack_your_file_20250510_103000.md

You can also choose a custom output directory:

quack-docs --file path/to/your_file.py --output ./my_docs/

➡️ Creates: ./my_docs/quack_your_file_20250510_103000.md

Insert Docstrings into Your Code

quack-docs --file path/to/your_file.py --inplace

➡️ Overwrites your file with inline docstrings.

You can optionally save the modified file into a different directory while preserving its filename:

quack-docs --file path/to/your_file.py --inplace --output ./src/

➡️ Saves: ./src/your_file.py

⚠️ Important: The --output parameter must always be a directory path, not a full file path.

📌 Quick Reference

Mode Description Default Output Customizable
Markdown Generates external .md documentation ./docs/ ✅ via --output
In-place Inserts docstrings into your code file Overwrites source file ✅ via --output

🤝 Contribute

Suggestions, issues, or ideas? Open a PR or file an issue—we’d love to hear from you!

📄 License

MIT License. See the LICENSE file for details.

About

🦆 Quack Docs is your AI-powered documentation assistant. Leveraging the capabilities of Amazon Q, it automatically generates high-quality documentation for your code.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published