How to download a local copy of a site using mathjax using wget?

I can download the local version of the site using the command:

wget -p -k -H -E -r -nc --no-parent https://www.example.com

However, unlike when I locally save the page from firefox via ctrl + s , the wget version above does not display MathJax.

How can I upload files locally so that parts of mathJax are displayed correctly?

EDIT:

They are on the example page:

 <link href="https://cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css" rel="stylesheet" type="text/css"/> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet" type="text/css"/> <script>documenterBaseURL="."</script> <script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.2.0/require.min.js" data-main="assets/documenter.js"></script> <script src="siteinfo.js"></script> <script src="../versions.js"></script> <link href="assets/highlightjs/default.css" rel="stylesheet" type="text/css"/><link href="assets/documenter.css" rel="stylesheet" type="text/css"/> 
+7
wget
source share
1 answer

Try the following:

 wget -E -H -k -K -p http://www.website.com 

If this does not work, you may need to run wget a second time to retrieve the missing files from the website using the -i flag to list all URLs and their correspondence to see if you missed it.

Link:

https://www.gnu.org/software/wget/manual/wget.html#Recursive-Retrieval-Options

+3
source share

All Articles