Header menu logo docs-template

The fslab documentation template

This template scaffolds the necessary folder structure for documentation with FSharp.Formatting and it's fsdocs tool, and adds custom styles in the fslab theme.

Table of contents

Installation

This template is available as a dotnet new template (from nuget):

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

Quick content rundown:

The default template initializes the following folder structure when you initialize it in the root of your project.

See further below for command line customization options of the template.

docs
│   index.fsx
│   _template.html
│   _template.ipynb
│
│   fsharp-code-example.fsx
│   inline-references.fsx
│   notebooks.fsx
|
├───content
│   fsdocs-custom.css
│
├───img
│       favicon.ico
│       logo.png
│
└───reference
        _template.html

Creating new content

For more info please refer to the FSharp.Formatting documentation.

Customization options

Style sheet options

-s|--styles             Set the type of style content the template will initialize. For the sass file to work, you will have to download bulma

        all             - sass file, compiled csss, and minified css

        sass            - only include the sass file

        minified        - only include the minified css file

        css             - only include the compiled css file

        Default:        css

Inclusion of sample content

-is|--include-samples   wether to include sample files in the generated content

        bool            - Optional

        Default:        true

Create notebooks

-in|--include-notebooks  wether to include the notebook template file
        
        bool            - Optional

        Default:        true

Type something to start searching.