Files

NocoBase Documentation

--lang

yarn docs dev --lang=en
yarn docs build --lang=en
yarn docs preview --lang=en
yarn docs build --lang=all
yarn docs build --lang=en --check-dead-links

DOCS_SITE_ORIGIN

The site's public origin defaults to https://nocode.docs.nocobase.com. It is used for canonical links, hreflang alternates, sitemap.xml, robots.txt, JSON-LD and the documentation assistant. Set DOCS_SITE_ORIGIN at build time to serve the site from another origin:

DOCS_SITE_ORIGIN=https://example.com yarn docs build --lang=en

Absolute links to https://docs.nocobase.com/... in the markdown content are rewritten to this origin at build time (plugins/pluginSiteOriginLinks.ts), so the content itself does not need to change.

Documentation AI assistant

The v2 assistant sends questions and follow-ups to POST /v2/answers/stream on the Rust service. The server selects the v2 documentation corpus. The UI renders Markdown replies and links to sources on the v2 documentation site.

For local Chinese development, start the backend using its local sites configuration (see sites.versions.local.yml and DOCS_AI_V2_DOCS_DIR in docs-ai-service), then run the following in this documentation directory:

yarn dev --lang cn --port 3000

Open http://localhost:3000/cn/. The local frontend calls http://127.0.0.1:3100 by default. Set DOCS_AI_API_URL when starting or building Rspress to use a different backend base URL.

eject rspress components

Customize the theme by ejecting the components. After ejecting, you can find the components in ./src/components and modify them as you like.

yarn eject <ComponentName>

demo preview

use @docs/* to import the demo components, which will be replaced with the actual path during build.

import { HelloModel } from '@docs/cn/flow-engine/_demos/HelloModel';

Then use the demo component in the markdown file:

```tsx file="./_demos/flow-model-renderer.tsx" preview

```