DeepTutor Documentation
Public documentation for DeepTutor, published at https://docs.deeptutor.info. The site is Astro and Starlight. This file is the authoring guide for docs/.
Three sites stay separate:
| Surface | Role |
|---|---|
docs/ |
This site. End users, self-hosters, and integrators. |
| deeptutor.info | Marketing site. Its source is not in this repository. The docs homepage reproduces that landing. |
docs-for-dev/ |
Internal notes. Unpublished, and not linked from the sidebar. A public page may link to a file on GitHub when the reader needs the internal manual. |
The repository root README.md is the GitHub project page. It is not the source of truth for this site.
Design
Organize pages by what the reader is trying to do, then by product area. Diátaxis decides the job of a page. The quadrant name never appears in a folder, a slug, or a sidebar label.
Every page except the splash homepage sets exactly one quadrant in frontmatter:
| Value | Job |
|---|---|
tutorial |
The shortest path to a first success. One path, with no alternate install or feature branches in the body. |
how-to |
Steps for one task. Link out for theory and for parameter lists. |
reference |
Parameters, schemas, and catalogs. Prefer a code source over a second prose copy. |
explanation |
How a design fits together. No procedures. |
The homepage is template: splash and omits quadrant. Welcome (welcome.mdx) is an explanation page and is the front door of the documentation. Its cards follow one concrete task each: a title, one sentence, and a link to the page that finishes that task.
Install paths
Desktop is the only default install tutorial (get-started/desktop/). Docker is a second, independent tutorial (get-started/docker/) and stops at the first successful run. Host folders, reverse proxies, local models, and upgrades live on the self-hosting operations page.
PyPI, source, CLI-only, multi-user, and troubleshooting are self-hosting how-tos. get-started/ explains the choice among those paths and links to them. It does not repeat their steps.
Homepage
src/components/HomeLanding.astro renders the marketing landing for both locales: navigation, hero, product shot, eight places, and four install tabs in this order: PyPI, Docker, source, CLI. Both index.mdx files import that component and do not set Starlight hero frontmatter.
The Docs button and the Docs nav item open Welcome (/welcome/ and /zh-cn/welcome/). Eight-place and footer links use the current docs slugs. Community and Collaborate stay on deeptutor.info. src/styles/landing.css hides the Starlight header, sidebar, and the splash <h1 id="_top">. Hide that heading, not the content panel that contains the landing.
Product areas
Sidebar groups are product areas. Add a page under the area that owns the task, with a zh-CN label.
| Group | Slug | What belongs here |
|---|---|---|
| Get started | welcome/, get-started/ |
Welcome, install choices, Desktop, Docker, providers, changelog |
| Learning workspace | learning-workspace/ |
Chat, agent loop, Vision Solver, questions, mastery, knowledge, books, reading, research, notebook, resources, calendar, memory |
| Multimodal studio | multimodal-studio/ |
Which generator to use, Visualize, Math Animator, Video Lesson |
| Customize | customize/ |
Personas, skills, MCP, CLI apps, EduHub, agents, RAG |
| Channels | channels/ |
Create a partner, channel schema, domestic IM, international IM |
| Self-hosting | self-hosting/ |
Runtime home, PyPI, source, Docker operations, CLI-only, multi-user, Codex sign-in, desktop editions, settings, configuration files, troubleshooting |
| Developers | developers/ |
Architecture, CLI guides, capabilities, command reference, turn protocol, HTTP API |
Home, Learning, and Resources follow the active workspace. Partners and Personalization belong to the account. Say that when a page could mix the two.
Settings in the product are Settings → Models & services. Configuration lives in data/user/settings/*.json. Process environment variables override only a few startup values. .env.example documents Podman host ports, not application settings.
Desktop data and logs:
| macOS | Windows | |
|---|---|---|
| Data | ~/Library/Application Support/Open DeepTutor/workspace/data |
%LOCALAPPDATA%\Open DeepTutor\workspace\data |
| Logs | ~/Library/Application Support/Open DeepTutor/logs/runtime.log |
%LOCALAPPDATA%\Open DeepTutor\logs\runtime.log |
Public download links use the unversioned files on the latest GitHub Release. Packaging and signing stay in apps/desktop/README.md.
The changelog page keeps the five newest user-visible releases. Older notes point at GitHub Releases and assets/releases/.
Reference that follows code
Hand-write a reference page when the prose is the guide. Generate or check it when the page would drift from code:
docs/scripts/generate_reference.pyrewrites the capability table and appends the HTTP route index fromdeeptutor/modules/manifests/*.jsonanddeeptutor/api/router_index.json. Run it after those sources change, then commit the generated Markdown.channels/schema.mdstays hand-written in both locales.check_docs.pyrequires every config field declared underdeeptutor/partners/channelsto appear in the matching section. Channel how-tos describe the platform steps and link here for fields.
Keep one primary job per page. Move content to the successor page before deleting the old one, and add a redirect.
Languages
English is the source locale at /. Simplified Chinese is the mirror at /zh-cn/, with the same relative path. Other README languages do not get Starlight locales.
Add both files together:
src/content/docs/learning-workspace/chat.md
src/content/docs/zh-cn/learning-workspace/chat.md
Starlight rewrites Markdown links between locales. It does not rewrite href values in MDX or Astro components. Chinese LinkCard, hero actions, and landing links must start with /zh-cn/.
Quote a frontmatter description that contains a colon.
Layout
src/content/docs/ English pages
src/content/docs/zh-cn/ Simplified Chinese pages
src/components/ HomeLanding, header, social icons
src/styles/ global.css, starlight.css, landing.css
public/screenshots/dev/ Product screenshots and their manifest
astro.config.mjs Locales, sidebar, redirects
src/content.config.ts Docs schema, including quadrant
scripts/check_docs.py Locale, quadrant, screenshot, channel, and link checks
scripts/generate_reference.py
When a slug moves, add both /old/ and /zh-cn/old/ to redirects in astro.config.mjs, pointing at the final slug. Prefer that final slug in new links. Do not rewrite a short fragment such as /partners/ across the tree; it also appears inside paths like data/partners/.
Legacy /explore/, /ecosystem/, /partners/, /tutorbot/, /cli/, and /contributing/ URLs already redirect. Leave the pre-existing /docs redirect conflict alone.
Screenshots
Use public/screenshots/dev/ and refer to files as /screenshots/dev/<name>.png. Images that also exist in assets/figs/web-dev/ must keep that manifest's SHA-256. Capture new shots from a local DeepTutor UI with synthetic demo data. Do not include personal history, credentials, or private paths.
Local development
Use Node.js 22, the version CI installs.
cd docs
npm ci
npm run dev
Build and preview:
npm run build
npm run preview
Set ASTRO_TELEMETRY_DISABLED=1 if the Astro telemetry directory cannot be created.
Checks
From the repository root, before opening a PR:
python3 docs/scripts/check_docs.py
cd docs && ASTRO_TELEMETRY_DISABLED=1 npm run build && cd ..
python3 docs/scripts/check_docs.py dist
check_docs.py checks that English and Chinese paths match, that every page except the splash homepage has quadrant, that copied screenshots match assets/figs/web-dev/manifest.json, and that channel schema pages name the source fields. dist also checks that internal links in the built HTML resolve. GitHub Actions runs the same steps in .github/workflows/docs.yml.
After changing a module manifest or router_index.json:
python3 docs/scripts/generate_reference.py