An implementation of LiquiDoc CMF such as ACMEdoc starts with a core architecture made up of the directories and files listed below.
- _configs/
-
This is where we tell our tooling how to do what. The
_configs/directory usually contains at least onebuild\*.ymlfile that instructs a build routine as well as anasciidoctor.ymlfile for establishing global AsciiDoc/Asciidoctor settings, and optionally ajekyll.ymlfile to stand in as the_config.ymlfor Jekyll operations. - _data/
-
Where we store small-data files.
- _templates/
-
This directory is for storing templates used in preprocessing.
- build/
-
A directory created and written to during the build process.
- src/
-
This is where most of our content will come from.
- src/*index*.adoc
-
The defining file for book builds and the homepage and something of a map for site builds. This file sould have
indexin its filename but should also be descriptive of what it produces. - src/includes/
-
Snippets and partials go in here. This is where we put highly reusable and often partly dynamic text content. Snippets should not have headers. They may be collected into files by type or subject, distinguished by AsciiDoc include tags in their comments.
- src/topics/
-
Topics are chunks of content that could stand alone, for instance as a web page, but that also might be reused in different contexts, including as a component of a larger page or other document, such as a book. All topic files should have a level-one header (
=). - src/[content]/
-
A freely named directory for your main content, however organized. Often called
pages/to comport with Jekyll conventions. - theme/
-
Files for defining layout and style for publishing go here. Not to be confused with
_layouts/, which holds similarly purposeful files for structuring content in preprocess operations.
In the PDF edition of this document, the above appears as a table; in the website edition, it is a definition list.
Both are drawn from the same source (_data/framework-structure.yml), which is parsed using the generic templates terms-to-table.asciidoc and terms-to-dlist.asciidoc, each generating a file in the ephemeral directory build/includes/built/ (those being framework-strcture-table.adoc and framework-structure-dlist.adoc).
|