History

Implement Docs::Filter#initial_page?

Thibaut committed 12 years ago

Commit ca06cc71 parent f8298182 files · +25 −0Browse files

Showing the changes to lib (1 of 2 files). Show all

Unified · Split

lib/docs/core/filter.rb+4−0
@@ -50,6 +50,10 @@ module Docs · 49 unmodified lines
50 subpath.blank? || subpath == '/' || subpath == root_path50 subpath.blank? || subpath == '/' || subpath == root_path
51 end51 end
52 52
53 def initial_page?
54 root_page? || context[:initial_paths].include?(subpath)
55 end
56
53 SCHEME_RGX = /\A[^:\/?#]+:/57 SCHEME_RGX = /\A[^:\/?#]+:/
54 58
55 def fragment_url_string?(str)59 def fragment_url_string?(str)