GitHub Integration
Connect your Dockit documentation site with GitHub to enable collaborative editing and version control features.
Quick Setup
Заголовок раздела «Quick Setup»- Repository Connection: Link your documentation repository to enable GitHub features
- Authentication: Set up GitHub authentication for contributors
- Branch Management: Configure which branches to use for documentation
Features
Заголовок раздела «Features»Edit on GitHub
Заголовок раздела «Edit on GitHub»Enable “Edit this page” links that direct users to edit documentation directly on GitHub.
Version Control
Заголовок раздела «Version Control»Track changes to your documentation with full Git history and commit tracking.
Collaborative Editing
Заголовок раздела «Collaborative Editing»Allow team members to contribute to documentation through GitHub pull requests.
Automatic Deployments
Заголовок раздела «Automatic Deployments»Set up automatic deployments when changes are pushed to your main branch.
Configuration
Заголовок раздела «Configuration»Basic Setup
Заголовок раздела «Basic Setup»{ "github": { "repository": "your-username/your-docs-repo", "branch": "main", "editLinks": true }}Authentication
Заголовок раздела «Authentication»Configure GitHub authentication in your site settings:
// Example GitHub auth configurationconst githubConfig = { clientId: "your-github-app-id", redirectUri: "https://your-docs-site.com/auth/callback"};Usage Examples
Заголовок раздела «Usage Examples»Edit Links
Заголовок раздела «Edit Links»Each page will display an “Edit on GitHub” link that opens the corresponding file in GitHub’s editor.
Pull Request Workflow
Заголовок раздела «Pull Request Workflow»- Contributors click “Edit on GitHub”
- Make changes in GitHub’s web editor
- Submit pull request
- Review and merge changes
- Site automatically redeploys
Best Practices
Заголовок раздела «Best Practices»- Keep your repository public for open source documentation
- Use clear commit messages for documentation changes
- Set up branch protection rules for quality control
- Enable GitHub Pages for automatic hosting
Troubleshooting
Заголовок раздела «Troubleshooting»Common Issues
Заголовок раздела «Common Issues»Edit links not working: Check repository URL configuration Authentication errors: Verify GitHub app credentials Deployment failures: Review GitHub Actions logs
For more detailed configuration options, refer to the GitHub integration documentation.