Feature: Site Build
Purpose
The project contains a static-site input directory (site.in/) and a generated static-site output directory (site.out/).
The Site Build feature provides the script that converts site.in/ into site.out/.
Requirements
SITE-BUILD-R001—scripts/site-build.shmust generate the static site insite.out/from the input insite.in/.SITE-BUILD-R002— Eachsite.in/*.txtinput file must producesite.out/<name>.html.SITE-BUILD-R003— Generated output must be identified as generated.SITE-BUILD-R004— The script must accept optional input and output directory arguments.SITE-BUILD-R005— When no arguments are given, the script must usesite.in/andsite.out/relative to the repository root.SITE-BUILD-R006— The script must be a POSIX shell script.SITE-BUILD-R007— The HTML page structure must live insite.in/template.html, not in the build script.SITE-BUILD-R008—site.in/template.htmlmust contain the marker line<!-- SITE-CONTENT -->where page content is inserted.
Behavior
- Running the script recreates
site.out/fromsite.in/. - Re-running the script overwrites existing output deterministically.
Dependencies
- None.