Unified · Split
| @@ -118,7 +118,8 @@ · 117 unmodified lines | ||
| 118 | 118 | migrateDocs: -> |
| 119 | 119 | for slug in @settings.getDocs() when not @docs.findBy('slug', slug) |
| 120 | 120 | needsSaving = true |
| 121 | − doc = @disabledDocs.findBy('slug_without_version', slug) | |
| 121 | + doc = @disabledDocs.findBy('slug', 'webpack') if slug == 'webpack~2' | |
| 122 | + doc ||= @disabledDocs.findBy('slug_without_version', slug) | |
| 122 | 123 | if doc |
| 123 | 124 | @disabledDocs.remove(doc) |
| 124 | 125 | @docs.add(doc) |
| @@ -357,7 +357,8 @@ class App < Sinatra::Application · 356 unmodified lines | ||
| 357 | 357 | 'angular~1.4' => 'angularjs~1.4', |
| 358 | 358 | 'angular~1.3' => 'angularjs~1.3', |
| 359 | 359 | 'angular~1.2' => 'angularjs~1.2', |
| 360 | − 'codeigniter~3.0' => 'codeigniter~3' | |
| 360 | + 'codeigniter~3.0' => 'codeigniter~3', | |
| 361 | + 'webpack~2' => 'webpack' | |
| 361 | 362 | } |
| 362 | 363 | |
| 363 | 364 | get %r{/([\w~\.%]+)(\-[\w\-]+)?(/.*)?} do |doc, type, rest| |
| @@ -29,7 +29,7 @@ module Docs · 28 unmodified lines | ||
| 29 | 29 | elsif slug.start_with?('api') |
| 30 | 30 | css('.header[id] code').each_with_object [] do |node, entries| |
| 31 | 31 | next if node.previous.try(:content).present? |
| 32 | − entries << ["#{self.name}: #{node.content.sub(/\(.*\)/, '()')}", node.parent['id']] | |
| 32 | + entries << ["#{self.name.split(':').first}: #{node.content.sub(/\(.*\)/, '()')}", node.parent['id']] | |
| 33 | 33 | end |
| 34 | 34 | else |
| 35 | 35 | [] |
| @@ -3,10 +3,10 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'webpack' |
| 4 | 4 | self.type = 'webpack' |
| 5 | 5 | |
| 6 | − version '2' do | |
| 7 | − self.release = '2.6.1' | |
| 6 | + version do | |
| 7 | + self.release = '3.0.0' | |
| 8 | 8 | self.base_url = 'https://webpack.js.org/' |
| 9 | − self.root_path = 'guides/get-started/' | |
| 9 | + self.root_path = 'guides/' | |
| 10 | 10 | self.initial_paths = %w( |
| 11 | 11 | concepts/ |
| 12 | 12 | guides/ |
| @@ -23,7 +23,7 @@ module Docs · 10 unmodified lines | ||
| 23 | 23 | html_filters.push 'webpack/clean_html', 'webpack/entries' |
| 24 | 24 | |
| 25 | 25 | options[:container] = '.page' |
| 26 | − options[:trailing_slash] = true | |
| 26 | + options[:trailing_slash] = false | |
| 27 | 27 | options[:only_patterns] = [ |
| 28 | 28 | /\Aconcepts\//, |
| 29 | 29 | /\Aguides\//, |