Loading...
Loading...
Check and configure GitHub Pages deployment
npx skill4agent add laurigates/claude-plugins configure-github-pages| Use this skill when... | Use another approach when... |
|---|---|
| Setting up GitHub Pages deployment for a documentation site | Configuring documentation standards or generators ( |
| Creating or updating a GitHub Actions workflow for Pages deployment | Debugging a failed GitHub Actions workflow ( |
Migrating from | Editing documentation content or markdown files |
| Auditing Pages workflow for outdated action versions or missing permissions | Setting up a custom domain via DNS (manual repository settings) |
| Adding Pages deployment to a project with an existing doc generator | Configuring CI/CD workflows unrelated to documentation |
find .github/workflows -maxdepth 1 \( -name '*doc*.yml' -o -name '*pages*.yml' \) 2>/dev/nullfind . -maxdepth 1 \( -name 'mkdocs.yml' -o -name 'typedoc.json' -o -name 'docusaurus.config.*' \) 2>/dev/nullfind . -maxdepth 1 -type d \( -name 'docs' -o -name 'site' \) 2>/dev/nullfind . -maxdepth 1 -name 'CNAME' 2>/dev/nullfind . -maxdepth 1 -name '.project-standards.yaml' 2>/dev/null--check-only--fix--source <docs|site|custom>| Config File | Generator | Output Directory |
|---|---|---|
| TypeDoc | |
| MkDocs | |
| Sphinx | |
| Docusaurus | |
| rustdoc | |
| None | Static | |
No documentation generator detected.
Consider running /configure:docs first to:
- Set up documentation linting standards
- Configure a documentation generator
Would you like to:
[A] Configure documentation first (/configure:docs)
[B] Set up static HTML hosting for existing docs/ directory
[C] Skip - I'll configure docs lateractions/deploy-pagesactions/upload-pages-artifactpeaceiris/actions-gh-pages| Check | Standard | Severity |
|---|---|---|
| v4+ | WARN if older |
| v5+ | WARN if missing |
| v3+ | WARN if older |
| Permissions | | FAIL if missing |
| Environment | | WARN if missing |
| Concurrency | Group defined | INFO |
GitHub Pages Compliance Report
==============================
Project: [name]
Documentation Status:
Generator [typedoc|mkdocs|sphinx|rustdoc|static|not configured]
Source directory [docs/|site/|custom]
Build command [detected command or "not configured"]
GitHub Pages Workflow:
Workflow file .github/workflows/docs.yml [EXISTS | MISSING]
Workflow Checks (if exists):
deploy-pages v4 [PASS | OUTDATED | MISSING]
configure-pages v5 [PASS | MISSING]
upload-artifact v3 [PASS | OUTDATED]
Permissions pages: write, id-token [PASS | MISSING]
Environment github-pages [PASS | MISSING]
Overall: [X issues found]
Recommendations:
[List specific fixes needed]--check-only.github/workflows/docs.yml./docs./site./docs/_build/html./target/doc./docspages: writeid-token: writeworkflow_dispatch.project-standards.yamlstandards_version: "2025.1"
last_configured: "[timestamp]"
components:
github-pages: "2025.1"
github-pages-generator: "[typedoc|mkdocs|sphinx|rustdoc|static]"
github-pages-source: "[docs/|site/|custom]"GitHub Pages Configuration Complete
===================================
Workflow created: .github/workflows/docs.yml
Next Steps:
1. Enable GitHub Pages in repository settings:
Settings -> Pages -> Source: GitHub Actions
2. Push to main branch to trigger deployment:
git add .github/workflows/docs.yml
git commit -m "ci(docs): add GitHub Pages deployment workflow"
git push
3. After deployment, your docs will be available at:
https://OWNER.github.io/REPO/
Optional:
- Add custom domain: Create CNAME file with your domain
- Protect deployment: Configure environment protection rules| Context | Command |
|---|---|
| Quick compliance check | |
| Auto-fix all issues | |
| Check Pages workflow exists | |
| Check Pages action versions | `grep -E 'deploy-pages |
| Verify Pages enabled | |
| Check deployment status | |
/configure:docs/configure:workflows/configure:all/configure:status