Interactive docs game POC - #421
Draft
yuliiakachmaryk wants to merge 2 commits into
Draft
yuliiakachmaryk wants to merge 2 commits into
yuliiakachmaryk wants to merge 2 commits into
Conversation
Member
|
I like this but we really need it for RBAC. Also, I felt like it should mention there is also Redocly's log in system as an option (but those users get the signup/forgot password type emails from Redocly). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
POC: Interactive walkthrough ("game mode") for Realm docs
Pilot page:
reunite/organization/sso/add-idp· Stack: Realm 0.137, Markdoc, React · New dependencies: noneWhy
Long setup pages get skimmed, and skimming is how configuration goes wrong. Our investigation of support cases shows the SSO docs are where readers most often miss a section — almost always Team mapping — which comes back as "logged in but can't see the project" tickets and admin lockouts. The docs already answer this; the format doesn't make the reader stop there.
What the reader gets
?mode=gamedeep-links into it.Interaction kinds: tip (text/media only), quiz (single choice), golf (aim ← → and swing at the right hole), match (connect two shuffled columns with drawn wires). All keyboard-driven,
prefers-reduced-motionaware."Most skipped step" treatment (
highlight=true): one-time dim of the page, pulsing brand-blue border, badge, and the character holds up a sign. Used on Team mapping together with the match game — the reader connects IdP groups to Redocly teams before moving on.Pilot: the SSO quest (5 stops)
| Stop | Kind | Checks
-- | -- | -- | --
1 | Welcome | tip | —
2 | Gather what you need | quiz | SAML vs OIDC prerequisites
3 | Corporate or Guest? | quiz | Login type for partners
4 | The step everyone skips | match · highlight | IdP group → Redocly team
5 | Don't lock yourself out | golf | Test connection before Require SSO
How it's authored
Plain Markdoc, next to the section it belongs to; the Markdown page stays the single source of truth.
Per-page tweaks (title, CTA, labels, keyboard hints) go in front matter under
game:.How it's built
@theme/templates/DocsWithGame.tsxwraps the default Markdown template, applied todocs/realm/**viamarkdown.template. It activates only when the page's MarkdoctagListcontainsgameStep— other pages render unchanged.@theme/components/DocsGame/: store (useSyncExternalStore), tags, step card, launcher/HUD, character (SVG frames from Design, CSS motion), media.kinds/are pluggable: one component + oneregisterStepKind()line.--docs-game-*tokens; dark theme included.Known gaps
@redocly/theme/core/templates/Markdownimport and theimageSrcattribute resolver.Proposed next steps
requiresLogin, SCIM); add remaining character poses.Code lives in the marketing site repo under
@theme/components/DocsGame/(README = authoring guide); currently an uncommitted local change.Check yourself
Security