Skip to content

Documentation site - Composable for Node.js (mkdocs-material, engine theme) + CI workflow - #89

Merged
acn-ericlaw merged 1 commit into
mainfrom
feature/docs-site
Aug 24, 2026
Merged

acn-ericlaw merged 1 commit into
mainfrom
feature/docs-site

Conversation

@acn-ericlaw

Copy link
Copy Markdown
Contributor

What

The P4 documentation site for the Node.js wrapper, plus the repo's fresh CI workflow:

  • mkdocs-material site "Composable for Node.js" on the exact theme of the
    mercury-composable engine repo (deep purple/cyan palettes with auto/light/dark,
    navigation tabs, mermaid diagrams, strict validation, the same css/extra.css) —
    publishing to https://accenture.github.io/mercury-nodejs/
  • 13 pages in the engine's house structure (Overview → hands-on → reference → AI):
    • Home — the three-layer theme reference (Platform Core → Event Script →
      Knowledge Graph) and where a Node.js function joins it
    • Orientation — getting started; the rationale chapter (why Event-over-HTTP
      wrappers; why node has one handler style — everything async, never block
      the event loop — where Python needs two)
    • Foundations — the design chapter (scope fence, envelope contract, why the bus
      is a Mailbox pipeline and not an EventEmitter, the referenced-timer process
      lifecycle)
    • Write functions — function patterns (runWithTrace idioms), config/logging/
      actuators, testing with the built-in node --test harness
    • Join the engines — Event Script flows and MiniGraph knowledge graphs
      (yaml.event.over.http; notes the graph.task declarative-target floor of
      engine v4.11.11)
    • AI — a one-page AI agent guide ("generate a correct function from this page
      alone") plus llms.txt as the machine map
    • Reference — configuration keys and the complete HTTP surface
  • .github/workflows/ci.yml — the rebooted repo had no CI: the quality gate
    (npm ci && npm test on the node 20 floor — lint, typecheck, build, 51 tests) on
    every push/PR, a strict docs build check, and mkdocs gh-deploy on main pushes
  • CHANGELOG entry, README documentation links, .gitignore +site/

Why

P4 of the polyglot initiative — documentation for AI and Human. Every page follows the
two-audience doctrine: storytelling with why-before-how for humans, and token-efficient
machine-greppable content for AI agents. Using the engine repo's theme verbatim keeps a
polyglot installation's documentation visually and structurally uniform across
accenture.github.io/mercury-composable, /mercury-python and /mercury-nodejs.

Gates: npm test 51/51 (lint + typecheck + build + tests), mkdocs build --strict
exit 0.

Post-merge: enable GitHub Pages (branch gh-pages) after the first deploy run, and
spot-check mermaid rendering on the live site.

🤖 Generated with Claude Code

Co-Authored-By: Claude Code noreply@anthropic.com

…ngine theme)

The P4 docs chapter for the node wrapper, structurally twin to the
python site: three-layer theme reference, rationale + design (incl. the
anycast-vs-EventEmitter rationale), function-writing patterns (the
never-block-the-loop rule), configuration/logging/actuators, testing,
the Event Script and Knowledge Graph join chapters, a one-page AI agent
guide + llms.txt, and configuration/HTTP-surface references. Same
Material theme and strict validation as the engine site. New ci.yml runs
tsc + node --test plus the strict docs build and publishes gh-pages on
main - closing the wrapper-CI gap.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@acn-ericlaw
acn-ericlaw merged commit 5ccf355 into main Aug 24, 2026
5 checks passed
@acn-ericlaw
acn-ericlaw deleted the feature/docs-site branch August 24, 2026 16:34
acn-ericlaw added a commit that referenced this pull request Nov 27, 2026
…f mercury-python #89; #150 merged

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UNwVNhbvhqbdRRLBSbSWZ3
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