class

Hwaro::Services::Scaffolds::Docs

Inherits Hwaro::Services::Scaffolds::Base < Reference < Object

Instance methods

archetype_files

Docs ships section-specific archetypes so hwaro new getting-started/foo.md, guide/foo.md, and reference/foo.md each auto-match (see Services::Creator#find_archetype) with docs-shaped front matter (weight/toc) that a generic default.md would miss.

Source
config_title

Returns the site title used in config (overridable per scaffold). Public so hwaro doctor can source its placeholder-title advisory from the scaffolds themselves instead of a hand-kept literal list that only ever covered "My Hwaro Site".

Source
content_files(skip_taxonomies : Bool = false) : Hash(String, String)

Returns sample content files as a hash of path => content

Source
description

Returns the description of this scaffold

Source
static_files

Returns static files as a hash of path => content. Every scaffold inherits a tiny SVG favicon so a freshly-generated site doesn't show a blank tab icon. Scaffolds that override static_files (blog/docs/book) merge super to keep it.

Source
template_files(skip_taxonomies : Bool = false) : Hash(String, String)

Docs templates share nav, search, and sidebar across page, section, taxonomy, and 404 — extracting those into partials/ makes "edit the nav" a one-file change and keeps 404/taxonomy inside the docs-container so footer.html's closing tags actually match what the body opens.

Source
type

Returns the scaffold type

Source