2.2 KiB
Explicit public help publication
Application help remains authoritative in PlotLine/Help/Articles. This executable
uses the existing HelpService to export approved public articles with their exact
identifiers/slugs/navigation/search metadata and Markdown. It never connects to SQL
or a running application. Only referenced assets belong in the publication.
Run from an exact committed source checkout:
dotnet run --project Tools/PublicContent/PublicContent.csproj -- \
/absolute/PlotDirector /absolute/reviewed-approval.json /absolute/new-publication
sha256sum /absolute/new-publication/manifest.json
Approval contains sourceCommit (full current SHA), channel (Development or
Production), audience (public or application), unique version and articles (explicit canonical public help URLs).
Keep the approval outside the source checkout while generating it, avoiding a
self-referential commit. The checked-in production-approval.json is the historical
baseline approval. Never treat it as approval of later source changes or replace
it with an unreviewed glob. Production content must describe released capabilities;
Development packages cannot be selected by the Production consumer.
Commit source changes first. Export to a new directory, retain the approved manifest digest with release evidence, and transfer that artifact for consumption by PlotDirector.Website/Tools/consume_help.py. Full operator procedures are in that repository's Docs/Content.md. Publication and atomic content activation do not deploy or restart the application. Website renders from its local immutable publication; application contextual help keeps its current renderer and needs no website. Both products independently consume their audience-specific projection from the same source into their own content store, selected by HelpContent__Path, with manifest-driven hot reload and no restart.
Visibility is mandatory in source front matter. Public projection includes only public; application projection additionally retains administrator, which runtime protects with AdminOnly. Internal/unclassified content cannot enter a public artifact. Format 2 makes audience explicit; a URL allowlist never overrides visibility.