Skip to content

GitHub Integration

Connect your Dockit documentation site with GitHub to enable collaborative editing and version control features.

  1. Repository Connection: Link your documentation repository to enable GitHub features
  2. Authentication: Set up GitHub authentication for contributors
  3. Branch Management: Configure which branches to use for documentation

Enable “Edit this page” links that direct users to edit documentation directly on GitHub.

Track changes to your documentation with full Git history and commit tracking.

Allow team members to contribute to documentation through GitHub pull requests.

Set up automatic deployments when changes are pushed to your main branch.

{
"github": {
"repository": "your-username/your-docs-repo",
"branch": "main",
"editLinks": true
}
}

Configure GitHub authentication in your site settings:

// Example GitHub auth configuration
const githubConfig = {
clientId: "your-github-app-id",
redirectUri: "https://your-docs-site.com/auth/callback"
};

Each page will display an “Edit on GitHub” link that opens the corresponding file in GitHub’s editor.

  1. Contributors click “Edit on GitHub”
  2. Make changes in GitHub’s web editor
  3. Submit pull request
  4. Review and merge changes
  5. Site automatically redeploys
  • 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

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.