Skip to content

Repository files navigation

ant-lang.org

The website of the Ant language, built with VitePress. Its playground edits and runs Ant in the browser with @ant-lang/monaco and @ant-lang/wasm.

npm install
npm run dev         # http://localhost:5173
npm run build       # .vitepress/dist
npm run typecheck   # vue-tsc
npm run fmt         # oxfmt
npm run lint        # oxlint

The documentation under /docs is written and tested in ant-src/ant, not here. Every build copies it into docs/ (ignored by git) from ../ant/docs, or from the directory ANT_DOCS names; .vitepress/docs.ts leaves out unwritten pages and builds the sidebar. CI builds with ant's master.

Local search indexes only docs/lib/ and docs/language/ by default, including their subdirectories. Each page appears as one result under its title; subsection text is searchable within that result. To include any other page, add a comment near the top of its Markdown source, after its status comment if present:

<!-- search: true -->

Use <!-- search: false --> to exclude a page, even within those two directories. For documentation pages, edit the source in ant/docs/; the copied docs/ directory is replaced on every build.

Every build also writes the site as a coding agent reads it (.vitepress/llms.ts):

  • /llms.txt: what an agent that has never seen Ant must know before it writes any, then a list of pages for each part of the docs. The first part is .vitepress/llms.md, written by hand; the lists are made from the docs.
  • /docs/**/*.md: every docs page as Markdown, at the page's address with .md added.
  • /llms-small.txt: the tour and Idiomatic Ant in one file.
  • /llms-full.txt: every docs page in one file.

llms.md states facts about the language and the tools that no test runs. When either changes, check the file against ant.

The playground's examples live in playground/examples/, one directory each, holding main.ant. Add one to the list in playground/examples.ts.

Pushes to master deploy to GitHub Pages.

Contributors

Languages