Bootstrapping

Static site generator in F#

LOLs aside, this is all I need to get started - a canvas for ideas:

site.fsx
#r "nuget: FSharp.Formatting, 15.0.0"
open System.IO
open FSharp.Formatting.Markdown

let document =
    $"""
# Bootstrapping
## Static site generator in F#

LOLs aside, this is all I need to get started - a canvas for ideas:

<pre>site.fsx</pre>

```fsharp
{File.ReadAllText(Directory.GetCurrentDirectory()+"/build-site.fsx")}
"""

document
|> Markdown.Parse
|> Markdown.ToHtml
|> fun html -> File.WriteAllText($"{Directory.GetCurrentDirectory()}/site/index.html", html)

Code Editor