From 3e50d86ab5824c63f45191cf23e1dd736ac328c8 Mon Sep 17 00:00:00 2001 From: Dustin Fischer <57132358+DustinFischer@users.noreply.github.com> Date: Tue, 21 Jan 2025 11:36:41 +0200 Subject: [PATCH] chore: update README --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 78139a1e..5b14d3fc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,30 @@ # presidium-layouts-base Base Hugo layouts for Presidium +## Custom Output Formats + +### Snippets + +The `Snippet` output format is a alternative HTML output format to the standard output (`index.html`) for _pages_ and _sections_. It's intended for generating standalone articles that can be used in third-party/isolated contexts (such as in an `iframe`). + +Features of a snippet: + - Generates content from the `content/` directory. + - Uses the same stylesheets as the standard output. + - Excludes inter-host navigation contexts that are in the standard output, such as the toolbar and left sidebar. + - Includes breadcrumbs to ancestor snippets for limited navigation within the docset. + +**Usage** + +Snippet outputs must be configured per docset repository in `config.yml`. + +```yaml +# /config.yml +... +outputs: + page: + - html # -> index.html + - snippet # -> snippet.html + section: + - html # -> index.html + - snippet # -> snippet.html +```