Skip to main content

A MkDocs plugin that generates a obsidian like interactive graph

Project description

Interactive Graph for Material for MkDocs

Plugin for Material for MkDocs to draw an interactive graph like Obsidian. The graph inside the sidebar is just available for non-mobile website. The modal view via the button next to the light/dark mode switch shall work on all devices.

Refer Github Pages for a demonstration of the interactive graph in Material for MkDocs.

Installation

Available on PyPI. Install via pip install mkdocs-obsidian-interactive-graph-plugin or add it to your requirements.txt.

Usage

Setup in MkDocs

Activate the plugin in mkdocs.yml, but note that this plugin has to be located before plugins, that replace wikilinks by markdown links. Currently just wikilinks like [[Link#Anchor|Custom Text]] are supported.

plugins:
  - obsidian-interactive-graph

extra_javascript:
  - https://fastly.jsdelivr.net/npm/jquery@3.7.1/dist/jquery.min.js
  - https://fastly.jsdelivr.net/npm/echarts@5.5.0/dist/echarts.min.js
  - assets/javascripts/graph.js

Graph Javascript by Apache ECharts

A graph.js example can be downloaded from here and must be located into the docs directory under docs/YourSiteName/assets/javascripts/graph.js.

Docker

Adapt the .env and mkdocs.yml files to your needs. DEV=ON will rebuild the mkdocs-obsidian-interactive-graph-plugin from local files. If DEV != ON the upstream packages of PyPI will be used. Build and start the Docker container via docker compose up --build [-d].

References

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

File details

Details for the file mkdocs-obsidian-interactive-graph-plugin-0.2.1.tar.gz.

File metadata

File hashes

Hashes for mkdocs-obsidian-interactive-graph-plugin-0.2.1.tar.gz
Algorithm Hash digest
SHA256 057b921a1d043510ae29fc649f28eabf4634ced56cdd8076cc5fcdef477fa232
MD5 78d206b93b27948e02bb90ec97f2882b
BLAKE2b-256 6218a3215b3c0feeb4a764e48f6ae27a34ca6791e2d2177fefc5bc325e5af728

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page