1.0.3 • Published 1 year ago

button-ssg v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

my-button

A Static Site Generator(SSG) for OSD600

This repo introduces a JavaScript program that convert .txt file or .md file into a HTML file

Installation

First install via: npm install

check if yargs is installed and if not run the following in your terminal: npm i yargs

Commands

node my-button.js --input Convert a text file to HTML file. After installation of yargs. You can simply run the program by the command:

node my-button.js -i "Silver Blaze.txt" or node my-button.js -i LICSENSE.md Which will generate a HTML file for the 'Silver-Blaze.txt' file or 'Silver-Blaze.md' file into the /dist folder.

Or

node my-button.js -i .\Sherlock-Holmes-Selected-Stories\ Which will generate HTML files for the Sherlock-Holmes-Selected-Stories directory into the /dist folder.

or if you are using macOS or UNIX use forward slashes node my-button.js -i ./Sherlock-Holmes-Selected-Stories/

NOTE: HTML files markdown syntax will be bold

node my-button.js -c ssg-config.json Will read the input and language options from the specified config file.

Test Site

https://my-button-ssg.vercel.app/

License

MIT License

1.0.3

1 year ago

1.0.2

1 year ago

1.0.0

1 year ago