user guide: include section numbers in page navigation links
This commit is contained in:
parent
ca6336c715
commit
0ad3f815c5
@ -82,7 +82,7 @@ class Generator
|
||||
@pages = [Page.new("toc", "Table of Contents", render_toc)]
|
||||
@sections.each do |section|
|
||||
unless @pages.last.name == section.page
|
||||
@pages << Page.new(section.page, section.title)
|
||||
@pages << Page.new(section.page, "#{section.number} #{section.title}")
|
||||
end
|
||||
@pages.last.contents += render_section(section)
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user