Fixes #767.
@@ -103,7 +103,9 @@ module Docs
end
def clean_path(path)
- path.gsub %r{[!;:]+}, '-'
+ path = path.gsub %r{[!;:]}, '-'
+ path = path.gsub %r{\+}, '_plus_'
+ path
@@ -1,7 +1,7 @@
module Docs
class C < FileScraper
self.type = 'c'
- self.dir = '/Users/Thibaut/DevDocs/Docs/C/c'
+ self.dir = '/Users/Thibaut/DevDocs/Docs/c'
self.base_url = 'http://en.cppreference.com/w/c/'
self.root_path = 'header.html'
@@ -3,7 +3,7 @@ module Docs
self.name = 'C++'
self.slug = 'cpp'
- self.dir = '/Users/Thibaut/DevDocs/Docs/C/cpp'
+ self.dir = '/Users/Thibaut/DevDocs/Docs/cpp'
self.base_url = 'http://en.cppreference.com/w/cpp/'