Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 772 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 772 Bytes

Snooty Mockup

Mock up sites quickly from a JSON manifest file.

Install Dependencies & Build

npm install
npm run build

Manifest Format

A manifest file is a JSON file that shows pages and sections to build for the site. The root object is a Page.

{
  "title": "The Title of the Page",
  "children": [
    // Child pages if the page is a 'section'
  ],
}

A page can be represented by either a Page object (as above) or with just a string. A string is interpreted as the title of a leaf page.

Run the App

The following command takes the manifest.json file and creates the rST/toctrees at path/to/site/source.

node path/to/snooty-mockup/build/main.js \
  generate path/to/manifest.json \
  -o path/to/site/source