lib/UserManual.rb in taskjuggler-0.0.6 vs lib/UserManual.rb in taskjuggler-0.0.7
- old
+ new
@@ -35,12 +35,12 @@
def generate(directory)
# Directory where to find the manual RichText sources. Must be relative
# to lib directory.
srcDir = AppConfig.dataDirs('manual')[0]
- # Directory where to put the generated HTML files. Must be relative to lib
- # directory.
+ # Directory where to put the generated HTML files. Must be relative to
+ # lib directory.
destDir = directory + (directory[-1] == '/' ? '' : '/')
# A list of all source files. The order is important.
%w(
Intro
TaskJuggler_2x_Migration
@@ -49,18 +49,19 @@
How_To_Contribute
Getting_Started
Tutorial
The_TaskJuggler_Syntax
Rich_Text_Attributes
+ Software
Day_To_Day_Juggling
TaskJuggler_Internals
fdl
).each do |file|
snip = addSnip(srcDir + file)
snip.cssClass = 'manual'
end
- # Generate the table of contense
+ # Generate the table of contents
tableOfContents
# Generate the HTML files.
generateHTML(destDir)
checkInternalReferences
FileUtils.cp_r(AppConfig.dataDirs('data/css')[0], destDir)
@@ -208,10 +209,10 @@
# RichText pages as well as the SyntaxReference.
def tableOfContents
super
# Let's call the reference 'Appendix A'
@reference.tableOfContents(@toc, 'A')
- @snipNames += @reference.all
+ @anchors += @reference.all
end
# Generate the HTML pages for the syntax reference and a navigation page
# with links to all generated pages.
def generateHTMLReference(directory)