Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 971 Bytes

File metadata and controls

30 lines (22 loc) · 971 Bytes

maml-examples

MAML examples showcasing language features. Built with maml-ast.

Development

npm install
npm run generate   # add 100 new examples and render their pages
npm run serve      # preview site/ at http://localhost:5173

Layout

  • generate.js — generates examples and writes pages
  • site.js — page markup and Shiki highlighting
  • assets/style.css — the only stylesheet; copied into site/ on each run
  • data/*.maml — stored examples, 1000 per chunk
  • site/ — generated HTML, 404.html, sharded sitemaps and robots.txt, committed and deployed as-is

New examples are generated weekly by .github/workflows/deploy.yml. Pages are rendered to HTML when an example is created, so a deploy uploads files with no build step. Editing assets/style.css needs no re-render; changing the markup in site.js does — run npm run render.

License

MIT