Showing the changes to lib/docs (2 of 2 files). Show all
Unified · Split
| @@ -4,7 +4,7 @@ module Docs · 3 unmodified lines | |||
| 4 | def get_name | 4 | def get_name |
| 5 | name = at_css('h1').content | 5 | name = at_css('h1').content |
| 6 | 6 | ||
| 7 | name.remove! '# ' | 7 | name.sub! %r{#\s*}, '' |
| 8 | 8 | ||
| 9 | # Add index on guides | 9 | # Add index on guides |
| 10 | unless subpath.start_with?('api') | 10 | unless subpath.start_with?('api') |
| @@ -42,9 +42,9 @@ module Docs · 31 unmodified lines | |||
| 42 | title = node | 42 | title = node |
| 43 | title = title.previous_element until title.name == 'h2' | 43 | title = title.previous_element until title.name == 'h2' |
| 44 | title = title.content.strip | 44 | title = title.content.strip |
| 45 | title.remove! '# ' | 45 | title.sub! %r{#\s*}, '' |
| 46 | 46 | ||
| 47 | entry_name.remove! '# ' | 47 | entry_name.sub! %r{#\s*}, '' |
| 48 | 48 | ||
| 49 | unless entry_name.start_with?('router.') | 49 | unless entry_name.start_with?('router.') |
| 50 | case title | 50 | case title |
| @@ -19,7 +19,7 @@ module Docs · 18 unmodified lines | |||
| 19 | HTML | 19 | HTML |
| 20 | 20 | ||
| 21 | version '4' do | 21 | version '4' do |
| 22 | self.release = '4.0.0' | 22 | self.release = '4.0.2' |
| 23 | self.base_url = 'https://next.vuex.vuejs.org/' | 23 | self.base_url = 'https://next.vuex.vuejs.org/' |
| 24 | end | 24 | end |
| 25 | 25 | ||