Install MkDocs Template
The install-mkdocs-template skill creates a complete MkDocs Material project structure optimized for intelligent textbooks. It sets up a Conda virtual environment, installs dependencies, generates all configuration files, and deploys to GitHub Pages.
Key Capabilities
This skill provides end-to-end project setup:
- Conda Environment - Creates
mkdocsvirtual environment with Python 3.11 - Dependencies - Installs MkDocs, Material theme, and required packages
- Complete mkdocs.yml - All Material theme options pre-configured
- Custom CSS - Brand color customization with CSS variables
- Social Override Plugin - Per-page custom social media card images
- Build & Deploy - Builds site and deploys to GitHub Pages
What Gets Created
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
MkDocs Material Features Included
Navigation Features
- Expandable sections, breadcrumbs, section indexes
- Back to top button, footer navigation
- Table of contents that follows scroll
Content Features
- Code copy button with syntax highlighting
- Edit on GitHub button
- Mermaid diagram support
Markdown Extensions
- Admonitions (note, warning, tip, etc.)
- Collapsible details blocks
- Content tabs
- Math support (LaTeX via MathJax)
- Task lists, emoji, and more
Plugins
- Full-text search with suggestions
- Social media card generation
- Custom social card override per page
Required Information
When running this skill, provide:
- site_name - Textbook title
- site_description - Brief description for SEO
- site_author - Author name(s)
- site_url - Deployment URL (e.g., https://username.github.io/repo/)
- repo_url - GitHub repository URL
- primary_color_rgb - Brand color (default: 218, 120, 87)
- google_analytics_id - Optional analytics property
Social Override Plugin
The included plugin allows custom social media images per page:
1 2 3 4 | |
This overrides the auto-generated social card for that specific page.
Prerequisites
- Conda (Miniconda or Anaconda) installed
- Git repository initialized with remote origin configured
- GitHub repository created
Workflow Summary
The skill executes these steps:
- Create Conda environment:
conda create -n mkdocs python=3.11 -y - Activate and install:
conda activate mkdocs && pip install mkdocs mkdocs-material ... - Create all project files (mkdocs.yml, CSS, plugins, starter content)
- Install social_override plugin:
pip install -e . - Build site:
mkdocs build - Deploy to GitHub Pages:
mkdocs gh-deploy - Provide the live site URL
After Deployment
The skill provides the GitHub Pages URL for testing:
1 | |
User should:
- Add logo to
docs/img/logo.png(50x50px recommended) - Add favicon to
docs/img/favicon.ico - Verify the live site loads correctly
Reactivating the Environment
When returning to work on the textbook:
1 | |
Integration
This skill is typically the first step in the intelligent textbook creation workflow. After setting up the MkDocs structure, proceed with:
- Course Description Analyzer - Create/validate course description
- Learning Graph Generator - Generate concept dependencies
- Book Chapter Generator - Design chapter structure
- Continue with content generation skills