Skip to content

Commit

Permalink
Update reference doc updater (#15880)
Browse files Browse the repository at this point in the history
  • Loading branch information
craigbox authored Nov 7, 2024
1 parent 7e2788b commit bec1c82
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions scripts/grab_reference_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ handle_components() {
pushd "${REPO_NAME}" >/dev/null || exit
pushd "${COMP_PATH}" >/dev/null || exit

go build -o "${COMP_NAME}"
# don't include go 1.18+ version control information in binaries
# (we're just going to throw them away at the end of the function)
go build -buildvcs=false -o "${COMP_NAME}"
mkdir -p "${COMP_OUTPUT_DIR}/${COMP_NAME}"
mkdir -p "${COMP_OUTPUT_DIR_ZH}/${COMP_NAME}"
"./${COMP_NAME}" collateral -o "${COMP_OUTPUT_DIR}/${COMP_NAME}" --html_fragment_with_front_matter
Expand Down Expand Up @@ -190,8 +192,9 @@ handle_config_analysis_messages() {
}

# delete all the existing generated files so that any stale files are removed
find "${ROOTDIR}/content/en/docs/reference" -name '*.html' -type f -print0 | grep -v istio.operator.v1alpha1 | xargs -0 rm 2>/dev/null
find "${ROOTDIR}/content/zh/docs/reference" -name '*.html' -type f -print0 | xargs -0 rm 2>/dev/null
# (ignore istio.operator; that's no longer autogenerated)
find "${ROOTDIR}/content/en/docs/reference" -name '*.html' -type f -print0 | grep -a -z -v istio.operator.v1alpha1 | xargs -0 rm 2>/dev/null
find "${ROOTDIR}/content/zh/docs/reference" -name '*.html' -type f -print0 | grep -a -z -v istio.operator.v1alpha1 | xargs -0 rm 2>/dev/null

# Prepare the work directory
mkdir -p "${WORK_DIR}"
Expand Down

0 comments on commit bec1c82

Please sign in to comment.