Skip to content

fslaborg/docs-template

Repository files navigation

The fslab documentation template

dotnet new template setting up the necessary folder structure and files for FSharp.Formatting documentation. It uses a custom fslab color scheme and html template.

How does it look like?

The current version is live on gh-pages:

https://fslab.org/docs-template/

Installation

dotnet new -i FsLab.DocumentationTemplate

Usage

If not already present, create a local tool manifest in the root of your project that you want to write documentation for:

dotnet new tool-manifest

Then, still in the root of your project, run:

dotnet new fslab-docs

for more more indepth information head over here

Develop

To (re)compile with sass:

build.cmd -t compileSass (Win)

build.sh -t compileSass (Mac/Linux)

Build the template nuget package:

build.cmd (Win)

build.sh (Mac/Linux)

Start fsdocs in watcher mode for the test project:

build.cmd -t watchDocs (Win)

build.sh -t watchEDocs (Mac/Linux)

Test the template package intallation and check correct contents of an initialized template:

build.cmd -t test (Win)

build.sh -t test (Mac/Linux)

will create the template output in the tests folder.

Release nuget package and create a tag on the repo:

build.cmd -t release (Win)

build.sh -t release (Mac/Linux)