Skip to content

Repository files navigation

Open Science Wiki

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.

Content structure

  • docs/ contains the English documentation source.
  • i18n/<locale>/docusaurus-plugin-content-docs/current/ contains translated documentation with the same file structure as docs/.
  • Each _category_.json file sets a sidebar section label and description.
  • static/img/open-science/ contains screenshots captured from a running Open Science installation.
  • src/pages/ and src/css/ contain the home page and AIPOCH theme changes.
  • i18n.config.mjs defines the default language and every published locale.
  • scripts/check-english.mjs keeps the README and default source content in English.
  • scripts/check-i18n.mjs checks document parity and required interface translations.

Run locally

Use Node.js 20 or later.

npm install
npm start

The 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:zh

Test all published languages before releasing:

npm run check
npm run build
npm run serve

Edit documentation

Add 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:

![Describe the visible application state](/img/open-science/example.png)

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 another language

  1. Add the Docusaurus locale code, label, HTML language, and direction to i18n.config.mjs.
  2. Run npm run write-translations -- --locale <locale> to create the shared interface files.
  3. Copy docs/ to i18n/<locale>/docusaurus-plugin-content-docs/current/ and keep every relative path unchanged.
  4. Translate the copied documents and interface message values.
  5. Build the site and inspect the new locale locally before publishing.

Related repositories

About

An open knowledge base for open science

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages