From a30b520ce707f60ce155bf6d642919daf8052335 Mon Sep 17 00:00:00 2001 From: antn Date: Sat, 31 Jan 2015 20:09:27 -0800 Subject: [PATCH 1/2] add underscored docs to whitelist, really fixes #49 --- config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config.rb b/config.rb index 652c6f4d1..c4b11e672 100644 --- a/config.rb +++ b/config.rb @@ -41,6 +41,7 @@ activate :directory_indexes page "documentation/**/*.html", directory_index: false +config[:ignored_sitemap_matchers][:partials] = proc { |file| file =~ %r{/_[^_]} && file !~ %r{/source/documentation/_.+\.html} } set :css_dir, 'stylesheets' set :js_dir, 'javascripts' From 8a7a5b13991d93f89a825a214cf7614065d694ad Mon Sep 17 00:00:00 2001 From: antn Date: Sat, 31 Jan 2015 20:19:03 -0800 Subject: [PATCH 2/2] add anchoring to docs regex --- config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.rb b/config.rb index c4b11e672..0460299ca 100644 --- a/config.rb +++ b/config.rb @@ -41,7 +41,7 @@ activate :directory_indexes page "documentation/**/*.html", directory_index: false -config[:ignored_sitemap_matchers][:partials] = proc { |file| file =~ %r{/_[^_]} && file !~ %r{/source/documentation/_.+\.html} } +config[:ignored_sitemap_matchers][:partials] = proc { |file| file =~ %r{/_[^_]} && file !~ %r{\A/source/documentation/_.+\.html\z} } set :css_dir, 'stylesheets' set :js_dir, 'javascripts'