Documentation for Okkey, a self-hosted password manager. The site is Docusaurus 3. The default locale is Russian. English is a full translation of the pages. The published docs line is v1.0, which tracks the current Okkey release 1.0.0-beta.3.
The pages describe what a person sees when they install and use Okkey. There are two plans: Free and Enterprise. A person who installs Okkey gets Free. Enterprise is set up by an Okkey employee.
Russian text lives in docs/, versioned_docs/, and i18n/ru/. Everything else in this repository is English.
Node.js 20 or newer (CI uses 22).
npm ci
npm startThe site opens at http://localhost:3000. The English locale is http://localhost:3000/en/.
npm run build
npm run servenpm run build builds both locales and fails on a broken link or anchor.
Docs versions follow Okkey releases. One docs version covers one minor line. Labels are v1.0, v1.1, v2.0, and so on.
Pre-releases and patches do not create a new docs version. They update the same minor version in place:
1.0.0-beta.1,1.0.0-beta.2,1.0.0-beta.3,1.0.0, and1.0.1all live inv1.0.- A new docs version is cut only when the minor or major number changes.
1.1.0becomesv1.1.2.0.0becomesv2.0.
The published site is only the snapshots in versioned_docs/. The working copy in docs/ is not served (includeCurrentVersion: false). The default version is v1.0 (lastVersion). It currently tracks Okkey 1.0.0-beta.3. The version dropdown label is v1.0. A banner on each page names the current release in that line.
- Working copy, the only place you edit:
docs/(Russian) andi18n/en/docusaurus-plugin-content-docs/current/(English). - Published copy of the line:
versioned_docs/version-v1.0/andi18n/en/docusaurus-plugin-content-docs/version-v1.0/. Do not edit these by hand. - English sidebar category labels and the version label:
i18n/en/docusaurus-plugin-content-docs/version-v1.0.json.
After an edit in the working copy, copy it into the published line:
npm run docs:syncnpm run build runs npm run docs:check first and fails if version-v1.0 is not an exact copy of the working copy. Do not run docs:version for a beta or a patch.
When a page describes behaviour that differs from an earlier beta of the same line, say so on the page: «с 1.0.0-beta.3» in Russian, "since 1.0.0-beta.3" in English.
-
Update the Russian pages in
docs/and the English pages ini18n/en/docusaurus-plugin-content-docs/current/. Every page needsplansin the frontmatter. PointVERSIONinscripts/sync-docs-version.mjsat the new line. -
In
docusaurus.config.ts, setincludeCurrentVersion: truefor the command and removeversions.<new name>if that version does not exist yet. Otherwise the CLI will not start: withincludeCurrentVersion: falseand an emptyversions.json, the plugin treats the site as having no versions. -
Cut the snapshot. The name is the docs label, not the full release tag:
npm run docusaurus docs:version v1.1
The command copies
docs/toversioned_docs/version-v1.1/and the current English translations toi18n/en/docusaurus-plugin-content-docs/version-v1.1/. -
Set
includeCurrentVersion: falseagain. If the new version should be the default, setlastVersion: 'v1.1'and addlabel: 'v1.1'underversions. -
Extract UI strings and translate the sidebar and navbar:
npm run docusaurus write-translations -- --locale en
In
i18n/en/docusaurus-plugin-content-docs/version-v1.1.json, setversion.labeltov1.1and replace the Russianmessagevalues for categories with English. The navbar label is ini18n/en/docusaurus-theme-classic/navbar.json. -
Run
npm run build.
Folders follow the internal docs sections that matter to people who install and use Okkey. Russian and English pages have the same file names, so the URL is the same in both locales: /workspace/roles and /en/workspace/roles.
| Folder | Sidebar (ru / en) |
|---|---|
intro.md |
О проекте / About |
getting-started/ |
Начало работы / Getting started |
install/ |
Установка self-hosted / Self-hosted install |
admin/ |
Администрирование / Administration |
plans.md |
Тарифы / Plans |
workspace/ |
Пространство / Workspace: settings, members, roles, profiles, vaults, plan |
items/ |
Записи / Items, with lists and folders |
capsules.md |
Капсулы / Capsules |
tools/ |
Инструменты / Tools: generator, import, export |
monitoring.md |
Мониторинг / Monitoring (Enterprise) |
account/ |
Аккаунт и устройства / Account and devices: profile, two-factor, recovery, devices, unlock |
apps/ |
Приложения / Apps |
security/ |
Безопасность / Security |
Category labels are Russian in _category_.json. English labels are in i18n/en/docusaurus-plugin-content-docs/version-v1.0.json.
Links between pages are file links with .md, for example [Роли](../workspace/roles.md). The build fails on a broken link or anchor.
When a page moves, add the old path to redirects of @docusaurus/plugin-client-redirects in docusaurus.config.ts. The same list covers both locales. The redirect keeps ?query and #hash.
When a section of a page moves to its own page, keep the old anchor working with HashRedirect (src/components/HashRedirect.tsx) on the page that stays. Example: /settings/workspace#роли goes to /workspace/ and then to /workspace/roles. The Okkey web app links to these URLs (packages/ui/src/lib/public-docs-url.ts in okkeyapp/okkey). Keep them working.
src/theme/DocItem/Layout is a theme swizzle. On every page it renders PlanBadges from frontmatter. These docs cover self-hosted only. There are two plans: free and enterprise. A person who installs Okkey gets Free. Enterprise is set up by an Okkey employee.
plans: [free, enterprise]A page that describes an Enterprise-only capability:
plans: [enterprise]Missing frontmatter, a non-array, or a value other than free / enterprise shows a red TODO banner. The build still succeeds.
Feature names follow the product UI in Russian and English. The site URL is https://docs.okkey.io (url in docusaurus.config.ts, static/CNAME). If the docs move to another domain, change both.