Skip to content

Interactive Graph-Mkdocs

Sử dụng plugin để tạo interactive graph giống như Obsidian cho Mkdocs. Đây là điều đã mong muốn có được từ rất lâu

1 Interactive Graph-Mkdocs

Nhờ có Echarts có thể plot interactive plot từ Json file để mkdocs load được.
Có thể test khả năng của nó qua Live Editor

Còn đây là file json của nó:

{
    "type": "force",
    "categories": [
        {
            "name": "HTMLElement",
            "keyword": {},
            "base": "HTMLElement"
        },
        {
            "name": "WebGL",
            "keyword": {},
            "base": "WebGLRenderingContext"
        },
            ],
    "nodes": [
        {
            "name": "AnalyserNode",
            "value": 1,
            "category": 4
        },
        {
            "name": "AudioNode",
            "value": 1,
            "category": 4
        },
        {
            "name": "Uint8Array",
            "value": 1,
            "category": 4
        },
            ],
    "links": [
        {
            "source": 0,
            "target": 1
        },
        {
            "source": 0,
            "target": 2
        },
        {
            "source": 0,
            "target": 3
        },

Add 3 javascript để load graph

No other pages link to this page.



Created : Oct 3, 2024