@@ -2,26 +2,14 @@ name: Generate docs
22permissions :
33 contents : read
44
5- # Builds the Doxygen docs and uploads them as a workflow artifact (without
6- # publishing). Two roles:
7- #
8- # 1. Dry-run on every PR that touches C++ code (or other Doxygen inputs) so
9- # docs breakage is caught before merge. The artifact is attached to the
10- # workflow run so reviewers can download a preview.
11- # 2. Reusable workflow consumed by publish-docs.yml: builds the docs, prints
12- # the resolved version, and uploads the docs/doxygen/html/ directory as an
13- # artifact for a downstream publish job to consume. Avoids double-building
14- # the docs.
15- #
16- # Artifact layout: actions/upload-artifact@v4+ uses the longest common path of
17- # all uploaded files as the artifact root. With `path: docs/doxygen/html/`, the
18- # artifact contains the *contents* of that directory at the artifact root
19- # (index.html, favicon.ico, …) -- NOT nested under docs/doxygen/html/. The
20- # `html/` prefix that publish-docs.yml relies on comes from the *download*
21- # step's `path: html` parameter, not from the artifact itself. The
22- # "Re-download artifact" + "Inspect downloaded artifact" steps below prove
23- # this end-to-end on every run by re-downloading with `path: html` and
24- # asserting `html/index.html` is present.
5+ # Generates Doxygen docs and uploads them as a workflow artifact.
6+
7+ # This workflow is used to validate documentation before merge, for example catching
8+ # things like broken @ref tags, missing @param tags, etc.
9+
10+ # The artifact is attached to the workflow run so reviewers can download a preview,
11+ # but also to verify the documentation artifact is valid for subsequent release runs
12+ # that will publish them to the LiveKit docs web page: https://docs.livekit.io/reference/client-sdk-cpp/
2513on :
2614 pull_request :
2715 branches : ["main"]
4129 required : false
4230 type : string
4331 upload_artifact :
44- description : ' Upload the built docs/doxygen/html/ tree as a workflow artifact'
32+ description : ' Upload the generated docs folder as a workflow artifact'
4533 required : false
4634 type : boolean
4735 default : true
5139 type : string
5240 default : livekit-cpp-docs
5341 artifact_retention_days :
54- description : ' Retention (days) for the uploaded docs artifact. Default tuned for PR-preview use. '
42+ description : ' Retention (days) for the uploaded docs artifact'
5543 required : false
5644 type : number
5745 default : 7
0 commit comments