This release is a pre-release and may not be stable for production use.
= Golem (`golem-docs`)
Michael Bernstein <zopemaven@gmail.com>
v0.1.0a2
:toc: macro
:icons: font
:idprefix:
:idseparator: -
:sectanchors:
:source-highlighter: highlight.js
image:https://img.shields.io/badge/python-3.14+-blue.svg[Python 3.14+,link=https://www.python.org/downloads/]
image:https://img.shields.io/badge/License-Apache%202.0-blue.svg[License: Apache-2.0,link=LICENSE]
image:https://img.shields.io/badge/release-v0.1.0a2-green.svg[Release: Alpha MVP,link=https://pypi.org/project/golem-docs/]
Golem is an extensible, Python-native static site generator and publishing workbench built from the ground up for technical, interactive documentation using *AsciiDoc* as its primary source format.
toc::[]
---
== Key Features
* *AsciiDoc Ecosystem Native:* Powered by `asciidoctrine` for standards-compliant Lark AST parsing and `asciidoctype` for Chameleon ZPT template rendering supporting 39 standard node types (admonitions, callouts, stem math, tables, footnotes, description lists).
* *Fired Clay / Workbench Default Theme:* Handcrafted warm-paper aesthetic with automatic dark mode (`prefers-color-scheme`), Google Fonts Source family typography (`Source Serif 4`, `Source Sans 3`, `Source Code Pro`), and sub-perceptible SVG paper-grain texture.
* *Intelligent Navigation Auto-Discovery:* Traverses documentation hierarchies, strips numeric sorting prefixes (`01-intro.adoc` -> `Intro`), pins overview root pages, and supports explicit TOML overrides.
* *Incremental DAG Build Engine:* Tracks file inclusion trees and SHA-256 hashes in `.golem/cache.json`, rebuilding only modified files and their inclusion dependents.
* *Modern Dev Server with Live Reloading:* Zero-dependency multi-threaded dev server with Server-Sent Events (SSE) live browser reloading and non-crashing interactive error overlays.
* *Compiler-Grade Diagnostics:* Pinpoint file coordinates, line numbers, contextual source snippets, and caret pointers for AsciiDoc syntax errors.
* *Pluggy Plugin Architecture:* Lifecycle hooks for pre-parse, AST creation, ASG resolution, and post-render stages.
* *Doctest & API Integration:* Verifies Python listing blocks directly using `asciidoctest` and extracts docstrings with `asciidocstring`.
---
== Quick Start
=== 1. Installation
[source,bash]
----
# In your virtual environment (Python >= 3.14)
pip install golem-docs
----
Or install locally for development:
[source,bash]
----
git clone https://github.com/webmaven/golem.git
cd golem
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
----
=== 2. Initialize a Project
[source,bash]
----
golem init my-docs
cd my-docs
----
This creates a standard project layout:
[source,text]
----
my-docs/
├── golem.toml # Site & build configuration
└── content/ # AsciiDoc source files
└── index.adoc # Homepage entry point
----
=== 3. Build & Serve
[source,bash]
----
# Incremental build
golem build
# Strict mode for CI/CD pipelines
golem build --strict
# Launch live dev server with SSE hot-reloading
golem serve --port 8000
----
---
== Configuration (`golem.toml` / `pyproject.toml`)
Golem supports configuration via `golem.toml` or directly inside `pyproject.toml` under `[tool.golem]`:
[source,toml]
----
[site]
title = "Golem Documentation"
author = "Michael Bernstein"
site_url = "https://webmaven.github.io/golem/"
[build]
content_dir = "content"
output_dir = "dist"
theme = "default"
strict = false
[navigation]
# Optional explicit sidebar order override (defaults to auto-discovery)
nav = [
"index.adoc",
"getting-started/installation.adoc",
"getting-started/quickstart.adoc",
]
----
---
== CLI Reference
[cols="1,1,2"]
|===
| Command | Options | Description
| `golem init` | `[--profile=<type>] [-C <dir>]` | Initialize documentation scaffold (`site`, `package`, `book`).
| `golem new` | `<type> <name> [-C <dir>]` | Generate a new `.adoc` document skeleton.
| `golem build` | `[--clean] [--strict] [-v] [-C <dir>]` | Run DAG compiler to render HTML pages into output directory.
| `golem serve` | `[--port=<port>] [--host=<host>] [--strict] [-C <dir>]` | Run live-reload HTTP server watching source directories.
| `golem doctest` | `[--mode=<mode>] [-C <dir>]` | Extract and verify executable code examples with pytest.
| `golem plugins` | `[-v] [-C <dir>]` | Inspect active and installed Pluggy plugins.
| `golem themes` | `[-v] [-C <dir>]` | Inspect active and installed Chameleon theme templates.
|===
---
== License
Licensed under the link:LICENSE[Apache License, Version 2.0].
Metadata
Release files for golem-docs 0.1.0a3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| golem_docs-0.1.0a3.tar.gz | 1.5 MB | Without provenance | Details for golem_docs-0.1.0a3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| golem_docs-0.1.0a3-py3-none-any.whl | Python 3 | none | any | Details for golem_docs-0.1.0a3-py3-none-any.whl |
Total release size: 1.7 MB
Release files / golem_docs-0.1.0a3.tar.gz
| Download URL | golem_docs-0.1.0a3.tar.gz |
|---|---|
| Size | 1.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4399efda168673b2d52b01419cf0b91dacc9e520b1e453fe47ff2fd4e1abb55c
|
|
BLAKE2b-256 checksum How to use checksums |
289d543572ff7cd0763809ae7f8146341d353ed95790c81ed64947c744e9408c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Release files / golem_docs-0.1.0a3-py3-none-any.whl
| Download URL | golem_docs-0.1.0a3-py3-none-any.whl |
|---|---|
| Size | 125.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e2f711eac12eb284c3931d555d15b17181876f89d04fc27db5e3fd5ca63a663c
|
|
BLAKE2b-256 checksum How to use checksums |
1551d47badfe54dde999de5d97c589a747550c104d40e97081681efb1440a279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.5
|
Security for golem-docs 0.1.0a3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.