From 026e8f8c40e4299c50a88f2c3331d4380da3414b Mon Sep 17 00:00:00 2001 From: David Smith Date: Sun, 15 Nov 2020 09:38:56 +0000 Subject: [PATCH 1/2] Updated Django Documentation (3.1.4) --- lib/docs/scrapers/django.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/lib/docs/scrapers/django.rb b/lib/docs/scrapers/django.rb index 7b17db3a..c405af7a 100644 --- a/lib/docs/scrapers/django.rb +++ b/lib/docs/scrapers/django.rb @@ -34,13 +34,18 @@ module Docs Licensed under the BSD License. HTML + version '3.1' do + self.release = '3.1.4' + self.base_url = 'https://docs.djangoproject.com/en/3.1/' + end + version '3.0' do - self.release = '3.0.3' + self.release = '3.0.11' self.base_url = 'https://docs.djangoproject.com/en/3.0/' end version '2.2' do - self.release = '2.2.10' + self.release = '2.2.17' self.base_url = 'https://docs.djangoproject.com/en/2.2/' end @@ -55,7 +60,7 @@ module Docs end version '1.11' do - self.release = '1.11.28' + self.release = '1.11.29' self.base_url = 'https://docs.djangoproject.com/en/1.11/' end From 2db89fea4d696e0835d51c705bf6677046617f49 Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Tue, 17 Nov 2020 07:54:01 +0100 Subject: [PATCH 2/2] django: add download script to file-scrapers.md --- docs/file-scrapers.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md index 506e9a59..9c9fbe22 100644 --- a/docs/file-scrapers.md +++ b/docs/file-scrapers.md @@ -25,8 +25,11 @@ and put it in `/path/to/devdocs/docs/` Go to https://docs.djangoproject.com/, select the version from the bubble in the bottom-right corner, then download the HTML version from the sidebar. -URL: `https://media.djangoproject.com/docs/django-docs-$VERSION-en.zip` - +```sh +mkdir --parent docs/django\~$VERSION/; \ +curl https://media.djangoproject.com/docs/django-docs-$VERSION-en.zip | \ +bsdtar --extract --file - --directory=docs/django\~$VERSION/ +``` ## Erlang