docusaurus-deployer
This skill should be used when deploying a Docusaurus site to GitHub Pages. It automates the configuration, building, and deployment process, handling GitHub Pages setup, environment configuration, and CI/CD automation. Includes local validation before GitHub Actions triggering.
What this skill does
# Docusaurus GitHub Pages Deployer Automate building and deploying Docusaurus documentation sites to GitHub Pages with local validation before CI/CD triggering. **Constitution Alignment**: This skill implements production deployment standards defined in Constitution v4.0.1 (Pillar 9: Universal Cloud-Native Deployment from Section I). All deployments must meet project quality gates before publication. ## What This Skill Does 1. **Project Analysis** - Examine Docusaurus structure and dependencies 2. **Local Configuration Validation** - Verify Docusaurus config and sidebars 3. **Local Build & Testing** - Build site locally and validate output 4. **Content Verification** - Check for broken links and syntax errors 5. **GitHub Pages Setup** - Configure repository and deployment settings 6. **CI/CD Automation** - Set up GitHub Actions workflows 7. **Deployment Verification** - Validate successful deployment ## When to Use This Skill Deploy Docusaurus to GitHub Pages when: - Setting up documentation deployment for the first time - Making updates to documentation before publishing - Updating deployment configuration - Troubleshooting deployment issues - Managing multiple documentation sites - Ensuring documentation quality before production ## How to Use This Skill Follow the **validate-locally-then-publish** workflow: ### Step 1: Prepare Repository Configuration Gather GitHub organization/username, repository name, deployment target (user/project pages), and custom domain (optional). ### Step 2: Analyze Project Structure Examine Docusaurus project: ```bash ls -la path_to_docusaurus_project/ cat path_to_docusaurus_project/docusaurus.config.ts cat path_to_docusaurus_project/sidebars.ts ``` Verify docusaurus.config.ts, sidebars.js/ts, package.json engines field, and dependencies exist. For detailed configuration guidance, see `references/configuration-guide.md`. ### Step 3: Update Docusaurus Configuration Update `docusaurus.config.ts` with GitHub Pages settings. See `references/configuration-guide.md` for complete configuration examples and guidelines based on deployment target (user vs. project pages). ### Step 4: Build and Validate Locally Install dependencies, run type checking, build site, validate output, test locally, and verify content quality. Execute: ```bash npm ci npm run typecheck npm run build npm run serve ``` For detailed validation procedures, see `references/local-validation-guide.md`. ### Step 5: Commit and Push to Main After successful local validation: ```bash git add . git commit -m "Update documentation: [description]" git push origin main ``` This triggers the GitHub Actions workflow. ### Step 6: Set Up GitHub Actions Create `.github/workflows/deploy.yml` using the template in `references/deploy-workflow.yml`. For detailed workflow configuration and troubleshooting, see `references/github-actions-guide.md`. ### Step 7: Configure GitHub Pages in Repository Settings 1. Go to **Settings → Pages** 2. Set source to **GitHub Actions** (or deploy from `gh-pages` branch) 3. Configure custom domain if needed 4. Enable branch protection on main branch ### Step 8: Verify Deployment Check GitHub Actions workflow status in Actions tab, verify site loads at configured URL, and confirm all navigation works. ## Troubleshooting For common issues and solutions, see `references/troubleshooting.md`, which covers: - Build failures and type errors - 404 errors after deployment - Broken links and GitHub Actions issues - Performance problems and content quality ## Bundled Resources - `references/deploy-workflow.yml` - GitHub Actions workflow template - `references/configuration-guide.md` - Detailed Docusaurus configuration - `references/local-validation-guide.md` - Build and validation procedures - `references/github-actions-guide.md` - CI/CD setup and configuration - `references/troubleshooting.md` - Common issues and solutions - `references/performance-standards.md` - Performance targets and best practices ## Performance Targets - **Build time**: < 30 seconds (typical) - **Page load**: < 3 seconds - **Bundle size**: Optimized for documentation - **Accessibility**: WCAG 2.1 AA compliance ## Quality Gates (Constitution v3.1.2) Before deployment to production, verify: - [ ] All content passes validation-auditor validation - [ ] Local build completes without errors - [ ] No broken links or missing resources - [ ] TypeScript type checking passes - [ ] Performance targets met - [ ] Accessibility standards verified - [ ] GitHub Actions workflow configured correctly **Reference**: See `.specify/memory/constitution.md` deployment standards section for complete production deployment standards. ## Tools Used - Node.js/npm (v20+) - Docusaurus CLI - TypeScript - GitHub Actions - GitHub Pages
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.