This repository contains the official operating and reproducibility documentation for AIPOCH Open Science. The site uses Docusaurus, and AIPOCH.com can sync the current Wiki pages and product screenshots from this repository.
English is the default language and is served from /. Simplified Chinese is available at /zh-Hans/. The locale registry and translation layout allow maintainers to add more languages without changing existing document URLs.
docs/contains the English documentation source.i18n/<locale>/docusaurus-plugin-content-docs/current/contains translated documentation with the same file structure asdocs/.- Each
_category_.jsonfile sets a sidebar section label and description. static/img/open-science/contains screenshots captured from a running Open Science installation.src/pages/andsrc/css/contain the home page and AIPOCH theme changes.i18n.config.mjsdefines the default language and every published locale.scripts/check-english.mjskeeps the README and default source content in English.scripts/check-i18n.mjschecks document parity and required interface translations.
Use Node.js 20 or later.
npm install
npm startThe development server opens http://localhost:3000. Use a locale-specific development command when you only need one language:
npm run start:en
npm run start:zhTest all published languages before releasing:
npm run check
npm run build
npm run serveAdd or update a Markdown file under docs/, then set its sidebar_position in front matter. Keep sibling positions unique. Store product captures in static/img/open-science/ and reference them with a public path:
Run npm run check before committing. The production build runs the same checks and stops when default source content contains Chinese text, a translated document is missing, or a required interface translation is absent.
- Add the Docusaurus locale code, label, HTML language, and direction to
i18n.config.mjs. - Run
npm run write-translations -- --locale <locale>to create the shared interface files. - Copy
docs/toi18n/<locale>/docusaurus-plugin-content-docs/current/and keep every relative path unchanged. - Translate the copied documents and interface message values.
- Build the site and inspect the new locale locally before publishing.