Browse Source

Update git documentation (2.1.3)

Thibaut 11 years ago
parent
commit
ef6c31f0f9
2 changed files with 5 additions and 1 deletions
  1. 4 0
      lib/docs/filters/git/clean_html.rb
  2. 1 1
      lib/docs/scrapers/git.rb

+ 4 - 0
lib/docs/filters/git/clean_html.rb

@@ -21,6 +21,10 @@ module Docs
           node.content = node.content.remove(/\(\d\) Manual Page/)
         end
 
+        unless at_css('> h1')
+          doc.child.before("<h1>#{slug}</h1>")
+        end
+
         unless at_css('> h2')
           css('> h3').each do |node|
             node.name = 'h2'

+ 1 - 1
lib/docs/scrapers/git.rb

@@ -1,7 +1,7 @@
 module Docs
   class Git < UrlScraper
     self.type = 'git'
-    self.version = '2.1.0'
+    self.version = '2.1.3'
     self.base_url = 'http://git-scm.com/docs'
     self.initial_paths = %w(/git.html)