Quick Start
Get up and running with the Graph Plugin in minutes.
Basic Setup
- Add the plugin to
mkdocs.yml:
Tip
The search plugin is included with MkDocs. Always include it when adding other plugins.
- Build your documentation:
- View the graph:
Navigate to any page in your documentation. You'll see: - A mini graph in the sidebar showing connected pages - An expand button to view the full graph - The current page highlighted in the graph
Your First Configuration
Let's customize the graph appearance:
plugins:
- search
- graph-view:
local_graph_depth: 2 # Show 2 levels of connections
repel_force: 1.0 # Spacing between nodes
link_distance: 50 # Link length
font_size: 10 # Label size
Save and reload. You'll notice: - More connected pages visible (depth: 2) - Nodes are well-spaced - Labels are easy to read
Common Patterns
Minimal Configuration
For most documentation sites:
Knowledge Base
For wikis and interconnected documentation:
Large Documentation
For sites with 100+ pages:
Understanding the Graph
Mini Graph (Sidebar)
- Shows the current page and its connections
- Depth controlled by
local_graph_depth - Automatically hides on mobile (moves to bottom of content)
Full Graph (Overlay)
- Click the expand button to open
- Shows all pages in your documentation
- Pan by dragging, zoom with scroll wheel
- Click nodes to navigate
Node Colors
- Blue (Primary): Current page
- Gray: Other pages
- Orange (Accent): Hovered page
Next Steps
- Learn about all configuration options
- See configuration examples for different use cases
- Read best practices for optimal performance