Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 1.68 KB

File metadata and controls

51 lines (32 loc) · 1.68 KB

The Flix Website (flix.dev)

The website of the Flix programming language, built with Astro.

Development

Requires Node.js 22 or later.

npm install
npm run dev

The development server runs at http://127.0.0.1:3000.

Building

npm run build

Builds the production site to the dist/ folder.

npm run preview

Previews the production build locally before deploying. See the Astro deployment guide for more information.

External Resources

dev, build, and check first run npm run fetch, which downloads two files into src/:

  • the Flix TextMate grammar used for syntax highlighting, into src/grammars/
  • the Atom feed of blog.flix.dev, which the blog page lists posts from, into src/data/

Each download is skipped if the file is already there, so both are retrieved once and then kept. To update them, delete them and fetch again:

rm -f src/grammars/flix.tmLanguage.json src/data/blog-atom.xml
npm run fetch

Either can also be fetched on its own with npm run fetch-grammar or npm run fetch-blog-posts.

Note that the grammar is pinned to a commit of flix/textmate: bumping the SHA in build-scripts/fetchGrammar.mjs has no effect on its own, since the download is skipped whenever the file is already there. Delete it as well.

Learn More