Documentation Docusaurus pour Livre

VérifiéPrudence

Créez et déployez un site Docusaurus structuré pour un manuel avec contenu modulaire, composants MDX et exports prêts pour RAG.

Spar Skills Guide Bot
DocumentationIntermédiaire
5002/06/2026
Claude Code
#docusaurus#documentation#textbook#rag#deployment

Recommandé pour

Notre avis

Ce skill permet de créer, structurer et déployer un site Docusaurus pour un manuel de cours, avec un contenu optimisé pour la recherche et l'export RAG.

Points forts

  • Génère une structure de site complète avec barre latérale et navigation
  • Préconfigure le déploiement sur GitHub Pages ou Vercel
  • Assure la compatibilité RAG via des métadonnées et une sémantique adaptée
  • Inclut des exemples concrets de création de chapitres et de test local

Limites

  • Nécessite une connaissance préalable de Docusaurus et de Node.js
  • Spécifique au format Docusaurus, non adaptable à d'autres générateurs de site
  • La configuration de recherche Algolia nécessite des clés API supplémentaires
Quand l'utiliser

Utilisez ce skill pour créer un site web de cours ou de manuel structuré, avec déploiement automatisé et préparation pour la génération augmentée par récupération (RAG).

Quand l'éviter

Ne l'utilisez pas si vous avez besoin d'un site simple ou si vous préférez un autre générateur statique comme MkDocs ou GitBook.

Analyse de sécurité

Prudence
Score qualité92/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.

Points d'attention
  • 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.

Exemples

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
Skills similaires