History

django: add download script to file-scrapers.md

Simon Legner committed 5 years ago

Commit 2db89fe1 parent 026e8f81 file · +5 −2Browse files

Unified · Split

docs/file-scrapers.md+5−2
@@ -25,8 +25,11 @@ and put it in `/path/to/devdocs/docs/` · 24 unmodified lines
2525 Go to https://docs.djangoproject.com/, select the version from the
2626 bubble in the bottom-right corner, then download the HTML version from the sidebar.
2727
28−URL: `https://media.djangoproject.com/docs/django-docs-$VERSION-en.zip`
29−
28+```sh
29+mkdir --parent docs/django\~$VERSION/; \
30+curl https://media.djangoproject.com/docs/django-docs-$VERSION-en.zip | \
31+bsdtar --extract --file - --directory=docs/django\~$VERSION/
32+```
3033
3134 ## Erlang
3235