Page MenuHomePhabricator

Set up publish-docs pipeline job
Open, MediumPublic

Description

  • Define new variant derived from dev-python for building the docs in blubber.yaml
  • Add a stage to the existing publish pipeline in config.yaml to publish the documentation via a downstream job

Example config.yaml:

stages:
  - name: publish-docs
    build: documentation
    run: true
    copy:
      - source: /srv/app/build/docs/groovydoc
        destination: docs
        archive: true
        trigger:
          name: publish-artifact-to-doc-wikimedia-org
          parameters:
            ARTIFACT_URL: '${.artifactURLs}'
            WMF_CI_PUB_DEST: 'my/project/doc/root'

(from https://gerrit.wikimedia.org/r/c/integration/config/+/792736/)

Event Timeline

Slst2020 triaged this task as Medium priority.May 18 2022, 5:37 AM
Slst2020 created this task.
Slst2020 moved this task from Backlog to Groomed/Ready on the Toolhub board.
Slst2020 changed the task status from Open to In Progress.Jun 7 2022, 12:19 PM
Slst2020 updated the task description. (Show Details)

Change 803510 had a related patch set uploaded (by Slavina Stefanova; author: Slavina Stefanova):

[wikimedia/toolhub@main] WIP ci: Publish docs on doc.wikimedia.org

https://gerrit.wikimedia.org/r/803510

Slst2020 changed the task status from In Progress to Open.Aug 26 2022, 6:31 AM

In a project's .gitlab-ci.yml, it is now possible to publish documentation and test coverage results to doc.wikimedia.org using docpub.

You can find usage examples in the README and the scap repo.

If you're interested in using docpub in your new GitLab projects and would like a hand with it, please feel free to give me a shout!

When you're ready to publish your docs/coverage with docpub, your project members will need to be added to the docpub project in order for you to be able to trigger the downstream pipeline there.

As part of using docpub in your project, please reach out to me so I can add you. Other RelEng members can also help with this in case I'm not available.

We haven't switched from Gerrit to GitLab yet, but when we do this is probably how we will need to publish docs. I think we are soft blocked on T334419: Set up translatewiki.net exports to push (and merge) to Wikimedia GitLab for the switch.