瀏覽代碼

codeigniter: add version 4

Simon Legner 5 年之前
父節點
當前提交
50d715694b
共有 2 個文件被更改,包括 8 次插入3 次删除
  1. 1 1
      assets/javascripts/templates/pages/about_tmpl.coffee
  2. 7 2
      lib/docs/scrapers/codeigniter.rb

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

@@ -183,7 +183,7 @@ credits = [
     'https://raw.githubusercontent.com/Codeception/CodeceptJS/master/LICENSE'
   ], [
     'CodeIgniter',
-    '2014-2018 British Columbia Institute of Technology',
+    '2014-2020 British Columbia Institute of Technology',
     'MIT',
     'https://raw.githubusercontent.com/bcit-ci/CodeIgniter/develop/license.txt'
   ], [

+ 7 - 2
lib/docs/scrapers/codeigniter.rb

@@ -2,7 +2,6 @@ module Docs
   class Codeigniter < UrlScraper
     self.name = 'CodeIgniter'
     self.type = 'sphinx'
-    self.base_url = 'https://codeigniter.com/userguide3/'
     self.root_path = 'index.html'
     self.links = {
       home: 'https://codeigniter.com/',
@@ -31,12 +30,18 @@ module Docs
     ]
 
     options[:attribution] = <<-HTML
-      &copy; 2014&ndash;2019 British Columbia Institute of Technology<br>
+      &copy; 2014&ndash;2020 British Columbia Institute of Technology<br>
       Licensed under the MIT License.
     HTML
 
+    version '4' do
+      self.release = '4.0.4'
+      self.base_url = 'https://codeigniter.com/userguide4/'
+    end
+
     version '3' do
       self.release = '3.1.8'
+      self.base_url = 'https://codeigniter.com/userguide3/'
     end
 
     def get_latest_version(opts)