- CSS 46.2%
- Astro 34.5%
- TypeScript 9.5%
- Shell 7.9%
- JavaScript 1.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| ci | ||
| k8s | ||
| public | ||
| src | ||
| .gitignore | ||
| astro.config.mjs | ||
| bun.lock | ||
| nginx.conf | ||
| package.json | ||
| README.md | ||
| t.toml | ||
| tsconfig.json | ||
Tilo documentation site (docs.tilo.so)
Open-source documentation site for Tilo. It publishes books exported from the
tilo/tilo repository; the page list and the Markdown come from the book, never
from this repository.
bun install
TILO=/path/to/tilo TILO_BOOKS=../books/docs-tilolang:../books/docs-developers bun run dev
TILO=/path/to/tilo TILO_BOOKS=../books/docs-tilolang:../books/docs-developers bun run build
TILO_BOOKS is one or more book directories separated by :. The first book is
shown first on the home page and in the sidebar. TILO is the tilo checkout the
books were exported from: the pages render with its tools/docs/book.ts. A build
without either fails with a message saying so.
Exporting a book
The books are written by tools/docs/developer_docs.py in tilo/tilo:
tools/docs/developer_docs.py export --manifest docs/tilolang/pages.toml \
--out ../books/docs-tilolang --at https://docs.tilo.so/tilolang/
tools/docs/developer_docs.py export --out ../books/docs-developers \
--manifest docs/developers/pages.toml --at https://docs.tilo.so/developers/
--at publishes the book at this site's address, so the links inside it point
here rather than at the book's own origin. Each book directory holds
manifest.json (sections, pages, titles, descriptions and source links) and
pages/<id>.md.