Documentation
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tryck
command
Command tryck is a static site generator for technical documentation.
|
Command tryck is a static site generator for technical documentation. |
|
examples
|
|
|
plugin-hello
command
Command plugin-hello is a custom tryck binary with one extra plugin.
|
Command plugin-hello is a custom tryck binary with one extra plugin. |
|
internal
|
|
|
build
Package build turns a site's inputs into an immutable Site snapshot.
|
Package build turns a site's inputs into an immutable Site snapshot. |
|
config
Package config loads, defaults and validates tryck.config.yaml.
|
Package config loads, defaults and validates tryck.config.yaml. |
|
content
Package content discovers source files and models pages: front matter, URL mapping and titles.
|
Package content discovers source files and models pages: front matter, URL mapping and titles. |
|
devserver
Package devserver implements tryck dev: it builds the site into memory, serves it, rebuilds on file changes and tells browsers to reload over a WebSocket.
|
Package devserver implements tryck dev: it builds the site into memory, serves it, rebuilds on file changes and tells browsers to reload over a WebSocket. |
|
diag
Package diag defines build diagnostics: a stable, file:line-addressed description of every problem found while loading or building a site.
|
Package diag defines build diagnostics: a stable, file:line-addressed description of every problem found while loading or building a site. |
|
markdown
Package markdown configures goldmark: CommonMark plus GFM, unique heading IDs and tryck's ::: directives.
|
Package markdown configures goldmark: CommonMark plus GFM, unique heading IDs and tryck's ::: directives. |
|
nav
Package nav builds the navigation tree that mirrors contentDir.
|
Package nav builds the navigation tree that mirrors contentDir. |
|
output
Package output writes a built Site to disk.
|
Package output writes a built Site to disk. |
|
plugins
Package plugins holds tryck's built-in plugins and the registry that enables, configures and orders them for a build.
|
Package plugins holds tryck's built-in plugins and the registry that enables, configures and orders them for a build. |
|
render
Package render loads layout templates and executes them for pages.
|
Package render loads layout templates and executes them for pages. |
|
scaffold
Package scaffold creates a new site from a template file tree.
|
Package scaffold creates a new site from a template file tree. |
|
scripts
Package scripts runs JavaScript plugins: plugins/<name>.js files that define the same hooks as Go plugins as plain functions.
|
Package scripts runs JavaScript plugins: plugins/<name>.js files that define the same hooks as Go plugins as plain functions. |
|
workpool
Package workpool runs indexed work on a bounded number of goroutines.
|
Package workpool runs indexed work on a bounded number of goroutines. |
|
pkg
|
|
|
plugin
Package plugin is tryck's public plugin API.
|
Package plugin is tryck's public plugin API. |
|
tryck
Package tryck is the public entry point of the tryck command line.
|
Package tryck is the public entry point of the tryck command line. |
Click to show internal directories.
Click to hide internal directories.