Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 9 additions & 12 deletions .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,6 @@ jobs:
./build_all_docs.sh latest-only
else
./build_all_docs.sh
# At release time, we don't want to update the latest docs
rm -rf build/html/latest
# Nor the shared version-switcher file at the docs root: the theme
# fetches it from one URL for every version, and main deploys own it.
# A release built from a branch would overwrite it with a stale list.
rm -f build/html/nv-versions.json build/html/versions.json
fi
ls -l build
popd
Expand All @@ -346,12 +340,6 @@ jobs:
./build_docs.sh latest-only
else
./build_docs.sh
# At release time, we don't want to update the latest docs
rm -rf build/html/latest
# Nor the shared version-switcher file at the docs root: the theme
# fetches it from one URL for every version, and main deploys own it.
# A release built from a branch would overwrite it with a stale list.
rm -f build/html/nv-versions.json build/html/versions.json
fi
ls -l build
popd
Expand All @@ -363,6 +351,15 @@ jobs:
fi
mv "${COMPONENT}"/docs/build/html/* "artifacts/docs/${TARGET}"

- name: Remove shared files from release docs
if: ${{ inputs.is-release }}
run: |
# Main deployments own these paths at each component root.
for root in artifacts/docs artifacts/docs/cuda-{bindings,core,pathfinder}; do
rm -rf -- "$root/latest"
rm -f -- "$root"/{nv-versions.json,versions.json,objects.inv}
done

# Check links and anchors in the rendered HTML built above.
# Links in authored Markdown and reST files are checked separately by the
# ordinary Linux/Windows pre-commit jobs.
Expand Down
Loading