浏览代码

Update Sinon.JS documentation (10.0.1)

Simon Legner 4 年之前
父节点
当前提交
f7ffc94653
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 6 1
      lib/docs/scrapers/sinon.rb

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -763,7 +763,7 @@ credits = [
     'https://raw.githubusercontent.com/scikit-learn/scikit-learn/master/COPYING'
   ], [
     'Sinon',
-    '2010-2018 Christian Johansen',
+    '2010-2021 Christian Johansen',
     'BSD',
     'https://raw.githubusercontent.com/sinonjs/sinon/master/LICENSE'
   ], [

+ 6 - 1
lib/docs/scrapers/sinon.rb

@@ -14,7 +14,7 @@ module Docs
     options[:container] = '.content .container'
 
     options[:attribution] = <<-HTML
-      &copy; 2010&ndash;2020 Christian Johansen<br>
+      &copy; 2010&ndash;2021 Christian Johansen<br>
       Licensed under the BSD License.
     HTML
 
@@ -27,6 +27,11 @@ module Docs
       url
     end
 
+    version '10' do
+      self.release = '10.0.1'
+      self.base_url = "https://sinonjs.org/releases/v#{release}/"
+    end
+
     version '9' do
       self.release = '9.2.2'
       self.base_url = "https://sinonjs.org/releases/v#{release}/"