Browse Source

Vue Router : add parentheses after method names

Nicolas Ettlin 7 years ago
parent
commit
274e631830
1 changed files with 8 additions and 10 deletions
  1. 8 10
      lib/docs/filters/vue_router/entries.rb

+ 8 - 10
lib/docs/filters/vue_router/entries.rb

@@ -41,16 +41,14 @@ module Docs
 
           entryName.remove! '# '
 
-          unless entryName.start_with?('router.')
-            if title == "Router Construction Options"
-              entryName = "RouterOptions.#{entryName}"
-            elsif title == "<router-view> Props"
-              entryName = "<router-view> `#{entryName}` prop"
-            elsif title == "<router-link> Props"
-              entryName = "<router-link> `#{entryName}` prop"
-            else
-              entryName = "> #{entryName} (in: #{title})"
-            end
+          if title == "Router Construction Options"
+            entryName = "RouterOptions.#{entryName}"
+          elsif title == "<router-view> Props"
+            entryName = "<router-view> `#{entryName}` prop"
+          elsif title == "<router-link> Props"
+            entryName = "<router-link> `#{entryName}` prop"
+          elsif title == "Router Instance Methods"
+            entryName = "#{entryName}()"
           end
 
           unless title == "Component Injections" || node['id'] == 'applying-active-class-to-outer-element' || node['id'] == 'route-object-properties'