Skip to content

The GREAT site generator is actually just another simple site generator that can generate static sites based off of text data.

License

Notifications You must be signed in to change notification settings

drew5494/the-great-site-generator

Repository files navigation

The Great Site Generator

Actually jsut another site generator that allows you to generate static sites based off of text data.

Features

Input

The -i or --input flag means the input path. This will look for all texts files within the folder. You can provide a .txt file or a directory. This is a required field for the program to work.

Examples

File Input

This will take the content from the text file and output a HTML file.

    ./tgsg -i sample.txt
Directory Input

This will go though a directory named sample and look for .txt files.

    ./tgsg -i sample

Auto-Add Title

This feature automatically creates an h1 tag for the first line if there are two empty lines following the first line.

Markdown

This feature allows the user to input markdown files for conversion into HTML. As of right now the only supported markdown feature is the #/h1 element.

Example

Navigate to the folder with the main.cpp through terminal. Enter the following command to allow for Markdown processing.

./tgsg -m ./PATH_TO_MARKDOWN_FILE

In the file, have the proper syntax for Markdown for header one components:

# HELLO WORLD

Language Tag

This feature allows the user to input an html language tag. The default language is English-Canadian.

Example

Navigate to the folder with the main.cpp through terminal. Enter the following command to specify a language. -l or --lang is acceptable.

./tgsg -i sample.txt -l fr

About

The GREAT site generator is actually just another simple site generator that can generate static sites based off of text data.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •