Skip to content

Commit 1c55062

Browse files
svekarsfacebook-github-bot
authored andcommitted
Remove noindex from upload to gh-pages job
Summary: For some reason this wasn't removed in previous PR. Differential Revision: D56225136
1 parent f14dc83 commit 1c55062

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

.github/workflows/doc-build.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,6 @@ jobs:
9898
REF_TYPE=${{ github.ref_type }}
9999
REF_NAME=${{ github.ref_name }}
100100
101-
# If it's main branch, add noindex tag to all .html files to exclude from Google Search indexing.
102-
REF_NAME=$(echo "${{ github.ref }}")
103-
echo "Ref name: ${REF_NAME}"
104-
if [[ "${{ github.ref }}" == 'refs/heads/main' ]]; then
105-
find docs -name "*.html" -print0 | xargs -0 sed -i '/<head>/a \ \ <meta name="robots" content="noindex">';
106-
fi
107-
108101
# If building for a release tag, branch, set the branch/tag name
109102
# as the target folder in the gh-pages branch. The artifacts created
110103
# during the build will be copied over to the target dir in the

0 commit comments

Comments
 (0)