Getting Started
A Starlight plugin to write your documentation using F# files.
Prerequisites
Section titled “Prerequisites”You need to have a Starlight project set up. If you don’t have one, you can create a new Starlight project by following the official Starlight documentation.
This plugin also requires Node.js 22.12.0 or later.
Installation
Section titled “Installation”-
Install the plugin using your favorite package manager:
Terminal window npm install starlight-fsharp-literateTerminal window yarn add starlight-fsharp-literateTerminal window pnpm add starlight-fsharp-literate -
Configure the plugin in your
astro.config.mjsfile:import { defineConfig } from 'astro/config';import starlight from '@astrojs/starlight';import fsharpLiterate from 'starlight-fsharp-literate';export default defineConfig({integrations: [fsharpLiterate(),starlight({// ... your Starlight config})]}); -
You can now write
*.source.fsxfiles in your documentation pages insrc/content/docs/and the plugin will automatically generate a corresponding*.mdxfile that goes through Starlight’s pipeline.