Update Dart version 2 to 2.10.4
Unified · Split
| @@ -20,6 +20,12 @@ Click the “API docs” link under the “Stable channel” header on · 19 unmodified lines | ||
| 20 | 20 | https://www.dartlang.org/tools/sdk/archive. Rename the expanded ZIP to `dart~2` |
| 21 | 21 | and put it in `/path/to/devdocs/docs/` |
| 22 | 22 | |
| 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 | +``` | |
| 23 | 29 | ## Django |
| 24 | 30 | |
| 25 | 31 | Go to https://docs.djangoproject.com/, select the version from the |
| @@ -21,7 +21,7 @@ module Docs · 20 unmodified lines | ||
| 21 | 21 | HTML |
| 22 | 22 | |
| 23 | 23 | version '2' do |
| 24 | − self.release = '2.5.0' | |
| 24 | + self.release = '2.10.4' | |
| 25 | 25 | self.base_url = "https://api.dart.dev/stable/#{release}/" |
| 26 | 26 | end |
| 27 | 27 | |
| @@ -31,9 +31,10 @@ module Docs · 3 unmodified lines | ||
| 31 | 31 | end |
| 32 | 32 | |
| 33 | 33 | def get_latest_version(opts) |
| 34 | − doc = fetch_doc('https://api.dartlang.org/', opts) | |
| 34 | + doc = fetch_doc('https://api.dart.dev/', opts) | |
| 35 | 35 | label = doc.at_css('footer > span').content.strip |
| 36 | 36 | label.sub(/Dart\s*/, '') |
| 37 | 37 | end |
| 38 | + | |
| 38 | 39 | end |
| 39 | 40 | end |