Remove :header_hashtags option and adjust tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user