Getting Started

Installation

Install the quarto extension:

quarto add wvictor14/quarto-graph

Then install the Python package, which resolves the graph data:

uv add quarto-graph

Add to _quarto.yml

Wire up the pre-render/post-render steps and add quarto-graph to filters:

project:
  type: website
  pre-render: quarto-graph prerender
  post-render: quarto-graph postrender

filters:
  - quarto-graph

Graphs in your website

quarto-graph makes connections available at runtime. These connections can be visualized as a graph. This extension provides a graph widget that can be inserted as a shortcode:

{{< quarto-graph-full >}} will reproduce a graph of your entire website:

Click on the nodes in the graph, and they will take you to those pages.

In the graph, nodes (the circles) represent pages; they are labelled with their title. Edges, the lines that connect each node, are explicit connections defined with Wikilinks and regular markdown links.

This graph-based perspective of pages, comes from the world of wikis and note-taking apps1, builds visual intuition of connected ideas. quarto-graph brings this concept to quarto websites.

See The Graph Widget for more about the graph widget, how to embed it in pages, and how to customize it.

Frontmatter reference

Key Purpose
title: Page title, and the link text shown when a wikilink has no \|display override
type: Colors the node in the graph widget: concept, person, reference, project, experiment, moc; anything else (or omitted) falls back to gray
also-known-as: Extra names this page’s wikilinks can be reached by, on top of its filename. A separate key from Quarto’s own aliases:; see Wikilinks and Aliases for why
quarto-graph: Per-page override of the sidebar mini-panel (sidebar: true/false, or sidebar: {enabled, depth}); see The Graph Widget

Display text and anchors

Add | to show custom link text instead of the target’s title:

[[Home|back home]]

Link to a heading with #:

[[Home#Installation]]

Combine both:

[[Home#Installation|see install steps]]

Backlinks

Footnotes

  1. For other implementations of wikilinks, see Foam and Quartz. ↩︎