Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Specification

This part holds the formal specification of the files the project writes.

  • WGRF file format: the binary graph file written by build and read by info, explore and path.

The specification is the source of truth. When the code and the spec disagree, the code is wrong, or the spec must change in the same commit.

Reading the WGRF spec

  • Layout, Header, Section directory, Column directory, Node / Title / ByTitle, Alignment describe the bytes. You need these to write your own reader.
  • Builder responsibilities describe what goes into the file: which pages become nodes, how redirects and links are handled, where categories come from. The From Wikipedia to a graph page explains the same rules in plain words.
  • Open / deferred lists what is not decided yet. Don’t implement these parts until the spec defines them.