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
5050 subpath.blank? || subpath == '/' || subpath == root_path
5151 end
5252
53+ def initial_page?
54+ root_page? || context[:initial_paths].include?(subpath)
55+ end
56+
5357 SCHEME_RGX = /\A[^:\/?#]+:/
5458
5559 def fragment_url_string?(str)