From 37fa6db12dc6bddb38d79be8dc36ff6e6949b301 Mon Sep 17 00:00:00 2001 From: "Jason K. Moore" Date: Tue, 25 Jun 2024 17:18:23 +0200 Subject: [PATCH] Corrected offline instructions and added more sed commands to remove http calls. --- README.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 12112481..43d04bc1 100644 --- a/README.rst +++ b/README.rst @@ -312,14 +312,14 @@ Created a directory for MathJax v2:: mkdir -p _static/js/ cd _static/js/ wget https://github.com/mathjax/MathJax/archive/refs/tags/2.7.9.zip - unzip MathJax-2.7.9.zip + unzip 2.7.9.zip mv MathJax-2.7.9/ MathJax/ - rm MathJax-2.7.9.zip + rm 2.7.9.zip Download this JavaScript file also:: wget https://cdn.jsdelivr.net/npm/@jupyter-widgets/html-manager@^1.0.1/dist/embed-amd.js - cd ../../ + cd ../.. In ``conf.py`` change these two lines:: @@ -336,6 +336,11 @@ Make sure ``embed-amd.js`` loads from the local source with:: sed -i "s,https://cdn.jsdelivr.net/npm/@jupyter-widgets/html-manager@^1.0.1/dist,_static/js,g" _build/html/*.html +Remove links to external resources (slows loading on offline computers):: + + sed -i 's,,,g' _build/html/*.html + sed -i 's^^^g' _build/html/*.html + sed -i 's,,,g' _build/html/*.html Now build the PDF version::