Skip to main content

Golem Documentation

Michael Bernstein

Glossary

Domain-specific terminology used throughout the Golem documentation. Terms are defined in context on the pages where they first appear and aggregated here by the Glossary plugin.

A

AsciiDoc
A lightweight markup language for writing technical documentation. Golem uses AsciiDoc as its primary source format, parsed via AsciiDoctrine.
ASG (Abstract Semantic Graph)
The resolved, typed graph of document nodes produced by AsciiDoctrine after the AST stage. Golem operates on the ASG rather than the raw AST.
AST (Abstract Syntax Tree)
The initial parse tree produced by Lark from raw AsciiDoc source, before semantic resolution.

C

Chameleon
A fast, compiled Zope Page Templates engine. Golem uses Chameleon to render skeleton.pt and any custom theme templates.

D

DAG (Directed Acyclic Graph)
The dependency graph connecting document nodes. Golem's pipeline ensures the DAG has no cycles so nodes can be resolved in a deterministic topological order.

G

Golem
A static-site documentation compiler built on AsciiDoctrine, Chameleon, and Pluggy. Golem transforms AsciiDoc source trees into HTML sites with a pluggable pipeline.

H

hookimpl
A function decorated with @hookimpl that provides a concrete implementation of a hook declared by a hookspec.
hookspec
A function decorated with @hookspec that declares the contract (name, signature, and behaviour) of a Golem extension point.

M

METAL
Macro Expansion for TAL. The METAL namespace allows Chameleon templates to define reusable layout slots (metal:define-slot) and fill them from page templates (metal:fill-slot).

N

nav_order
A page-header attribute (:nav_order: N) that sets the integer sort key controlling where a page appears in the navigation tree. Lower values sort first.

P

page-role
A page-header attribute (:page-role: <role>) that signals a page's special purpose to Golem plugins. Currently recognized roles: index (site-wide term index) and glossary (aggregated glossary).
partial
An AsciiDoc source file whose name begins with an underscore (e.g. _shared.adoc). Partials are excluded from standalone compilation and intended for use with include:: directives only.
Pluggy
Python hook and plugin management library (the same engine that powers pytest). Golem's extension system is built on Pluggy.

S

skeleton.pt
The primary Chameleon template file (skeleton.pt) that defines the full HTML page layout for a Golem site, including head metadata, navigation, content area, and footer slots.

T

TAL
Template Attribute Language. An XML-attribute-based language used by Chameleon to declare conditional rendering, repetition, and content injection directly in HTML/XML markup.

Z

ZPT (Zope Page Templates)
The template format combining TAL and METAL, originating in the Zope web framework. Chameleon implements ZPT with significant performance improvements via compilation.