Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit 2090ec4

Browse files
committed
scripts: docs: Remove copybutton download
Signed-off-by: John Andersen <[email protected]>
1 parent 68d9165 commit 2090ec4

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

scripts/docs.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env sh
1+
#!/usr/bin/env bash
22
set -e
33

44
PYTHON=${PYTHON:-"python3.7"}
@@ -30,12 +30,6 @@ ln -s "${PWD}/service/http/docs/" docs/plugins/service/http
3030
"${PYTHON}" -c 'import os, pkg_resources; [e.load() for e in pkg_resources.iter_entry_points("console_scripts") if e.name.startswith("sphinx-build")][0]()' -W -b html docs pages \
3131
|| (echo "[ERROR] Failed run sphinx, is it installed (pip install -U .[dev])?" 1>&2 ; exit 1)
3232
cp -r docs/images pages/
33-
if [ ! -f pages/_static/copybutton.js ]; then
34-
curl -sSL -o pages/_static/copybutton.js "https://raw.githubusercontent.com/python/python-docs-theme/master/python_docs_theme/static/copybutton.js"
35-
fi
36-
sha384sum -c - <<EOF
37-
061b550f64fb65ccb73fbe61ce15f49c17bc5f30737f42bf3c9481c89f7996d0004a11bf283d6bd26cf0b65130fc1d4b pages/_static/copybutton.js
38-
EOF
3933
touch pages/.nojekyll
4034

4135
if [ "x${HTTP}" != "x" ]; then

0 commit comments

Comments
 (0)