Skip to content
This repository was archived by the owner on Jun 26, 2024. It is now read-only.

Conversation

pmacik
Copy link
Contributor

@pmacik pmacik commented May 17, 2022

Signed-off-by: Pavel Macík [email protected]

Follows-up to #1144

Changes

To enable multi-version site generation, antora configuration needs to have the version branches available. Currently, the antora is setup to use the local repo only. However, the CI job to generate docs on merge-to-master only fetches the master branch for it's local repo from which the site is generated, and so it misses the other "version" branches resulting in missing the version toggle introduced in #1144.

This PR:

  • Adds antora configuration to use github as a remote source that can be used by the CI ti properly generate multi-version docs.
  • Keeps local files as a default source for docs so that a developer's experience is intact

To generate site using github repo as a remote source:

make site SITE_SOURCE=github

Note:
The default make site is equivalent to:

make site SITE_SOURCE=local

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Docs
    included if any changes are user facing
  • Tests
    included if any functionality added or changed. For bugfixes please include tests that can catch regressions
  • All acceptance test scenarios included in the PR which verifies a bugfix or a requested feature reported by a non-member are tagged with @external-feedback tag.
  • Follows the commit message standard

@pmacik pmacik added kind/documentation Improvements or additions to documentation kind/enhancement New feature or request ci CI related issues labels May 17, 2022
@openshift-ci openshift-ci bot requested review from baijum and dperaza4dustbit May 17, 2022 08:56
@pmacik
Copy link
Contributor Author

pmacik commented May 17, 2022

/retest

@codecov
Copy link

codecov bot commented May 17, 2022

Codecov Report

Merging #1145 (b61c248) into master (6a01fb7) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1145   +/-   ##
=======================================
  Coverage   57.84%   57.84%           
=======================================
  Files          31       31           
  Lines        2697     2697           
=======================================
  Hits         1560     1560           
  Misses        976      976           
  Partials      161      161           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a01fb7...b61c248. Read the comment docs.

@pmacik pmacik changed the title Enable site generation using GitHub sources as well as local files. Enable site generation using GitHub sources to enable multi-version docs in gh-pages May 17, 2022
@dperaza4dustbit
Copy link
Contributor

/lgtm

@dperaza4dustbit
Copy link
Contributor

/approve

@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 17, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dperaza4dustbit

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 61b68c9 into redhat-developer:master May 17, 2022
@pmacik pmacik deleted the site-source branch August 12, 2022 15:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved ci CI related issues kind/documentation Improvements or additions to documentation kind/enhancement New feature or request lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants