DEV Community

suhhee1011
suhhee1011

Posted on

SUHHEE_SSG_OSD-release0.1

SUHHEE_SSG_OSD-release0.1

This is an html generator from text file to html.

Technology used

  • Node.js

License Used

  • MIT License

Created by

  • Suhhee Kim

Github Repo

+https://github.com/suhhee1011/suhheeKim_OSD_release0.1_create_ssg

Before Use You need to do

  1. Download or clone the code.
  2. Download node, if you dont have it.
  3. Add environment variable on your laptop(C:\Program Files\nodejs)
  4. Open the codes.
  5. Locate yourself to create-ssg (cd create-ssg).
  6. Open cmd, type npm i and wait for download.

Main Features

  1. Run by Commands, such as help, version and input(Please look at the HElP for details!)
  2. It will convert your text file to Static HTML file with some styles!

Optional Features

  1. It has built in Fancy styled css!
  2. Also able to add your external css with the command -styledInput(-s) with link(Details and example is in HELP!)

Help:

  1. create-ssg --version(-v) : it will show you application name and version
  ex.
  $ create-ssg  --version
  $ create-ssg  -v 
Enter fullscreen mode Exit fullscreen mode
  1. create-ssg --help(-h) : it will give you all the instruction that you need to use this application.
  ex.
  $ create-ssg  --help
  $ create-ssg  -h 
Enter fullscreen mode Exit fullscreen mode
  1. create-ssg --input filename/foldername : it will automatically create website for you using file that you put in command line or if you put folder name then it will automatically get all the txt files from the folder and create website for you.
  ex.
  $ create-ssg  --input [filename/foldername]
  $ create-ssg  -i[filename/foldername] 
Enter fullscreen mode Exit fullscreen mode
  1. create-ssg --styledInput [filename/foldername] external css link: it will automatically generate website \n \t with beautful external css"
  ex.
  $ create-ssg  --steyledInput [filename/foldername] [external css link]<br>
  $ create-ssg  -s [filename/foldername] [external css link]<br>

Enter fullscreen mode Exit fullscreen mode

Discussion (0)