Fixes #767.
Unified · Split
| @@ -103,7 +103,9 @@ module Docs · 102 unmodified lines | ||
| 103 | 103 | end |
| 104 | 104 | |
| 105 | 105 | def clean_path(path) |
| 106 | − path.gsub %r{[!;:]+}, '-' | |
| 106 | + path = path.gsub %r{[!;:]}, '-' | |
| 107 | + path = path.gsub %r{\+}, '_plus_' | |
| 108 | + path | |
| 107 | 109 | end |
| 108 | 110 | end |
| 109 | 111 | end |
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | module Docs |
| 2 | 2 | class C < FileScraper |
| 3 | 3 | self.type = 'c' |
| 4 | − self.dir = '/Users/Thibaut/DevDocs/Docs/C/c' | |
| 4 | + self.dir = '/Users/Thibaut/DevDocs/Docs/c' | |
| 5 | 5 | self.base_url = 'http://en.cppreference.com/w/c/' |
| 6 | 6 | self.root_path = 'header.html' |
| 7 | 7 | |
| @@ -3,7 +3,7 @@ module Docs · 2 unmodified lines | ||
| 3 | 3 | self.name = 'C++' |
| 4 | 4 | self.slug = 'cpp' |
| 5 | 5 | self.type = 'c' |
| 6 | − self.dir = '/Users/Thibaut/DevDocs/Docs/C/cpp' | |
| 6 | + self.dir = '/Users/Thibaut/DevDocs/Docs/cpp' | |
| 7 | 7 | self.base_url = 'http://en.cppreference.com/w/cpp/' |
| 8 | 8 | self.root_path = 'header.html' |
| 9 | 9 | |