History

Update webpack documentation (1.13)

Thibaut Courouble committed 10 years ago

Commit da5ff771 parent ca2d6825 files · +10 −5Browse files

Showing the changes to lib/docs (2 of 5 files). Show all

Unified · Split

2 files
  1. lib/docs/filters/webpack/clean_html.rb +6 −1
  2. lib/docs/scrapers/webpack.rb +2 −2
lib/docs/filters/webpack/clean_html.rb+6−1
@@ -18,8 +18,12 @@ module Docs · 17 unmodified lines
1818
1919
2020 def other
21+ css('h1, h2, h3, h4').each do |node|
22+ node.name = node.name.sub(/\d/) { |i| i.to_i + 1 }
23+ end
24+
2125 # Re-create the header element
22− at_css("#wiki").child.before("<h1>#{at_css("#wikititle").content}</h1>")
26+ at_css("#wiki").child.before("<h1>#{at_css("#wikititle").content.titleize}</h1>")
2327
2428 @doc = at_css("#wiki")
2529
@@ -27,6 +31,7 @@ module Docs · 1 unmodified line
2731
2832 css('pre').each do |node|
2933 node.content = node.content
34+ node['data-language'] = 'javascript'
3035 end
3136 end
3237 end
lib/docs/scrapers/webpack.rb+2−2
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Webpack < UrlScraper
33 self.name = 'webpack'
44 self.type = 'webpack'
5− self.release = '1.12'
5+ self.release = '1.13'
66 self.base_url = 'https://webpack.github.io/docs/'
77 self.links = {
88 home: 'https://webpack.github.io/',
@@ -17,7 +17,7 @@ module Docs · 8 unmodified lines
1717 options[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html)
1818
1919 options[:attribution] = <<-HTML
20− &copy; 2012&ndash;2015 Tobias Koppers<br>
20+ &copy; 2012&ndash;2016 Tobias Koppers<br>
2121 Licensed under the MIT License.
2222 HTML
2323 end

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t