docusaurus-deployer

Automates Docusaurus site deployment to GitHub Pages via CI/CD workflows.

Updated Nov 27, 2025
One-click install
npx skills add https://github.com/DevHammad0/physical-ai-robotics-textbook --skill docusaurus-deployer-devhammad0
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docusaurus-deployer
Source: https://github.com/DevHammad0/physical-ai-robotics-textbook/tree/main/.claude/skills/docusaurus-deployer
Command: npx skills add https://github.com/DevHammad0/physical-ai-robotics-textbook --skill docusaurus-deployer-devhammad0

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Deploying Docusaurus documentation sites to GitHub Pages can involve intricate configuration, manual build steps, and complex CI/CD setup. This skill streamlines the entire process, automating configuration, local validation, and GitHub Actions workflows to ensure a smooth, error-free deployment.

Core Features & Use Cases

  • Automated GitHub Pages Setup: Guides through configuring repository settings and Docusaurus docusaurus.config.ts for seamless deployment to user, organization, or project pages.
  • CI/CD Automation with GitHub Actions: Provides a ready-to-use GitHub Actions workflow template (deploy-workflow.yml) to automate building, type checking, and deploying the Docusaurus site on every push to the main branch.
  • Local Validation Workflow: Emphasizes a "validate-locally-then-publish" approach, including steps for installing dependencies, running type checks, building, and serving the site locally to catch errors before deployment.
  • Use Case: A team needs to publish their project's documentation, built with Docusaurus, to GitHub Pages. This skill can walk them through setting up the docusaurus.config.ts, creating the GitHub Actions workflow, and performing local checks to ensure the documentation is always up-to-date and accessible.

Quick Start

Using the docusaurus-deployer skill, explain how to configure docusaurus.config.ts for a Docusaurus project deployed to GitHub Pages at https://username.github.io/my-repo/.

Frequently Asked Questions about docusaurus-deployer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Docusaurus site to GitHub Pages automatically?

Deploying Docusaurus to GitHub Pages automates building and publishing your documentation on every push. This skill provides a ready-to-use GitHub Actions workflow that handles type checking, building, and deployment to GitHub Pages without manual steps.

What configuration do I need in docusaurus.config.ts for GitHub Pages deployment?

Your docusaurus.config.ts must specify the baseUrl and url fields to match your GitHub Pages deployment URL. For project repos, set baseUrl to /repo-name/; for user/org repos, use baseUrl /. This skill guides you through configuring these settings correctly.

Can I validate my Docusaurus build locally before deploying to GitHub Pages?

Yes, local validation is essential before deploying. This skill emphasizes a validate-locally-then-publish approach: install dependencies, run type checks, build the site, and serve it locally to catch errors before triggering your CI/CD workflow.

Do I need to manually set up GitHub Actions for Docusaurus deployment?

No, this skill provides a deploy-workflow.yml template for GitHub Actions that automates the entire process. The workflow builds and deploys your Docusaurus site on every push to main, eliminating manual deployment steps.

What repository settings must I configure for GitHub Pages with Docusaurus?

You must enable GitHub Pages in your repository settings and select the branch for deployment. This skill guides you through configuring repository settings and ensures your Docusaurus config aligns with your Pages setup for seamless deployment.

How does this approach handle type checking in the deployment pipeline?

Type checking runs as part of the GitHub Actions workflow before building your Docusaurus site. This skill includes type-check steps in both local validation and the CI/CD pipeline to catch errors early and ensure deployment reliability.