Skip to main content

Golem Documentation

Michael Bernstein

Creating Your First Site

1. Project Initialization

Golem provides a scaffolding command golem init to generate a ready-to-build workspace:

Terminal
BASH
golem init my-project
cd my-project

This creates the standard standalone documentation structure:

Directory Structure
TEXT
my-project/
├── golem.toml          # Site and build configuration
└── content/            # AsciiDoc source files
    └── index.adoc      # Homepage entry point

The scaffolded content/index.adoc starter document includes standard AsciiDoc document headers:

content/index.adoc
ASCIIDOC
= Welcome to My Project
Michael Bernstein
:toc:

== Introduction
Welcome to your new Golem-powered technical documentation portal.

Introduction

Welcome to your new Golem-powered technical documentation portal.

2. Scaffolding New Documents

Generate structured chapter or article skeletons with golem new:

Terminal
BASH
golem new chapter "Getting Started"

This creates content/getting-started.adoc with standard headers and metadata.

3. Building the Site

Compile the documentation into static HTML5:

Terminal
BASH
golem build

By default, Golem reads AsciiDoc sources from content/ and writes static output to dist/.

4. Running the Live Dev Server

Start Golem's development server to preview changes in real time:

Terminal
BASH
golem serve --port 8000

Navigate to http://127.0.0.1:8000. The server automatically watches your source files and live-reloads connected browser tabs over Server-Sent Events (SSE).