[devdocsgjs/main: 1260/1867] Update Dart version 2 to 2.10.4




commit 507990e4c67363c1fe5fcb9ad076b789f65e16a2
Author: MasterEnoc <brianhernandez222 hotmail com>
Date:   Fri Nov 20 12:57:30 2020 -0600

    Update Dart version 2 to 2.10.4

 docs/file-scrapers.md     | 6 ++++++
 lib/docs/scrapers/dart.rb | 5 +++--
 2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/docs/file-scrapers.md b/docs/file-scrapers.md
index a22eddb8..4ad4fff0 100644
--- a/docs/file-scrapers.md
+++ b/docs/file-scrapers.md
@@ -20,6 +20,12 @@ Click the “API docs” link under the “Stable channel” header on
 https://www.dartlang.org/tools/sdk/archive. Rename the expanded ZIP to `dart~2`
 and put it in `/path/to/devdocs/docs/`
 
+Or run the following commands in your terminal:
+
+```sh
+curl 
https://storage.googleapis.com/dart-archive/channels/stable/release/$RELEASE/api-docs/dartdocs-gen-api-zip > 
dartApi.zip; \
+unzip dartApi.zip; mv gen-dartdocs docs/dart~$VERSION
+```
 ## Django
 
 Go to https://docs.djangoproject.com/, select the version from the
diff --git a/lib/docs/scrapers/dart.rb b/lib/docs/scrapers/dart.rb
index 4522762b..7bac5356 100644
--- a/lib/docs/scrapers/dart.rb
+++ b/lib/docs/scrapers/dart.rb
@@ -21,7 +21,7 @@ module Docs
     HTML
 
     version '2' do
-      self.release = '2.5.0'
+      self.release = '2.10.4'
       self.base_url = "https://api.dart.dev/stable/#{release}/";
     end
 
@@ -31,9 +31,10 @@ module Docs
     end
 
     def get_latest_version(opts)
-      doc = fetch_doc('https://api.dartlang.org/', opts)
+      doc = fetch_doc('https://api.dart.dev/', opts)
       label = doc.at_css('footer > span').content.strip
       label.sub(/Dart\s*/, '')
     end
+
   end
 end


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]