Skip to content

Commit bc4176e

Browse files
committed
Remove preview
1 parent 3013bd5 commit bc4176e

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

.github/workflows/doc-build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
(cd /sage/local/share/doc/sage/html/en && \
6767
find . -name "*.html" | xargs sed -i -e '/class="sidebar-brand-text"/ s/Sage [0-9a-z.]* /Sage '"$new_version"' /' \
6868
-e 's;'"$mathjax_path_from"';'"$mathjax_path_to"';' \
69-
-e '\;<script type="application/vnd\.jupyter\.widget-state\+json">;,\;</script>; d')
69+
-e '\;<script type="application/vnd\.jupyter\.widget-state+json">;,\;</script>; d')
7070
# Create git repo from old doc
7171
(cd /sage/local/share/doc/sage/html/en && \
7272
git init && \
@@ -132,10 +132,9 @@ jobs:
132132
set -ex
133133
mkdir -p ./docs
134134
(cd /sage/local/share/doc/sage/html/en && git commit -a -m 'new')
135-
echo '## Preview of CHANGES.html'
136135
# Wipe out chronic diffs between old doc and new doc
137136
(cd /sage/local/share/doc/sage/html/en && \
138-
find . -name "*.html" | xargs sed -i -e '\;<script type="application/vnd\.jupyter\.widget-state\+json">;,\;</script>; d')
137+
find . -name "*.html" | xargs sed -i -e '\;<script type="application/vnd\.jupyter\.widget-state+json">;,\;</script>; d')
139138
# Create CHANGES.html
140139
echo '<html>' > ./docs/CHANGES.html
141140
echo '<head>' >> ./docs/CHANGES.html
@@ -182,8 +181,7 @@ jobs:
182181
cat ./docs/diff.html >> ./docs/CHANGES.html
183182
echo '</body>' >> ./docs/CHANGES.html
184183
echo '</html>' >>./docs/CHANGES.html
185-
# Preview of changes
186-
echo '## Preview of diff.txt'; head -n 400 ./docs/diff.txt
184+
rm .docs/diff.txt .docs/diff.html
187185
(cd /sage/local/share/doc/sage/html/en && git reset --hard HEAD)
188186
# For some reason the deploy step below cannot find /sage/...
189187
# So copy everything from there to local folder

0 commit comments

Comments
 (0)