Documentation
Structure
Section titled “Structure”The site is an Astro project with Starlight in docs/.
| Path | Content |
|---|---|
docs/src/content/docs/ |
The English pages. |
docs/src/content/docs/zh/ |
The Chinese pages, with the same file names. |
docs/astro.config.mjs |
The site configuration and the sidebar. |
docs/src/pages/ |
The endpoints that generate llms.txt, llms-full.txt and the Markdown copy of each page. |
docs/internal/ |
Internal notes. Git ignores this directory. Do not link to it from the public pages. |
Each language has three parts: user/, developer/ and agents/.
The test tests/test_docs.py fails when the two languages do not have the same pages.
- Make each change in both languages. The two versions must give the same information.
- Write the English pages in Simplified Technical English: short sentences, active voice, one word for one meaning.
- Write the Chinese pages as original Chinese text. Do not translate sentence by sentence.
- Describe a defect or a risk on the page of the feature that has it.
- Add new terms to the glossary in both languages.
- Write the pages as
.mdfiles. The Markdown copies for agents come directly from these files.
cd docsnpm cinpm run dev # http://localhost:4321, updates after each changenpm run build # writes the site to docs/dist/The build also writes these files for agents:
| Path | Content |
|---|---|
llms.txt, zh/llms.txt |
An index of all pages of one language, with links to the Markdown copies. |
llms-full.txt, zh/llms-full.txt |
All pages of one language in one file. |
<page>.md |
The Markdown copy of each page, for example user/quickstart.md. |
Deploy
Section titled “Deploy”The workflow gh-pages.yml builds the site and deploys it to GitHub Pages.
It runs on a push to main that changes docs/. You can also start it by hand on the Actions page.
In Settings > Pages of the repository, Source must be GitHub Actions.
The site is at https://asembodiedaisyst.github.io/eskin/. The address has the path /eskin, so use relative links between pages.
The workflow gives the address to the build in DOCS_BASE_URL. For a local build, the default in docs/astro.config.mjs applies.