syntax

package
v0.0.0-...-09dfd77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

package build handles the generation of the site's rendered markdown files.

From the filesystem, a markdown is file is loaded into a markup struct that contains an abstract syntax tree (struct ast) and the source code.

The ast is generated by walking recursively through the documents treesitter grammar and then using the range of each element to extract its string contents. Take a look at `example/test-ast.json` for an example of the generated ast.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Document

type Document struct {
	// The name of the template
	Name     string
	Template *template.Template
}

type Document is the HTML file created from the loaded template

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL