a-parris21 / ap21-ssg

repos for DPS909 release 0.1
MIT License
0 stars 1 forks source link

AP21-SSG

Overview

This tool is a static site generator (SSG) written in JavaScript and can be run from the Windows CMD or PowerShell. This SSG allows the user to specify a .txt or .md file (or a directory of .txt or .md files types) as input for the program, which will then generate HTML files for each .txt file inputted.

Requirements

All version numbers listed are the recommended versions, though please note that updated/newer version

Installation

To install this program, first clone the repository to your local machine. This can be done in several ways, though I recommend using the VSC CLI. git clone <URL_to_this_repo> <destination_directory_file_path>.

Examples

Next, open a terminal inside of the newly created folder (this can be via VSC, Windows CMD or Windows PowerShell).

Then, run npm install to install the node module dependencies.

Usage

-

Options

There are three CLI options available to the user with this program.

Examples

Cloning the Repository git clone https://github.com/a-parris21/ap21-ssg C:\Users\<username>\Documents\ap21-ssg

To install this program, either clone the repository to your local machine or download the code as a .zip archive.

Next, navigate to the directory where the files from this repos were cloned/saved. Open a CLI terminal and run npm install to install the node module dependencies.

Usage

Execute main.js [options] in the directory where main.js is located.
Note that on Windows you may need to prefix this with the Node interpreter, node /main.js [options].

Options

Long Short Description
--help -h Displays the help message.
--input -i Specify file or folder for input. In case of folder will generate recurseively?
--version -v Prints the version number.

Examples

Optional features developed

New feature