Skip to content

Commit 274e631

Browse files
committed
Vue Router : add parentheses after method names
1 parent 5c48bc2 commit 274e631

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

lib/docs/filters/vue_router/entries.rb

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,14 @@ def additional_entries
4141

4242
entryName.remove! '# '
4343

44-
unless entryName.start_with?('router.')
45-
if title == "Router Construction Options"
46-
entryName = "RouterOptions.#{entryName}"
47-
elsif title == "<router-view> Props"
48-
entryName = "<router-view> `#{entryName}` prop"
49-
elsif title == "<router-link> Props"
50-
entryName = "<router-link> `#{entryName}` prop"
51-
else
52-
entryName = "> #{entryName} (in: #{title})"
53-
end
44+
if title == "Router Construction Options"
45+
entryName = "RouterOptions.#{entryName}"
46+
elsif title == "<router-view> Props"
47+
entryName = "<router-view> `#{entryName}` prop"
48+
elsif title == "<router-link> Props"
49+
entryName = "<router-link> `#{entryName}` prop"
50+
elsif title == "Router Instance Methods"
51+
entryName = "#{entryName}()"
5452
end
5553

5654
unless title == "Component Injections" || node['id'] == 'applying-active-class-to-outer-element' || node['id'] == 'route-object-properties'

0 commit comments

Comments
 (0)