Skip to content

Commit

Permalink
Add support for docs-CI
Browse files Browse the repository at this point in the history
Related to: pulp/pulp-docs#31

[noissue]
  • Loading branch information
pedro-psb committed Apr 15, 2024
1 parent 6f9e5f9 commit 9bd0aa9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-326-ge5addc7
2021.08.26-327-g520b576
8 changes: 8 additions & 0 deletions .github/workflows/scripts/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ if [[ "$TEST" = "docs" ]]; then
if [[ "$GITHUB_WORKFLOW" == "Ansible CI" ]]; then
towncrier build --yes --version 4.0.0.ci
fi
# Unified Docs Build
pulp-docs build
# Legacy Docs Build
cd docs
make PULP_URL="$PULP_URL" diagrams html
Expand All @@ -43,6 +45,12 @@ if [[ "$TEST" = "docs" ]]; then
exit
fi

if [[ "$TEST" = "new_docs" ]]; then
pip install --user git+https://github.com/pulp/pulp-docs
pulp-docs build
exit
fi

REPORTED_STATUS="$(pulp status)"

echo "machine pulp
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
env:
- TEST: pulp
- TEST: docs
- TEST: new_docs
- TEST: azure
- TEST: s3
- TEST: lowerbounds
Expand Down
1 change: 1 addition & 0 deletions CHANGES/+new-docs-ci.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

3 changes: 3 additions & 0 deletions doc_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ sphinxcontrib-jquery
sphinxcontrib-openapi
mistune<4.0.0
Jinja2<3.2

# Unified docs
pulp-docs @ git+https://github.com/pulp/pulp-docs@main
# Extra requirements
2 changes: 1 addition & 1 deletion docs/template_gitref
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2021.08.26-326-ge5addc7
2021.08.26-327-g520b576
2 changes: 1 addition & 1 deletion template_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,5 @@ test_reroute: true
test_s3: true
use_issue_template: true
use_legacy_docs: true
use_unified_docs: false
use_unified_docs: true

0 comments on commit 9bd0aa9

Please sign in to comment.