Gustavo Martinez SSG for OSD600
npm install gmot-ssg
npm i gmot-ssg
`
What it does?
$3
`
example.txt:
"I had called upon my friend, Mr. Sherlock Holmes, one day in the autumn
of last year, and found him in deep conversation with a very stout,
florid-faced, elderly gentleman, with fiery red hair. With an apology
for my intrusion, I was about to withdraw, when Holmes pulled me
abruptly into the room and closed the door behind me."
`
will become:
`
example.html
example
example
"I had called upon my friend, Mr. Sherlock Holmes, one day in the autumn
of last year, and found him in deep conversation with a very stout,
florid-faced, elderly gentleman, with fiery red hair. With an apology
for my intrusion, I was about to withdraw, when Holmes pulled me
abruptly into the room and closed the door behind me."
`
How do I use it?
`
To use this tool, you need to type in the CLI the following:
npx gmot-ssg -i -o `
By default, this tool will create a "dist" directory in its folder where the output will be.
What options does it have?
`
This tool has an
-s --stylesheet option, which will take your input stylesheet link and place it inside the HTML.
-o --output option, this option will place the output in your custom output directory.
-v --version option, will display the current version of the program.
-l --language option, will let you set the language for the HTML.
-h --help option, will display the usage, options, and examples.
-c --config option, will read the config JSON file for arguments instead of command line.
`
What optional features does it have?
`
and tags
-s -stylesheet for custom css links
-o --output for custom output paths
-l --language for custom HTML language, default is en-CA.
It also accepts mixed input, txt files, md files and directories.
`
Additional support for md (markdown) files
| MD File | HTML File | Webpage |
| ------------------------------- | ------------------------------------------ | ----------------------------- |
| Bold Text | Bold Text | Bold Text |
| Italic Text | Italic Text | _Italic Text_ |
| # H1 Heading | | H1 Heading
|
| ## H2 Heading | | H2 Heading
|
| GitHub | GitHub | GitHub |
| --- | |
|
For Example (md files):
`
README Excerpt
GMOT-SSG
OSD600 0.1 - SSG
SSG - Static Site Generator
What this tool does?
This tool will receive a input txt file(files) or directory(directories) and transform it in an HTML page(pages).
`
will become:
`
README Excerpt
README Excerpt
GMOT-SSG
OSD600 0.1 - SSG
SSG - Static Site Generator
What this tool does?
This tool will receive a input txt file(files) or directory(directories) and transform it in an HTML page(pages).
``