This repository powers the official 6MM documentation site.
6MM provides trading infrastructure for partners building embedded trading experiences, white-label exchanges, institutional liquidity workflows, developer integrations, and AI-native market access.
- Website: https://www.6mm.com
- Documentation: https://docs.6mm.com
- App: https://app.6mm.com
- Official GitHub: https://github.com/6mm-com
The documentation covers:
- Embedded trading and partner integration flows
- Trading Widget SDK and Agent SDK usage
- REST API and WebSocket integration
- Perpetual trading concepts, margin, risk, fees, and order behavior
- Brand assets, launch resources, support paths, and security reporting
fern/
docs.yml # English docs configuration, navigation, theme, redirects
docs/pages/ # English documentation pages
translations/<locale>/ # 19 non-English Fern-native overlays, including zh-CN
docs/assets/ # Logos, favicon, brand assets, and downloads
scripts/
generate-translations.mjs # Translation generation and manifest refresh
translation-text.mjs # Shared text extraction and placeholder protection
polish-core-translations.mjs # Deterministic terminology and quality fixes
check-translations.mjs # Locale, SEO, link, asset, and manifest validation
The production documentation source of truth is the fern/ directory.
Agent Java SDK documentation targets v0.3.0, with documentation verified against commit 54aa3c1. The Java
sidebar contains 17 pages covering installation, identity, assets, Contract and
Funding transfers, entry authentication, seconds trading, execution environments,
six perpetual queries, response fields, fiat reference rates and upgrades.
Sources: tagged README,
partner integration contract,
and response fields.
The public Trading Widget v1 runtime was checked at version 1.8.0 on
2026-10-10; frontend and backend SDK versions are independent.
English and Simplified Chinese are reviewed together. The other 18 locales use machine-assisted translation with code, links, identifiers and structure checks; these checks do not substitute for native-language editorial review. The English navigation defines the page list for all locales.
Use Node.js 22 to match the publishing workflow. Node.js 20 or newer is required for the pinned Fern CLI and the validation tools, including browser checks.
Install dependencies:
npm ciRun validation:
npm run checkRun checks from a Git checkout. JavaScript syntax validation automatically includes
tracked and unignored .js, .mjs, and .cjs files under fern/, scripts/, and tests/browser/;
it parses these files without executing their contents.
Start a local Fern preview:
npm run fern:devPreview routes:
English: http://127.0.0.1:3000/home
Simplified Chinese: http://127.0.0.1:3000/zh-CN/home
Turkish: http://127.0.0.1:3000/tr/home
Korean: http://127.0.0.1:3000/ko/home
Greek: http://127.0.0.1:3000/el/home
Use the Edit this page link on the documentation site or open a pull request directly in this repository.
Before submitting a pull request:
- Keep changes accurate, partner-facing, and implementation-focused.
- Update the English source first, then regenerate or intentionally update affected translations.
- Do not include credentials, private endpoints, unreleased secrets, customer data, or internal-only operational details.
- Run
npm run check.
See CONTRIBUTING.md for the full contribution guide.
fern/safari-hydration.js runs before interactive scripts on Safari only. It
handles the observed module-loading failure where Astro has a component but an
undefined renderer, leaving header controls inert. It loads the shared renderer
before starting component imports, avoiding the concurrent module evaluation
observed to leave cached exports undefined in Safari 26. Retrying that same cached
module alone is insufficient. Astro still handles props, slots and hydration;
Chromium and Firefox retain their original loading behavior and register no hooks.
As a fallback after page load or navigation, the guard retries affected islands through Astro's loader. If a header island remains broken, it reloads the current URL at most once per five minutes per tab. A subsequent failure (or unavailable session storage) shows a native retry button instead of looping. Offline and hidden tabs do not automatically reload. The reload preserves the URL, query and fragment, but can reset in-memory page or support-widget state; successful island retries avoid it.
Run npm run safari:check for loading-order, recovery and isolation regression tests. When
upgrading Fern, also verify navigation, language switching, themes and history in
Safari and Chrome. This guards a hosted-renderer failure; it does not patch
WebKit's module loader or Fern's generated bundles.
The interface localization bridge preserves incoming server-rendered labels and Fern's hydration strategies during language changes. It updates labels only after island readiness and a post-render task. Within React-owned islands, read-only React DOM binding markers also keep deferred Suspense content untouched until React adopts each target. Only waiting targets are retried; disconnected nodes are discarded. Verify these markers against the hosted renderer after Fern/React upgrades. Do not normalize incoming labels to English.
The browser regression suite runs the checkout's configured custom scripts and
CSS in Chromium and WebKit. Scripts follow their configured loading phases,
preserving declaration order within each phase; Fern's parser, hydration and
network timing are not reproduced. It covers all 20 locale routes, query/section
preservation, theme synchronization, mobile keyboard focus, nested hydration and
customer-support loading/retry behavior. Fern routing/theme state and the external
support SDK are simulated; the suite makes no production-service requests.
It does not test Fern's deployed renderer or replace native Safari/Chrome acceptance
testing after platform upgrades.
The suite also checks the Safari guard with native custom elements, dynamic module
imports and a renderer paused at top-level await. Its Astro island API is simulated;
it verifies loading order and Chrome isolation rather than reproducing Fern's bundles.
Browser checks have a separate, pinned development dependency installation.
After the root npm ci, set them up and run them with:
npm ci --prefix tests/browser --ignore-scripts
npm --prefix tests/browser run install:browsers
npm run browser:checkOn Linux, append -- --with-deps to the browser installation command to install
the required system packages. See Playwright's CI setup.
The regular npm run check remains available without downloading browsers.
The Docs checks workflow runs both documentation and browser checks for pull
requests and pushes to main. It shares the validation action
with the publication workflow. Documentation checks run first so a failure stops
the job before browser installation. CI installs Chromium Headless Shell and WebKit.
fern/support-widget.js loads the SaaS SDK from https://widget.chatvow.com/widget/widget.js using the 6MM tenant's public data-app-key. This is a public tenant identifier, not a signing secret. If the key changes, update the loader and its assertion in scripts/check-widget-sync.mjs together.
The tenant's website allowlist must include https://docs.6mm.com and, when used, the fixed Fern host https://6mm.docs.buildwithfern.com. Other preview domains are not implicitly allowed.
The documentation site uses anonymous visitor access. Never embed identity-signing secrets or administrator passwords. The loader preserves bidirectional language and light/dark theme synchronization, with English as the fallback for unsupported widget languages.
The production site is hosted by Fern.
Configured domains:
6mm.docs.buildwithfern.com
docs.6mm.com
Publish with:
npm run fern:publishThis command runs the full npm run check suite through its npm pre-task and
publishes only if validation succeeds. Run it through npm, rather than invoking
fern generate --docs directly. Extra arguments go to Fern, not to validation.
Alternatively, run the Publish docs GitHub Actions workflow on main.
It runs npm run check before installing browser dependencies, then runs the
browser regression suite. A failure in either check stops publication. After both
pass, it invokes the installed Fern CLI directly so validation runs only once.
Validation and publication use the repository's FERN_TOKEN secret, which must
belong to the configured Fern organization. Run npm run browser:check before a
local publication as well.
DNS management is separate from documentation publishing; a normal content or script update does not require DNS changes.
Please do not report vulnerabilities through public GitHub issues.
See SECURITY.md for the private reporting path.
Copyright (c) 2026 6MM. All rights reserved.
This repository is public for documentation collaboration, review, and issue tracking. It does not grant an open source or Creative Commons license for the documentation, downloads, or brand materials.
The Prediction section adds 17 pages across all 20 configured languages.
English and Simplified Chinese are authored together; Traditional Chinese is converted from the Chinese draft, and the other 17 locales use
machine-assisted translation and need native-language editorial review before release.
Review the business-rule checklist in docs/prediction-content-review.md before publication.
npm ci
npm run check
npm run preview:predictionOpen http://127.0.0.1:3010/zh-CN/prediction/overview (Chinese) or
http://127.0.0.1:3010/prediction/overview (English), then use the existing language menu.
The preview runs the normal Fern renderer with all configured languages.
Ports default to 3010/3011; use npm run preview:prediction -- --port=3012 --backend-port=3013
if needed. Nothing is published by this command.
The old Edge translation auth endpoint returned HTTP 404. The generator now defaults
to the public Google dictionary translation endpoint, with request throttling,
bounded retries, and protected-token validation. This unofficial endpoint may change;
DOCS_TRANSLATION_PROVIDER=edge retains the previous provider for environments where it works.
Existing manifest hashes still control incremental generation; do not refresh them to hide
missing translations. The full npm run check validates all 20 locales.
The customer-support section contains 18 tenant-facing pages covering the console, knowledge-grounded AI replies, multilingual translation, website integration, billing, and MCP authorization and tool calls. The homepage and Solutions overview provide entry cards. The console is at https://admin.chatvow.com/admin/. It supplies https://admin.chatvow.com/api/v1/mcp?profile=workflow for MCP clients.
English and Simplified Chinese are authored together; the other 18 documentation locales use the existing machine-assisted translation workflow and structural checks. API identifiers and JSON examples remain unchanged. Machine translation is not a substitute for native-language editorial review. See docs/customer-support-content-review.md for the verification boundary.