Skip to content

Latest commit

 

History

History
125 lines (86 loc) · 3.83 KB

README.md

File metadata and controls

125 lines (86 loc) · 3.83 KB

FSharp WasmGC — Website

This repository contains the source code for the fsharp-wasm.github.io website — the landing page, documentation, and blog for the FSharp WasmGC compiler project.

About FSharp WasmGC

FSharp WasmGC is a clean-room compiler backend that compiles F# to WebAssembly GC. It is built on top of Fable, replacing only the code generation backend with a WasmGC emitter.

  • Write idiomatic F# — no special attributes or interop layers needed
  • Get compact, self-contained .wasm modules with no JavaScript runtime
  • Full WasmGC MVP compliance: struct types, array types, typed function references
  • Component Model / WIT support for cross-module linking

Website stack

Built with Astro 5 + Tailwind CSS, based on the AstroWind template.

Features:

  • ✅ Static site generation — deploys to GitHub Pages
  • ✅ MDX/Markdown blog with RSS feed
  • ✅ Content-managed documentation (MD files in src/content/docs/)
  • ✅ Dark mode support
  • ✅ SEO optimised with Open Graph and sitemap

Development

Prerequisites

  • Node.js 20+
  • npm 10+

Setup

cd fsharp-wasm.github.io
npm install
npm run dev

Open http://localhost:4321.

Build

npm run build

Output is in dist/.

Preview production build

npm run preview

Content structure

Location Purpose
src/data/post/*.md Blog posts — add new .md or .mdx files here
src/content/docs/*.md Documentation pages — add new docs here
src/pages/index.astro Landing page
src/pages/about.astro About page
src/pages/benchmarks.astro Benchmarks (coming soon)
src/pages/contact.astro Contact / community links
src/navigation.ts Header and footer navigation
src/config.yaml Site metadata, blog settings
src/components/ Reusable Astro components (AstroWind widgets)

Adding a blog post

Create a new file in src/data/post/:

---
publishDate: 2026-04-01T00:00:00Z
author: Your Name
title: Your Post Title
excerpt: A one-sentence summary shown in blog list views.
category: Tutorials  # or: Announcements, Technical, Releases
tags:
  - fsharp
  - wasmgc
---

# Your Post

Content here in Markdown or MDX.

Adding a documentation page

Create a new file in src/content/docs/:

---
title: My New Doc
description: What this document covers.
order: 4  # controls sort order in the docs index
---

# My New Doc

Content here.

The page will appear automatically at /docs/my-new-doc.

Deployment

The site deploys automatically to GitHub Pages on push to main. Static files are built by Astro and served from the dist/ directory.

For Docker-based deployment, see docker-compose.yml and nginx/nginx.conf.

Attributions

License

Our content and code are Apache License 2.0 (see NOTICE); the parts that come from the AstroWind template keep its MIT License, LICENSES/MIT-AstroWind.md.

The FSharp WasmGC compiler (separate repository) is Apache License 2.0 as well: https://github.com/fsharp-wasm/fsharp-wasm/blob/main/LICENSE