Skip to content

Instantly share code, notes, and snippets.

@Manishearth
Created November 30, 2014 09:44
Show Gist options
  • Save Manishearth/1614e7848f7cd01b6366 to your computer and use it in GitHub Desktop.
Save Manishearth/1614e7848f7cd01b6366 to your computer and use it in GitHub Desktop.
Locally load HTML spec
wget \
--recursive \
--no-clobber \
--page-requisites \
--html-extension \
--convert-links \
--restrict-file-names=windows \
--domains html.spec.whatwg.org \
--no-parent \
https://html.spec.whatwg.org/multipage
cd html.spec.whatwg.org/multipage
wget https://html.spec.whatwg.org/multipage/fragment-links.js
cd ..
wget https://html.spec.whatwg.org/dfn.js
wget https://html.spec.whatwg.org/reviewer.js
wget https://html.spec.whatwg.org/status.js
wget https://html.spec.whatwg.org/updater.js
wget https://whatwg.org/style/specification >specification.css
find . -type f -print0 | xargs -0 sed -i "s|https://whatwg.org/style/specification|\"/specification.css\"|"
# python -m SimpleHTTPServer to view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment