GitHub Pages Deployment Configuration¶
文档版本: 1.0.0
最后更新: 2025-08-19
Git 提交: f47f2607
作者: Lincoln
Overview¶
JAiRouter documentation site is automatically deployed through GitHub Pages, providing online documentation access service.
Configuration Steps¶
1. Enable GitHub Pages¶
- Go to GitHub repository settings page
- Scroll to "Pages" section
- Under "Source", select "GitHub Actions"
- Save settings
2. Custom Domain Configuration (Optional)¶
If you need to use a custom domain:
- Configure the domain in the
docs/CNAME
file in the repository root - Configure DNS records at your domain provider:
- Type: CNAME
- Name: docs (or your desired subdomain)
- Value: lincoln-cn.github.io
3. Automatic Deployment Process¶
Documentation will be automatically deployed after modifications:
- Push to main branch
- GitHub Actions automatically builds documentation
- Deploy to GitHub Pages
Access URLs¶
- Default URL: https://lincoln-cn.github.io/JAiRouter
- Custom Domain: https://jairouter.com (requires DNS configuration)
Deployment Status Check¶
You can check deployment status at:
- "Actions" tab in GitHub repository
- "Settings" > "Pages" page in GitHub repository
- Green ✅ status will be displayed after successful deployment
Troubleshooting¶
Deployment Failure¶
- Check GitHub Actions logs
- Confirm mkdocs.yml configuration is correct
- Verify all documentation file paths are correct
Custom Domain Inaccessible¶
- Check if DNS configuration is correct
- Wait for DNS propagation (may take several hours)
- Confirm CNAME file content is correct
Page Display Issues¶
- Clear browser cache
- Check if links in documentation are correct
- Verify image and resource file paths