codeigniter: add version 4

pull/1310/head
Simon Legner 4 years ago
parent e19c4096d4
commit 50d715694b

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

@ -2,7 +2,6 @@ module Docs
class Codeigniter < UrlScraper class Codeigniter < UrlScraper
self.name = 'CodeIgniter' self.name = 'CodeIgniter'
self.type = 'sphinx' self.type = 'sphinx'
self.base_url = 'https://codeigniter.com/userguide3/'
self.root_path = 'index.html' self.root_path = 'index.html'
self.links = { self.links = {
home: 'https://codeigniter.com/', home: 'https://codeigniter.com/',
@ -31,12 +30,18 @@ module Docs
] ]
options[:attribution] = <<-HTML 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. Licensed under the MIT License.
HTML HTML
version '4' do
self.release = '4.0.4'
self.base_url = 'https://codeigniter.com/userguide4/'
end
version '3' do version '3' do
self.release = '3.1.8' self.release = '3.1.8'
self.base_url = 'https://codeigniter.com/userguide3/'
end end
def get_latest_version(opts) def get_latest_version(opts)

Loading…
Cancel
Save