lua notes

lua notes

things i keep forgetting how to do in lua, written up so i dont have to ask again

each page here is one thing, how to do it and the bit that tripped me up. pages live in docs/content/docs/, one .mdx per topic, a folder per area

  • lua/, the language itself, no c involved

adding a page

  • drop a .mdx in its areas folder, content/docs/lua/ for pure lua, title and description in the frontmatter
  • a new area is a new folder, a meta.json in it sets the sidebar title and the order
  • pnpm dev in docs/ to preview at localhost:3000

On this page