1.4.1 • Published 5 years ago

gensist v1.4.1

Weekly downloads
15
License
MIT
Repository
github
Last release
5 years ago

WARNING - DO NOT USE THIS PACKAGE. IT IS UNDER CONSTRUCTION.

A simple static site generator.

How it works

Gensist grabs a folder of markdown files and generates a website from it. The folder structure and filenames are preserved.

.                           .
└── content                 └── build
    ├── home.md      >>>        ├── home.html
    ├── index.md                ├── index.html
    └── info.md                 └── info.html

Commands

CommandInfo
gensist new <name>Create a new project
gensistBuild current folder
gensist buildBuild current folder
gensist watchAutomatically rebuilds yourwebsite and reloads the browsertab when files are changed
gensist initGenerate missing files.
gensist -vDisplay gensist version

Getting started:

Install gensist with "npm i -g gensist", generate a new project with "npm new my-website" and start it by running "gensist watch". Your browser should open a new tab and when you now make changes to your files the browser should automatically update the page as soon as you save them.

Config

You can configure gensist by placing a gensist.json file in the root your project (all paths are relative to the gensist.json file).

PropertyDefault valueTypeDescription
title"Gensist"stringTitle of your website - you can customize it further in template.html
inputcontentstringInput folder
outputbuildstringOutput folder
templatetemplate.htmlstringThe HTML template used to construct each page of your site
optimizetruebooleanTells gensist to compress the HTML/CSS
styleNot setstring[]List of stylesheets to apply to the page
assetsNot setstringAsset folder for images, fonts, etc.

If there is no gensist.json, gensist will fall back on this config (all properties are optional):

{
  "title": "Gensist",
  "input": "content",
  "output": "build",
  "template": "template.html",
  "optimize": true
}
1.4.1

5 years ago

1.3.1

5 years ago

1.3.0

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago