andrewnt219.paper 1.0.0

dotnet add package andrewnt219.paper --version 1.0.0                
NuGet\Install-Package andrewnt219.paper -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="andrewnt219.paper" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add andrewnt219.paper --version 1.0.0                
#r "nuget: andrewnt219.paper, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install andrewnt219.paper as a Cake Addin
#addin nuget:?package=andrewnt219.paper&version=1.0.0

// Install andrewnt219.paper as a Cake Tool
#tool nuget:?package=andrewnt219.paper&version=1.0.0                


Static site generator (SSG) made with .NET.

Sample website:

Using as a nuget

Install from nuget:


using Paper_csharp.Modules.Cli;
namespace Test
    class Program
        static void Main(string[] args)
            Generator generator = new Generator(args);

Using as a console app

  1. Install your version of OS from Release
  2. Unzip the console app
  3. Run the executable file
  • Window: .exe
  • Linux/Mac: (no extension)
$ ./Generator.exe --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.


🌟 Generate index.html

The index file includes paths to all the generated html files (recursively)

$ ./Generator.exe -i dir-with-nested-dirs-and-files
🌟 Pass in stylesheet's file OR url as a CLI arg

Content of .css files are bundled into all the generated .html files

$ ./Generator.exe -i page.txt --stylesheet ./my-style.css
🌟 Keep source folder structure

If a directory is passed as --input, dist keeps the structure of the source dir

$ ./Generator.exe -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
🌟 Parse title

Title is the first line of the file, followed by 2 empty lines

🌟 Pass in output dir as argument

Specify a different output directory, default is dist

🌟 Parse Markdown files

Markdown syntax supported:

  • bold text **bold**

  • hr ---

$ dotnet run -- -i -o pages
🌟 Pass in lang as an option

Specify the language of generated .html files. Default is en-CA.

$ dotnet run -- -i page.txt --lang vi-VN
πŸŽ‰Support static images


Source file:

Place your images in static folder and refer to them in markdowns

![unsplash 2021 collection](unsplash-2021-collection.jpg)


For collaboration, see

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 6,487 11/24/2021