History

Merge pull request #1363 from MasterEnoc/dart

Update Dart version 2 to 2.10.4

Simon Legner committed 5 years ago

Commit d790c7a2 parents 57c5fc0 507990e2 files · +9 −2Browse files

Unified · Split

2 files
  1. docs/file-scrapers.md +6 −0
  2. lib/docs/scrapers/dart.rb +3 −2
docs/file-scrapers.md+6−0
@@ -20,6 +20,12 @@ Click the “API docs” link under the “Stable channel” header on · 19 unmodified lines
2020 https://www.dartlang.org/tools/sdk/archive. Rename the expanded ZIP to `dart~2`
2121 and put it in `/path/to/devdocs/docs/`
2222
23+Or run the following commands in your terminal:
24+
25+```sh
26+curl https://storage.googleapis.com/dart-archive/channels/stable/release/$RELEASE/api-docs/dartdocs-gen-api-zip > dartApi.zip; \
27+unzip dartApi.zip; mv gen-dartdocs docs/dart~$VERSION
28+```
2329 ## Django
2430
2531 Go to https://docs.djangoproject.com/, select the version from the
lib/docs/scrapers/dart.rb+3−2
@@ -21,7 +21,7 @@ module Docs · 20 unmodified lines
2121 HTML
2222
2323 version '2' do
24− self.release = '2.5.0'
24+ self.release = '2.10.4'
2525 self.base_url = "https://api.dart.dev/stable/#{release}/"
2626 end
2727
@@ -31,9 +31,10 @@ module Docs · 3 unmodified lines
3131 end
3232
3333 def get_latest_version(opts)
34− doc = fetch_doc('https://api.dartlang.org/', opts)
34+ doc = fetch_doc('https://api.dart.dev/', opts)
3535 label = doc.at_css('footer > span').content.strip
3636 label.sub(/Dart\s*/, '')
3737 end
38+
3839 end
3940 end