Skip to content

docs: prediction-market documentation (en/ru/zh-CN) - #157

Merged
On1x merged 5 commits into
masterfrom
docs-pm
Aug 20, 2026
Merged

docs: prediction-market documentation (en/ru/zh-CN)#157
On1x merged 5 commits into
masterfrom
docs-pm

Conversation

@On1x

@On1x On1x commented Aug 19, 2026

Copy link
Copy Markdown
Member

Brings the prediction-market documentation from the pm branch to master so that docs.viz.cx / GitHub Pages can publish it. The docs site is built from master only, so today every /prediction-markets/… URL 404s even though the pages exist on pm.

No node code. The diff is documentation plus the two npm manifests needed to build it:

  • docs/** (39 files) — English locale (repo root is the en-US locale) + docs/.vitepress/config.mts sidebar entries
  • @l10n/** (68 files) — ru and zh-CN translations, laid out into docs/ru and docs/zh-CN by the existing prebuildscripts/sync-l10n.mjs hook
  • package.json + package-lock.json — add vitepress-plugin-mermaid and mermaid, which docs/.vitepress/config.mts imports (withMermaid) and the docs use for diagrams. Without them the docs build fails.

Zero files under libraries/, plugins/, programs/, tests/, CMakeLists.txt, thirdparty/ or .github/ — so the built binary and the vizblockchain/vizd:latest image are unaffected, and HF14 consensus code stays on pm.

Verification

npm run build on this branch (i.e. on top of master, not pm) completes and renders all three locales:

locale guides PM pages total
en 17 25
ru 17 23
zh-CN 17 23

(en has two extra internal design notes — early-exit-deferred-claim, parlay-spec — which are intentionally English-only and not in the sidebar.)

The 17 role/feature guides are newly translated into Chinese in this PR, bringing zh-CN to parity with the rest of its coverage. Structural parity against the English sources was checked mechanically per file (heading levels, relative links, table rows, inline-code tokens) and each locale's rendered <h1> was confirmed to be in its own language.

On1x added 5 commits August 19, 2026 10:43
…/LP fixes)

Bring the docs-only PR for master up to date with the pm-branch docs,
which now carry the steemit#678/steemit#681 documentation:

- settlement-work-bounds.md (new, en-only design note): per-block work
  bounds of PM settlement, GC, void refund, batch-queue and ban sweeps.
- specification.md (en/ru/zh-CN): liquidity_fee_earned is a post-hoc
  counter written in settle_liquidity, not a subtraction in the fee-pool
  formula; early-exit LPs earn no commission; void markets earn zero bonus.
- guides/active-lp.md (en/ru/zh-CN): early exit = principal only, void =
  zero income, pm_min_liquidity floor applies to top-ups.
- guides/lazy-pool.md: FIFO withdraw queue is drained per block; the §9
  cron section shares the row budget.

No node code. Docs tree identical to pm. Docs build verified (26 PM pages).
…ath, deferred-claim purge + phase-1/5 loud signals)
@On1x
On1x merged commit f99f2b4 into master Aug 20, 2026
2 checks passed
On1x added a commit that referenced this pull request Aug 20, 2026
Resolve the 6 conflicting prediction-markets docs (settlement-work-bounds.md,
specification.md in en/ru/zh-CN) in favor of pm, which carries the newer
attack-vector sections (c7ad506) on top of the same base. This clears the
merge conflict that was blocking pull_request CI on PR #124.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant