mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
updates
This commit is contained in:
committed by
openshift-cherrypick-robot
parent
5e43d1d2a0
commit
48613ca665
@@ -11,11 +11,13 @@
|
||||
#%
|
||||
#%OPTIONS ⚙️
|
||||
#% -v, --validate Validate the AsciiDoc source
|
||||
#% -l, --lint-topicmaps Lint topic-map YAML
|
||||
#% -p, --preview $DISTRO "$PRODUCT_NAME" $VERSION Use --preview to run with default options
|
||||
#% -h, --help Print this help
|
||||
#%
|
||||
#%EXAMPLES 🤔
|
||||
#% ./scripts/prow-smoke-test.sh --validate
|
||||
#% ./scripts/prow-smoke-test.sh --lint-topicmaps
|
||||
#% ./scripts/prow-smoke-test.sh --preview
|
||||
#% ./scripts/prow-smoke-test.sh --preview openshift-rosa
|
||||
#% ./scripts/prow-smoke-test.sh --preview openshift-pipelines "Red Hat OpenShift Pipelines" 1.14
|
||||
@@ -78,4 +80,9 @@ elif [[ "$TEST" == "--validate" || "$TEST" == "-v" ]]; then
|
||||
echo ""
|
||||
echo "🚧 Validating the docs..."
|
||||
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'scripts/check-asciidoctor-build.sh && python3 build_for_portal.py --distro '${DISTRO}' --product "'"${PRODUCT_NAME}"'" --version '${VERSION}' --no-upstream-fetch && python3 makeBuild.py'
|
||||
|
||||
elif [[ "$TEST" == "--lint-topicmaps" || "$TEST" == "-l" ]]; then
|
||||
echo ""
|
||||
echo "🚧 Linting the topicmap YAML..."
|
||||
$CONTAINER_ENGINE run --rm -it -v "$(pwd)":${CONTAINER_WORKDIR}:Z $CONTAINER_IMAGE sh -c 'yamllint _topic_maps'
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user