Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
320 views

MDN Javascript Docs For Offline Use

The document discusses different options for accessing the MDN JavaScript documentation offline. It mentions downloading a tarball from the MDN website, using the DevDocs app which can run offline, using the Dash app on Mac which includes MDN docs, or using the Dochub project which can scrape and serve MDN docs locally. The answers are collected from Stack Overflow under various open source licenses.

Uploaded by

rad jml
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
320 views

MDN Javascript Docs For Offline Use

The document discusses different options for accessing the MDN JavaScript documentation offline. It mentions downloading a tarball from the MDN website, using the DevDocs app which can run offline, using the Dash app on Mac which includes MDN docs, or using the Dochub project which can scrape and serve MDN docs locally. The answers are collected from Stack Overflow under various open source licenses.

Uploaded by

rad jml
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

29/11/2021 12:34 MDN javascript docs for offline use

PY4U.NET

MDN javascript docs


for offline use
I am trying to make MDN's Javascript Reference
available for offline browsing (personal use).

I am not the website's owner nor developer, and


I can only access its generated output.

My first thought was to inject an HTML5


appcache.manifest in the page ; Using
manifestR I have generated a list of the
page's assets.

Then I've tried pointing to my local manifest


file using the file:/// protocol, using the
http:// protocol and finally using a base64
string, representing the file's contents
(data:text/cache-manifest,). Nothing seems to
work.

After googling a bit, I stumbled upon their


public FTP . Haven't fully crawled it yet. But
still didn't find any mentions of the js docs.

I have considered saving the HTML

pages using the browser's Save As


command; But I would rather develop a
javascript-based crawler than saving
every single page separately.

Where can I find an offline version of MDN Docs


? Or how can I browse MDN docs while being
offline ?

Asked By: Pierre || Source

Answer #1:
Download it at https://mdn-downloads.s3-us-
west-
2.amazonaws.com/developer.mozilla.org.tar.gz

The "Downloading content" section of About MDN


provides the above link (for a tarball
download) along with guidance on other ways to
..

access the MDN content, both as single pages Book now

English

28

and via third-party tools.


Book your action-
packed trip today

https://www.py4u.net/discuss/982111 1/3
29/11/2021 12:34 MDN javascript docs for offline use

And others : don't mirror with wget & co, this


is putting un-needed pressure on the website
PY4U.NET and hinders other users. At least make sure BOO

https://developer.mozilla.org/robots.txt (which
asks for gentle throttling) is properly
handled. Wget does not handle this for instance
( http://savannah.gnu.org/bugs/?30999 ).

Answered By: Pierre

Answer #2:
The JavaScript docs along with most of MDN's
web reference pages are available on DevDocs .

The app is open source and can be run offline:


https://github.com/Thibaut/devdocs

It's easy to set up and doesn't require


scraping MDN.

Answered By: zerodeux

Answer #3:
If you have a Mac, Dash
( http://kapeli.com/dash ) has docsets generated
from the Mozilla Developer Network, including
JavaScript. You can also avoid using Dash by
downloading the docset directly from
http://kapeli.com/feeds/JavaScript.tgz .

Answered By: Thibaut

Answer #4:
This looks fairly promising:
https://github.com/rgarcia/dochub

It's an all-in-one documentation site which can


be installed on your own computer (requires
node), containing data from a number of
standard web references including MDN. It
contains a screen scraper component that
extracts the info from MDN, and updates it
fairly quickly (at least a lot faster than the
wget mirror command mentioned above). I haven't
confirmed how complete the docs are as scraped,
but at first glance they look pretty good.
.. Book now

English

Answered By: bogdansrc


28

Book your action-


packed trip today

https://www.py4u.net/discuss/982111 2/3
29/11/2021 12:34 MDN javascript docs for offline use

PY4U.NET Answer #5: BOO

download wget and use it to mirror the doc :

wget -m -p
https://developer.mozilla.org/en/JavaScript/Ref
erence

Answered By: user4815162342

The answers/resolutions are collected from


stackoverflow, are licensed under cc by-sa 2.5
, cc by-sa 3.0 and cc by-sa 4.0 .

# More Articles
MDN javascript docs for offline use

Are fluid websites worth making anymore? [closed]

How to test a webpage meant for Retina display?

How to force vim to syntax-highlight a file as html?

What are best practices to order elements in <head>?

Inspect hovered element in Chrome?

How to position two divs horizontally within another div

How to change the text of a label?

How do you turn off auto-capitalisation in HTML form


fields in iOS?

jquery get all input from specific form

Bootstrap table without stripe / borders

Find closing HTML tag in Sublime Text

What Unicode character do you use in your website?


(instead of image icons)

.. Book now

English

28

Book your action-


packed trip today

https://www.py4u.net/discuss/982111 3/3

You might also like