user guide: fix section anchors

This commit is contained in:
Josh Holtrop 2019-06-09 22:45:26 -04:00
parent 66fac4f982
commit 947a65a75e

View File

@ -27,7 +27,7 @@ class Generator
@title = title.gsub(/[`]/, "")
@new_page = new_page
@contents = ""
@anchor = "s" + title.gsub(/[^a-zA-Z0-9]/, "_")
@anchor = "s" + ("#{number} #{title}").gsub(/[^a-zA-Z0-9]/, "_")
end
def append(contents)
@contents += contents