Remove :header_hashtags option and adjust tests

This commit is contained in:
kristi
2012-05-14 00:38:27 -07:00
parent 4fa2cdf8d9
commit b0ba205532
6 changed files with 14 additions and 35 deletions
-1
View File
@@ -14,7 +14,6 @@ require 'gollum/frontend/views/editable'
# require 'gollum/frontend/app'
# Precious::App.set(:wiki_options, {
# :universal_toc => false,
# :header_hashtags => true
# }
#
# See the wiki.rb file for more details on wiki options
+1 -1
View File
@@ -83,7 +83,7 @@ module Gollum
anchor['class'] = 'anchor'
anchor['id'] = id
anchor['href'] = '#' + id
h.child.before(anchor)
h.add_child(anchor)
# Build TOC
toc ||= Nokogiri::XML::Node.new('ul', doc)
-7
View File
@@ -139,9 +139,6 @@ module Gollum
# site.
# options - Optional Hash:
# :universal_toc - Table of contents on all pages. Default: false
# :header_hashtags - Show links to headers. Default: true
# (Pages may be rendered slightly faster without
# the toc and hashtags)
# :base_path - String base path for all Wiki links.
# Default: "/"
# :page_class - The page Class. Default: Gollum::Page
@@ -175,7 +172,6 @@ module Gollum
@history_sanitization = options[:history_sanitization] ||
self.class.history_sanitization
@universal_toc = options.fetch(:universal_toc, false)
@header_hashtags = options.fetch(:header_hashtags, true)
end
# Public: check whether the wiki's git repo exists on the filesystem.
@@ -542,9 +538,6 @@ module Gollum
# Toggles display of universal table of contents
attr_reader :universal_toc
# Create hashtag link for headers to jump to sections
attr_reader :header_hashtags
# Normalize the data.
#
# data - The String data to be normalized.