Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
svekars committed Mar 20, 2024
1 parent 5ce00f4 commit 8d71ea3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ jobs:
run: |
git config user.name 'pytorchbot'
git config user.email '[email protected]'
- name: Add no-index tag
run: |
REF_NAME=$(echo "${{ github.ref }}"
echo "Ref name: ${REF_NAME}"
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
find docs -name "*.html" -print0 | xargs -0 sed -i '/<head>/a \ \ <meta name="robots" content="noindex">'
fi
- name: Move and commit changes
run: |
set -euo pipefail
Expand Down

0 comments on commit 8d71ea3

Please sign in to comment.