Skip to main content
Version: v2.6

Website guide

The website is maintained in apache/incubator-seata-website, on the docusaurus branch. Anyone can propose documentation changes through a PR.

Find the source​

Edit localized content under i18n/en/ and i18n/zh-cn/. Developer documentation is in each locale's docusaurus-plugin-content-docs/ directory:

  • current/developers/ supplies the Next version.
  • version-v2.6/developers/ supplies the v2.6 version currently served at /docs/.

Check docusaurus.config.js before assuming the default version. Files marked Placeholder. DO NOT DELETE. in docs/ or versioned_docs/ preserve document IDs; edit their localized counterparts. Do not edit generated build/ output.

For shared community guidance, keep the current and default-version translations aligned. Preserve older version documentation unless a correction specifically applies to it. Sidebar changes belong in sidebars.js and the appropriate versioned sidebar file.

Structure the page​

Start with the purpose and expected outcome. Use one page title, descriptive section headings, short paragraphs and lists for steps. Use relative Markdown links for documents so locale and version navigation remain intact.

Keep essential requirements visible. Put optional, lengthy email examples in clearly labelled expandable sections. Use language-labelled code fences, explain placeholders, and check every command before publishing it. Add alt text and license attribution for images where required.

Choose a structure that matches the reader's task:

  • Task guides: overview, prerequisites, ordered steps, verification and next steps.
  • Concepts: context, mechanism, diagrams and limitations.
  • References: purpose, grouped parameters or APIs, examples and related guides.

Use tabs for mutually exclusive platform instructions. Keep warnings outside collapsed content; reserve expandable sections for optional output or long examples. Preserve existing heading IDs when reorganizing a page, and keep command and configuration values intact during formatting changes.

Developer guides use a developer-guide wrapper for scoped typography, tables and expandable templates. Keep a blank line between JSX elements and Markdown content.

Build and preview​

Use a Node.js version supported by package.json and the repository lockfile.

npm ci
npm run lint
npm run build
npm run serve -- --port 3000

The build includes both locales. Preview the changed pages in English and Chinese, in the default and Next versions. Check a narrow mobile viewport as well as desktop: headings, tables, code blocks, links, keyboard focus and expandable sections should remain usable.

The repository lint script excludes localized docs. Also inspect the changed Markdown/MDX directly and resolve build warnings affecting those pages.

Review and publish​

Include changed page paths, screenshots where useful and validation results in the PR. Respect ASF branding and use compatible licenses for any third-party material.

A local build only produces preview files. After merge to docusaurus, the repository's deployment workflows publish the site. Check those workflows and the live pages before claiming a change is online. Release download links must point to approved, published artifacts; see the release guide.