saait

Simple static page generator
git clone https://git.sinitax.com/codemadness/saait
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit 0f9615a28ddc062de97bcc89170cc7c94ca15f3b
parent 26cef250bc4609edcc5663540f3e4055738ca06b
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sun,  5 Jan 2020 14:14:28 +0100

README: some white-space fixes

Diffstat:
MREADME | 18+++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/README b/README @@ -159,43 +159,43 @@ EXIT STATUS EXAMPLES A basic usage example: - 1. Create a directory for a new site: + 1. Create a directory for a new site: mkdir newsite - 2. Copy the example pages, templates, global config file and example + 2. Copy the example pages, templates, global config file and example stylesheets to a directory: cp -r pages templates config.cfg style.css print.css newsite/ - 3. Change the current directory to the created directory. + 3. Change the current directory to the created directory. cd newsite/ - 4. Adjust the values in the global config.cfg file which provides + 4. Adjust the values in the global config.cfg file which provides defaults for all pages. - 5. If you want to modify parts of the header, like the navigation menu + 5. If you want to modify parts of the header, like the navigation menu items, you can change the following two template files: templates/page/header.html templates/index.html/header.html - 6. Create any new pages in the pages directory. For each *.cfg file + 6. Create any new pages in the pages directory. For each *.cfg file there has to be a corresponding *.html file with the same basename. They have to be placed in the same folder. Optionally they can be overridden with the special variable "htmlfile". See the copied example pages in this directory. - 7. Create an output directory: + 7. Create an output directory: mkdir -p output - 8. After any modifications the following commands can be used to + 8. After any modifications the following commands can be used to generate the output and process the pages in descending order: find pages -type f -name '*.cfg' -print0 | sort -zr | xargs -0 saait - 9. Copy the modified stylesheets to the output directory also: + 9. Copy the modified stylesheets to the output directory also: cp style.css print.css output/