Running the documentation locally
The source of this documentation website is hosted on https://github.com/fsharp/fsharp-compiler-docs.
You can follow this guide to see the results of your document changes rendered in the browser.
Setup
fsharp/fsharp-compiler-docs will clone the dotnet/fsharp repository first to generate the documentation.
You can however, easily run the documentation locally and modify the docs from dotnet/fsharp.
- Clone
fsharp/fsharp-compiler-docsat the same level as your localdotnet/fsharprepository:
git clone https://github.com/fsharp/fsharp-compiler-docs.git
- Restore the
FSharp.Compiler.Serviceproject infsharp-compiler-docs:
cd fsharp-compiler-docs/FSharp.Compiler.Service
dotnet restore
- Restore the local tools in
fsharp-compiler-docs:
cd ..
dotnet tool restore
- Run the documentation tool using your
dotnet/fsharpfork as input.
dotnet fsdocs watch --eval --sourcefolder ../fsharp/ --input ../fsharp/docs/
Release notes caveat
The release notes pages from docs/release-notes are composed from the MarkDown files in subfolders.
Changing any of these files, won't regenerate the served webpage. Only the changes to the .fsx will trigger the tool. This is a known limitation.
Multiple items
namespace Microsoft.FSharp
--------------------
namespace FSharp
namespace Microsoft.FSharp
--------------------
namespace FSharp
F# Compiler Guide