Skip to content

feat(account): safely publish enabled Markdown add-on pages without MDX execution - #112

Merged
m1nsook merged 7 commits into
mainfrom
feat/account-addons-content-routes
Nov 8, 2026
Merged

m1nsook merged 7 commits into
mainfrom
feat/account-addons-content-routes

Conversation

@m1nsook

@m1nsook m1nsook commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Add-on content rendering milestone

  • Generate an Account Mode-only dynamic public route for enabled, reviewed Markdown add-ons: /docs/addons/<publisher.addon>/ (or the configured root docs base) and nested pages.
  • Route reads the private install journal through the server-only signed manager; it checks current approval, catalog freshness, installed version digest and enablement on every request. Disabled, revoked, stale or corrupt releases fail closed to 404.
  • Render with NextGuide's existing safe React Markdown subset, which escapes raw HTML and sanitizes URLs; never compile third-party input as MDX, never dynamically import an add-on, and never expose filesystem paths.
  • Link enabled content from the Account Mode Add-ons dashboard. Preserve the current one-package architecture and untouched Developer Mode.
  • Add tests for generated TS/JS routes, Next.js source generation, non-executable Markdown HTML and URL sanitization, and full packaged-consumer builds.
  • Update owner documentation to explain the new route and remaining sidebar/search limitations.

No executable v2 add-ons or private ngapi deployment changes. Site owners still need compatible signed releases and a refreshed trusted registry; current alpha compatibility gating remains enforced.

@github-actions github-actions Bot added area: account-mode Browser-managed Account Mode area: dependencies Dependencies or lockfile updates area: tests Local tests and release acceptance status: triage Awaiting initial review type: documentation Missing, confusing or outdated documentation labels Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: account-mode Browser-managed Account Mode area: dependencies Dependencies or lockfile updates area: tests Local tests and release acceptance status: triage Awaiting initial review type: documentation Missing, confusing or outdated documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant