MDN javascript docs for offline use

后端 未结 5 1114
别那么骄傲
别那么骄傲 2020-12-12 10:24

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 gen

相关标签:
5条回答
  • 2020-12-12 10:35

    download wget and use it to mirror the doc :

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

    0 讨论(0)
  • 2020-12-12 10:37

    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.

    0 讨论(0)
  • 2020-12-12 10:45

    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 and via third-party tools.

    And others : don't mirror with wget & co, this is putting un-needed pressure on the website and hinders other users. At least make sure 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).

    0 讨论(0)
  • 2020-12-12 10:47

    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.

    0 讨论(0)
  • 2020-12-12 10:55

    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.

    0 讨论(0)
提交回复
热议问题