Documentation jobs#
build-docs
#
Builds the developer documentation and uploads it as an artifact.
This job is skipped if neither the documentation nor the frontend codebase has changed. Its counterparts are
test-cat
for the catalogtest-api
for the APItest-ing
for the ingestion servernuxt-build
for the frontend
This job exports the
documentation
artifact.
Note
This job is treated as the proof of functionality for the publishing the documentation.
emit-docs
#
Downloads the documentation artifact and publishes it to an appropriate target.
For PRs, the target is a subdirectory under _preview/
of the docs site, e.g.
the docs for PR #420 will be published at
https://docs.openverse.org/_preview/420/. For commits to main
, the target is
the https://docs.openverse.org/ site itself.
Caution
This job only publishes developer documentation. The API documentation hosted at https://api.openverse.engineering/v1/ is provided by the API service itself.
This job is skipped if neither the documentation nor the frontend codebase has changed. It is also not executed on forks and for PRs made by Dependabot.
Documentation is only emitted if all the following conditions are met.
the event is one of the following
a
push
tomain
andthe repo is
WordPress/openverse
and not a fork
a PR and
the source is a branch of
WordPress/openverse
and not a forkthe author of the PR is not Dependabot
either the documentation or the frontend has changed (for Storybook)
all the primary tests (
test-cat
,test-ing
,test-api
,nuxt-build
) succeeded, implying that their changes are valid, or were skipped, implying that they have no changes.
A comment is also published linking to the generated preview, and any new or modified pages.
clean-gh-pages
#
This job is executed when a PR is closed (see the GitHub workflow). If a docs preview was generated, this job deletes the preview and pushes the removal commit to the associated branch.