Rename class to Toc
This commit is contained in:
@@ -116,7 +116,7 @@ module Precious
|
|||||||
@content = @page.formatted_data do
|
@content = @page.formatted_data do
|
||||||
|doc|
|
|doc|
|
||||||
# Insert anchors for table of contents
|
# Insert anchors for table of contents
|
||||||
toc = Gollum::Toc_gen.new doc
|
toc = Gollum::Toc.new doc
|
||||||
if (toc_content = toc.generate)
|
if (toc_content = toc.generate)
|
||||||
toc.insert_anchors
|
toc.insert_anchors
|
||||||
@toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
|
@toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
|
||||||
@@ -211,7 +211,7 @@ module Precious
|
|||||||
@content = page.formatted_data do
|
@content = page.formatted_data do
|
||||||
|doc|
|
|doc|
|
||||||
# Insert anchors for table of contents
|
# Insert anchors for table of contents
|
||||||
toc = Gollum::Toc_gen.new doc
|
toc = Gollum::Toc.new doc
|
||||||
if (toc_content = toc.generate)
|
if (toc_content = toc.generate)
|
||||||
toc.insert_anchors
|
toc.insert_anchors
|
||||||
@toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
|
@toc_content = toc_content.to_xhtml(:save_with => Nokogiri::XML::Node::SaveOptions::AS_XHTML)
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
module Gollum
|
module Gollum
|
||||||
class Toc_gen
|
class Toc
|
||||||
attr_accessor :header_tags
|
attr_accessor :header_tags
|
||||||
|
|
||||||
NODE_CONTENT = 0
|
NODE_CONTENT = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user