Skip to main content

MkDocs Network Graph Plugin

Add an interactive knowledge network graph to your Material for MkDocs documentation project

PyPI - Version PyPI - Python Version GitHub License GitHub Actions Workflow Status Documentation

A powerful Material for MkDocs plugin that generates beautiful, interactive graph visualizations of your documentation structure and relationships.

demo

Documentation • Quick Start • Configuration • Contributing


Table of Contents

Features

Interactive Visualization Smart Navigation Fully Customizable Lightweight
Interactive Graph Visualization of your documentation structure Dual View Modes to switch between a full-site overview and local page connections Theme Integration that seamlessly blends with Material for MkDocs Performance Optimized with minimal impact on build times and a responsive design

Quick Start

Get up and running in under 2 minutes:

1. Install the plugin

pip install mkdocs-network-graph-plugin

2. Enable in your mkdocs.yml

plugins:
  - graph

3. Build your docs

mkdocs serve

That's it! Your documentation now includes an interactive graph visualization.

Installation

pip install mkdocs-network-graph-plugin

Using uv (faster)

uv pip install mkdocs-network-graph-plugin

Using pipx (isolated)

pipx install mkdocs-network-graph-plugin

Development Installation

For contributors, this is the recommended setup:

  1. Clone the repository

    git clone https://github.com/develmusa/mkdocs-network-graph-plugin.git
    cd mkdocs-network-graph-plugin
    
  2. Set up the development environment

    # Sync with the lockfile
    uv sync
    # Install required Python versions for testing
    uv python install 3.10 3.11 3.12 3.13
    # Install in editable mode with dev dependencies
    uv pip install -e '.[dev]'
    # Install pre-commit hooks
    uv run pre-commit install
    

For more details, see the developer guide.

Requirements

  • Python: 3.10+
  • MkDocs: Compatible with latest versions
  • Theme: Designed for Material for MkDocs (v9.0.0+)

Configuration

Basic Configuration

plugins:
  - graph:
      name: "title"        # Use page titles for node names
      debug: false         # Disable debug logging

Advanced Configuration

plugins:
  - graph:
      name: "file_name"    # Use file names instead of titles
      debug: true          # Enable verbose logging for troubleshooting

Configuration Options

Option Type Default Description
name string "title" Node naming strategy: "title" or "file_name"
debug boolean false Enable debug logging for development

Customization

Customize the graph appearance using CSS variables in your extra.css:

:root {
  /* Node styling */
  --md-graph-node-color: #1976d2;
  --md-graph-node-color--hover: #1565c0;
  --md-graph-node-color--current: #ff5722;

  /* Link styling */
  --md-graph-link-color: #757575;

  /* Text styling */
  --md-graph-text-color: #212121;
}

Available CSS Variables

Variable Description Default
--md-graph-node-color Default node color Theme primary
--md-graph-node-color--hover Node hover color Darker primary
--md-graph-node-color--current Current page node color Theme accent
--md-graph-link-color Connection line color Theme text (muted)
--md-graph-text-color Node label text color Theme text

Documentation

Comprehensive documentation is available at develmusa.github.io/mkdocs-network-graph-plugin

Documentation Sections

Contributing

We welcome contributions! For a complete guide on how to contribute, please see the developer guide.

To get started, set up your environment by following the Development Installation instructions. From there, you can run tests and linting using nox:

# Run tests
uv run nox -s tests

# Run linting
uv run nox -s lint

Contribution Guidelines

  • Bug Reports: Use the issue tracker
  • Feature Requests: Open an issue with your proposal
  • Pull Requests: Fork, create a feature branch, and submit a PR
  • Documentation: Help improve our docs

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

Explore other tools with Markdown documentation graph visualization:


Star this project if you find it useful!

Made with AI and ❤️ by develmusa

Metadata

Release files for mkdocs-network-graph-plugin 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-network-graph-plugin 1.0.3
File Size Uploaded Provenance Actions
mkdocs_network_graph_plugin-1.0.3.tar.gz 15.2 MB With provenance Details for mkdocs_network_graph_plugin-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-network-graph-plugin 1.0.3
File Interpreter ABI Platform Actions
mkdocs_network_graph_plugin-1.0.3-py3-none-any.whl Python 3 none any Details for mkdocs_network_graph_plugin-1.0.3-py3-none-any.whl

Total release size: 15.2 MB

Release files / mkdocs_network_graph_plugin-1.0.3.tar.gz

Download URL mkdocs_network_graph_plugin-1.0.3.tar.gz
Size 15.2 MB
Tags Source
SHA-256 checksum
How to use checksums
04b931f11bd47546c95b50d22e43c2136e2ac9d4a1217da9ea5d3c046b14a665
BLAKE2b-256 checksum
How to use checksums
5a1de90cd0db91dd85ca9bf407f253752bd04fb57d8351c961b8dd4ca06a43b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2025.

Transparency log

Release files / mkdocs_network_graph_plugin-1.0.3-py3-none-any.whl

Download URL mkdocs_network_graph_plugin-1.0.3-py3-none-any.whl
Size 16.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b3a5be7ee1cb19e37edaa76181ea55dacde58e10c69f445e164af5379452b5c
BLAKE2b-256 checksum
How to use checksums
fe6f5e0ef4245a0bfff0b89b724b404bf5cea372927c1b679c7cd6ccbacfeaf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2025.

Transparency log

Security for mkdocs-network-graph-plugin 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mkdocs_network_graph_plugin-1.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 11, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page