You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Publish the rendered ReliaBLE DocC catalog to a hosted, browsable URL (instead of — or in addition to — downloading a zip artifact from PR checks). Reviewers and library consumers should be able to open documentation in a browser without checking out a branch or unzipping a .doccarchive.
The audit report (docs/investigations/swift6-concurrency-audit-2026-05-13.md, Preventive Measures) called out DocC-in-CI as a drift guardrail; hosted docs were explicitly deferred as a follow-up.
README.md still has a placeholder: Getting Started [TODO DOC LINK: Add link once doc site is up].
DocC catalog: Sources/ReliaBLE/Documentation.docc/. swift-docc-plugin is already a package dependency.
Problem with artifacts-only
PR artifacts work for reviewers who know to download and unzip, but they are:
Ephemeral (retention-limited)
Not linkable from README.md, release notes, or issue comments
Awkward on mobile / for casual contributors
Separate from the "public documentation surface" consumers expect from an OSS library
Deliverable (decision needed)
Choose and implement a hosting strategy. At minimum:
Publish on merge to master (not necessarily on every PR — see options below).
Update README.md with a stable documentation URL once live.
Decide PR preview strategy — keep artifact upload for PRs, add per-PR preview deploys, or rely on local swift package generate-documentation only.
Hosting options (typical in OSS GitHub projects)
Option A — GitHub Pages via Actions (most common for Swift packages)
The pattern Apple documents for swift-docc-plugin: build with static-hosting flags, deploy HTML to GitHub Pages.
Option B — GitHub Pages preview deploys for PRs (optional add-on)
Use a workflow that deploys to a preview URL per PR (e.g. actions/deploy-pages with a preview environment, or Netlify/Cloudflare Pages deploy previews).
Pros: Reviewers click a link in the PR checks comment — no zip download
Cons: More workflow complexity; preview URL lifecycle / cleanup; may need a bot comment on each PR
Typical split: publish stable docs from master (Option A) + keep artifact or preview for PRs
Option C — Swift Package Index (zero-maintenance discovery)
Swift Package Index auto-builds and hosts documentation for many public Swift packages once indexed.
Pros: No hosting workflow to maintain; great discoverability in the Swift ecosystem
Cons: Not under our control (build schedule, availability badge, URL); does not replace a first-party link in README.md for all consumers
Typical use: complementary to Option A, not a substitute
Upload the --transform-for-static-hosting output as a static site.
Pros: Fast CDN, easy preview branches, custom domains
Cons: Extra service account/secrets; less conventional for small Swift libraries; another thing to pay attention to
Typical use: teams already on that stack, or needing private docs
Option E — Drop PR artifacts once hosted docs exist
Once Option A (and optionally B) is live, remove the ReliaBLE-docs.zip artifact upload from .github/workflows/ci.yml to simplify CI — or keep it as a fallback for offline preview.
Suggested default (for decision review)
For a library of this size, the usual OSS path is:
Option A — GitHub Pages published on every push to master via actions/deploy-pages
Goal
Publish the rendered ReliaBLE DocC catalog to a hosted, browsable URL (instead of — or in addition to — downloading a zip artifact from PR checks). Reviewers and library consumers should be able to open documentation in a browser without checking out a branch or unzipping a
.doccarchive.Context
ReliaBLE-docs.zipas a PR artifact for manual preview.docs/investigations/swift6-concurrency-audit-2026-05-13.md, Preventive Measures) called out DocC-in-CI as a drift guardrail; hosted docs were explicitly deferred as a follow-up.README.mdstill has a placeholder:Getting Started [TODO DOC LINK: Add link once doc site is up].Sources/ReliaBLE/Documentation.docc/.swift-docc-pluginis already a package dependency.Problem with artifacts-only
PR artifacts work for reviewers who know to download and unzip, but they are:
README.md, release notes, or issue commentsDeliverable (decision needed)
Choose and implement a hosting strategy. At minimum:
master(not necessarily on every PR — see options below).README.mdwith a stable documentation URL once live.swift package generate-documentationonly.Hosting options (typical in OSS GitHub projects)
Option A — GitHub Pages via Actions (most common for Swift packages)
The pattern Apple documents for
swift-docc-plugin: build with static-hosting flags, deploy HTML to GitHub Pages.https://five3apps.github.io/ReliaBLE/(project site; base path = repo name)actions/upload-pages-artifact+actions/deploy-pages(requires enabling GitHub Pages → "GitHub Actions" source in repo settings)peaceiris/actions-gh-pagespushing togh-pagesbranch/docsonmaster(simpler, but bloats main-branch history unless using a bot)swiftlang/*and community packages)References:
Option B — GitHub Pages preview deploys for PRs (optional add-on)
Use a workflow that deploys to a preview URL per PR (e.g.
actions/deploy-pageswith apreviewenvironment, or Netlify/Cloudflare Pages deploy previews).master(Option A) + keep artifact or preview for PRsOption C — Swift Package Index (zero-maintenance discovery)
Swift Package Index auto-builds and hosts documentation for many public Swift packages once indexed.
README.mdfor all consumersOption D — Third-party static host (Netlify / Cloudflare Pages / Vercel)
Upload the
--transform-for-static-hostingoutput as a static site.Option E — Drop PR artifacts once hosted docs exist
Once Option A (and optionally B) is live, remove the
ReliaBLE-docs.zipartifact upload from.github/workflows/ci.ymlto simplify CI — or keep it as a fallback for offline preview.Suggested default (for decision review)
For a library of this size, the usual OSS path is:
masterviaactions/deploy-pages--warnings-as-errors) — unchangedREADME.mdAcceptance criteria
README.mdmasterchanges (after DocC gate passes)References
docs/investigations/swift6-concurrency-audit-2026-05-13.md(Preventive Measures)README.mddocumentation placeholder