~subsetpark/bagatto

ref: 19aea03fe23fe5486890912df7dc4a936ce617a3 bagatto/demo/basic-site/README.md -rw-r--r-- 1.2 KiB
19aea03f — Zach Smith Basic site demo 4 months ago

#Bagatto Demo: A Basic Site

This directory contains everything needed to generate a basic site using Bagatto.

To run the demo, install or build Bagatto (in-depth installation instructions are available in the Bagatto manual), cd into this directory, and then run

bag index.janet

You should see Bagatto output its progress as it creates the site. An example output:

code-src/bagatto/demo/basic-site [new-demos !] ⊕ bag index.janet
Reading config data spec...
Reading pages data spec...
Reading css data spec...
Beginning 3 jobs...
Loaded config
Loading pages...
[pages] Loading 2 files
Loading css (styles.css)...
Finished jobs.
Reading pages site spec...
Reading index site spec...
Reading css site spec...
Beginning 3 jobs...
Rendering pages...
Rendering index...
Generating path for css...
Finished jobs.
Starting worker pool with 4 workers...
[COPY] site/css/styles.css
[WRITE] site/index.html
[WRITE] site/pages/bagatto.html
[WRITE] site/pages/about.html
Terminated worker pool.

The generated HTML will now be available in site/ and you can open site/index.html in your web browser.

To compare the output, an already-rendered version of the site is available at site-render.