From repo to published docs in 5 minutes
Try Git2Docs with pre-configured example repositories. Fork, connect, click generate. No credit card required.
Get started in three steps
- 1Fork an example repoChoose one of our pre-configured example repositories and fork it to your GitHub account.
- 2Connect & configureSign in, connect your fork via GitHub App, and upload the provided config file.
- 3Generate docsClick 'Generate Documentation' and watch AI create comprehensive docs in minutes.
Choose an example repository
Pick one based on your tech stack or how much time you have. All configs are pre-tuned for great results.
envconfig
Go library for managing configuration from environment variables
- Perfect first try — smallest example
- Focused library with clear purpose
- Great for testing the platform quickly
Chalk
Terminal string styling library for Node.js
- Popular npm package with clear API
- Beginner-friendly documentation
- Good example of library docs
Detailed step-by-step
1Fork the example repository
- Choose one of the example repos above
- Click the repository link to open it on GitHub
- Click the "Fork" button in the top right
- Select your personal account as the destination
- Wait for GitHub to create the fork (takes a few seconds)
2Connect your repository
- Sign in to Git2Docs with your GitHub account
- In your dashboard, click "Connect GitHub Repositories"
- Select your forked repository from the list
- Click "Install" to authorize the Git2Docs GitHub App
- You'll be redirected back to your dashboard
3Upload configuration
- Download the config file for your chosen example (links above)
- In your dashboard, click on your connected repository
- Click "Configuration" tab
- Click "Upload YAML" or drag and drop the config file
- Review the configuration and click "Save"
4Generate documentation
- Navigate to the "Generate" tab
- Select the version/branch (usually "main" or "master")
- Click "Generate Documentation"
- Watch the progress indicator as AI analyzes your code
- Stages: Cloning → Comprehending → Planning → Generating → Validating
- When complete, click "View Documentation"
After generating your first docs
- Review and edit the generated documentation
- Publish your docs to make them public
- Set up a custom domain (optional)
- Connect your own repository and create production docs
- Explore advanced features like version management and changelog generation
Frequently asked questions
Do I need to keep the forked repository?
No — once you've tested Git2Docs with the example, you can delete the fork. The generated documentation will remain in your Git2Docs account.
Can I use my own repository instead?
Absolutely. These examples are just to help you understand the workflow. Once you're comfortable, connect any repository you own and generate docs for it.
What if the config file doesn't work?
Our configs are pre-tested, but if you run into issues, our auto-detection can generate a config for you. Just skip the upload step and click 'Generate Config' instead.
How much does it cost to generate documentation?
Documentation generation is included in your plan — see the pricing page for Builder, Team, and Enterprise tiers. You'll always see usage and any projected overage on your billing dashboard before a period closes.
Can I regenerate documentation if I make changes?
Yes — Git2Docs can sync with new releases and regenerate docs incrementally, only updating sections affected by code changes.