E584
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b5611e commit 9c69754Copy full SHA for 9c69754
Rules
@@ -10,6 +10,11 @@
10
# item, use the pattern “/about/*/”; “/about/*” will also select the parent,
11
# because “*” matches zero or more characters.
12
13
+# Reset search-index by deleting it every time
14
+preprocess do
15
+ File.delete("output/search-index.json")
16
+end
17
+
18
compile '/static/*' do
19
end
20
lib/search_generator.rb
100644
100755
@@ -12,10 +12,6 @@ class SearchFilter < Nanoc::Filter
$sidebar_doc = Nokogiri::HTML(sidebar)
sidebar.close
- def initialize(hash = {})
- super
- end
-
def run(content, params={})
# uses nokogiri to determine parent section name
21
containing_li_text = $sidebar_doc.xpath("//a[@href='#{@item.identifier}']/../../../h3/a[2]/text()")
0 commit comments