Skip to content
tim-janikPublic

About

Fast and lean tool that turns Markdown and AsciiDoc files into a website on the fly

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

144 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Iris

Fast and lean tool that turns Markdown and AsciiDoc files into a website.

Renders .md or .adoc files, interprets frontmatter like title and date, and Iris builds HTML, a sitemap, and feeds. Iris can also serve static files (images, HTML) and render .md or .adoc on the fly, to show your files in a browser while you write.

What it does

  • builds a site from a folder of source files (ssg)
  • shows files live in a browser while you edit (serve)
  • makes link lines for an index.md (index)

Iris keeps things small. It is for personal sites, blogs, and docs. It depends on pandoc for Markdown and asciidoctor for AsciiDoc to render those file types.

Features

  • Converts Markdown and AsciiDoc to HTML with pandoc and asciidoctor
  • Reads frontmatter (title, date, keywords, authors) from source files
  • Takes publication and update dates from git history
  • Builds RSS, Atom, and sitemap files
  • Converts and renders in parallel, using all CPU cores
  • Picks which files to process with include and exclude patterns
  • Keeps URLs clean, without .html suffixes
  • Shows email comments (.eml files) on post pages
  • While serving, lists frontmatter files as a sortable, filterable board in the browser, and creates new ones from a form

Install

For building or installing from a checkout, Go 1.25, make, curl, and sha256sum are needed. Generate the ignored assets first:

go generate ./...
go install .

Or build a local binary:

make build		# needs Go, pandoc and asciidoctor on PATH
./iris ssg -h

Use

Run a subcommand with -h to see its flags:

iris ssg -h
iris serve -h
iris index -h
iris init -h

Typical steps:

iris init
iris ssg ./content ./public
iris serve /home/user/

SSG accepts output inside the input tree, for example iris ssg . ./site. It skips the output directory during input scanning. Sibling names such as .site.tmp-* and .site.old-* are reserved for staging and backup directories. Generation finishes in a staging directory before installation starts. By default, installation renames directories, so the output parent must be writable and the output itself must not be a mount point. The two renames are not an atomic swap.

With -C=false, SSG leaves untouched files alone and copies the completed build into the output directory in place. This also supports writable outputs under a read-only parent and mount-point outputs. Generation failures preserve the old output; an error during the final copy can leave some files updated. Generated files are copied to new files, then renamed into place. Generated paths that hit symlinks or special files are rejected. Merge mode keeps existing file permissions; both modes keep output-directory permissions. New entries respect the process umask.

About

Fast and lean tool that turns Markdown and AsciiDoc files into a website on the fly

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages