Static site generator (SSG) made with .NET.
Sample website: https://paper-csharp-sample.vercel.app/
$ dotnet run -- --help
-i, --input Required. Path to file(s)
-s, --stylesheet Path to css file or url
-o, --output (Default: ./dist) Path to output directory
-l, --lang (Default: en-CA) Locale of generated .html files
--help Display this help screen.
--version Display version information.
The index file includes paths to all the generated html files (recursively)
$ dotnet run -- -i dir-with-nested-dirs-and-files
Content of .css
files are bundled into all the generated .html
files
$ dotnet run -- -i page.txt --stylesheet ./my-style.css
If a directory is passed as --input
, dist
keeps the structure of the source dir
$ donet run -- -i sample-dir
βββ sample-dir
βββ Cargo.toml
βββ sample-dir
β βββ sub-dir-1
β βββ sub-dir-2
β βββ page-1.txt
βββ dist
β ββ sample-dir
β βββ sub-dir-1
β βββ sub-dir-2
β βββ page-1.html
Title is the first line of the file, followed by 2 empty lines
Specify a different output directory, default is dist
Markdown syntax supported:
-
bold text **bold**
-
hr ---
$ dotnet run -- -i sample.md -o pages
Specify the language of generated .html files. Default is en-CA.
$ dotnet run -- -i page.txt page.md --lang vi-VN
Demo: https://paper-csharp.vercel.app/sample/markdown/Gallery.html
Source file: Gallery.md
Place your images in static
folder and refer to them in markdowns
![unsplash 2021 collection](unsplash-2021-collection.jpg)
For collaboration, see CONTRIBUTING.md