Book Docusaurus Documentation

VerifiedCaution

Scaffold and deploy a structured Docusaurus site for a textbook with modular content, MDX components, and RAG-ready exports.

Sby Skills Guide Bot
DocumentationIntermediate
406/2/2026
Claude Code
#docusaurus#documentation#textbook#rag#deployment

Recommended for

Our review

This skill scaffolds, structures, and deploys a Docusaurus site for a textbook, with book-aware content and RAG-ready exports.

Strengths

  • Generates a complete site structure with sidebar and navigation
  • Preconfigures deployment to GitHub Pages or Vercel
  • Ensures RAG compatibility via frontmatter and semantic headings
  • Provides concrete examples for chapter creation and local testing

Limitations

  • Requires prior knowledge of Docusaurus and Node.js
  • Specific to Docusaurus, not adaptable to other static site generators
  • Algolia search setup requires additional API keys
When to use it

Use this skill to create a structured course or textbook website with automated deployment and retrieval-augmented generation (RAG) readiness.

When not to use it

Do not use it if you need a simple site or prefer another static site generator like MkDocs or GitBook.

Security analysis

Caution
Quality score92/100

The skill uses npm and shell commands to scaffold and deploy a Docusaurus site. While the instructions are legitimate and targeted at textbook creation, running npx and npm install inherently introduces risk from third-party packages. The file creation commands are safe in context but could be problematic if directory paths were user-controlled.

Findings
  • Runs npm/npx commands that install and execute third-party packages.
  • Instructs writing files to local filesystem, which could be misused if paths are manipulated.
  • Includes script examples that execute shell commands, though benign as written.

Examples

Create a new chapter
Create a new chapter in the Physical AI book Docusaurus site for module 1 week 1. Add an intro.mdx file with frontmatter including title, description, module, week, and tags. The content should be an introduction to Physical AI.
Build and test locally
Build the Docusaurus site and serve it locally to verify the sidebar and content render correctly. Run the build command and then serve.
Deploy to GitHub Pages
Set up GitHub Actions workflow to deploy the Docusaurus site to GitHub Pages. Ensure the workflow runs npm ci, npm run build, and npm run deploy.

name: book-docusaurus description: Scaffold, structure, and deploy the Physical AI textbook in Docusaurus with book-aware content and RAG-ready exports. Use when creating or updating the Docusaurus site, adding chapters, configuring sidebar, or deploying to GitHub Pages/Vercel.

Book Docusaurus Skill

Instructions

  1. Scaffold the site

    • Ensure Node >=18 is installed
    • Run npx create-docusaurus@latest physical-ai-book classic in project root or /docs
    • Configure docusaurus.config.js with site metadata, GitHub Pages URLs, i18n (en default)
  2. Structure content

    • Build sidebars.js for Quarter overview, Modules 1-4, Capstone, Assessments, Hardware kits, Cloud option
    • Create MDX stubs per module/week with learning outcomes and tasks
    • Add capstone outline
  3. Authoring affordances

    • Add MDX components for callouts, checklists, hardware tables, code blocks
    • Enable search (Algolia DocSearch placeholder) and local search plugin for dev
  4. Deploy

    • Add GitHub Actions workflow for GH Pages (npm ci, npm run build, npm run deploy)
    • Document Vercel deploy steps (import repo, build command npm run build, output build)
  5. RAG-readiness

    • Enforce frontmatter fields: title, description, module, week, tags
    • Keep headings semantic (h2 for weeks, h3 for sections)
    • Avoid heavy client-side rendering for core text
    • Export ingestion guidance: markdown path glob, ignore build/static

Examples

# Create new chapter
mkdir -p docs/module-1/week-1
cat > docs/module-1/week-1/intro.mdx << 'EOF'
---
title: Introduction to Physical AI
description: Overview of embodied intelligence and humanoid robotics
module: 1
week: 1
tags: [physical-ai, robotics, introduction]
---

# Introduction to Physical AI

Content here...
EOF
# Build and test locally
npm run build
npm run serve

Definition of Done

  • npm run build passes; site renders outline and sample content
  • Sidebar matches course hierarchy; links valid
  • GH Pages workflow present; deploy instructions written
  • Content annotated with frontmatter and semantic headings suitable for chunking
Related skills