Skip to content

cbush/snooty-mockup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Mock up snooty sites from JSON

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published