Skip to content

Commit 7fbc4b7

Browse files
MarkDaoustcopybara-github
authored andcommitted
Update script to refresh GitHub docs branch.
PiperOrigin-RevId: 347661379
1 parent 5dfd89e commit 7fbc4b7

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tools/release_tools/push_version_to_github.sh

+1-9
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,7 @@ git merge upstream/$OLD_BRANCH --message "merge $OLD_BRANCH" || (grep -l "<<<<<
3434

3535
# Overwrite the ditectory with the contents from tensorflow/en/versions
3636
rm -rf site/en/api_docs/python
37-
python ../tensorflow/tensorflow/tools/docs/generate2.py --output_dir=site/en/api_docs/python
38-
39-
# Strip some devsite headers and stuff.
40-
# The sed call is independant of the number of files per call so there's
41-
# no problem to a simple "xargs" here.
42-
find site/en/api_docs/ -name "*.md" | xargs sed -i '/Book:/d'
43-
find site/en/api_docs/ -name "*.md" | xargs sed -i '/Project:/d'
44-
find site/en/api_docs/ -name "*.html" | xargs sed -i '/name=\"book_path\"/d'
45-
find site/en/api_docs/ -name "*.html" | xargs sed -i '/name=\"project_path\"/d'
37+
python ../tensorflow/tensorflow/tools/docs/generate2.py --output_dir=site/en/api_docs/python --code_url_prefix="https://github.com/tensorflow/tensorflow/blob/${NEW_BRANCH}/tensorflow"
4638

4739
# Commit and push to your github.
4840
git add site/en/api_docs/

0 commit comments

Comments
 (0)