Skip to content

DerekJxy/My-First-SSG

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My-First-SSG

A Static Site Generator(SSG) for OSD600

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

Installation

npm i yargs

Commands

server.js --input 'filename'

For Example:

After installation of yargs. You can simply run the program by the command:

node server.js -i 'Silver Blaze.txt'

Which will generate a HTML file for the 'Silver Blaze.txt' file into the /dist folder.

Or

node server.js -i .\Sherlock-Holmes-Selected-Stories\

Which will generate a few of HTML files for the Sherlock-Holmes-Selected-Stories directory into the /dist folder.

Index HTML(DEMO)

My-First-SSG-Example

License

MIT License