trac-export-wiki 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/examples/config.yaml +5 -5
- data/examples/config.yaml.sample +8 -5
- data/lib/trac-export-wiki.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
data/examples/config.yaml
CHANGED
@@ -33,10 +33,10 @@ pages:
|
|
33
33
|
- BoogieTraceability
|
34
34
|
- PerformanceReport
|
35
35
|
categories:
|
36
|
-
mgmt: 'Management, Planning & Risk Analysis Docs'
|
37
|
-
research: 'Research & Potential Strategies Docs'
|
38
|
-
reqs: 'Requirements Docs'
|
39
|
-
design: 'Design & Architecture'
|
40
|
-
test: 'Testing & Implementation'
|
36
|
+
- mgmt: 'Management, Planning & Risk Analysis Docs'
|
37
|
+
- research: 'Research & Potential Strategies Docs'
|
38
|
+
- reqs: 'Requirements Docs'
|
39
|
+
- design: 'Design & Architecture'
|
40
|
+
- test: 'Testing & Implementation'
|
41
41
|
wiki_title: JML4 Disco Documentation
|
42
42
|
wiki_title_prefix: Disco
|
data/examples/config.yaml.sample
CHANGED
@@ -43,12 +43,15 @@ pages:
|
|
43
43
|
|
44
44
|
# The full titles and order of the category short-names. These titles will be
|
45
45
|
# listed in the order they are given on the index.html page.
|
46
|
+
#
|
47
|
+
# Note: Make sure to include the '-' before the short-name, since this has to
|
48
|
+
# be a list.
|
46
49
|
categories:
|
47
|
-
mgmt: 'Management, Planning & Risk Analysis Docs'
|
48
|
-
research: 'Research & Potential Strategies Docs'
|
49
|
-
reqs: 'Requirements Docs'
|
50
|
-
design: 'Design & Architecture'
|
51
|
-
test: 'Testing & Implementation'
|
50
|
+
- mgmt: 'Management, Planning & Risk Analysis Docs'
|
51
|
+
- research: 'Research & Potential Strategies Docs'
|
52
|
+
- reqs: 'Requirements Docs'
|
53
|
+
- design: 'Design & Architecture'
|
54
|
+
- test: 'Testing & Implementation'
|
52
55
|
|
53
56
|
# The wiki title listed on the index.html page
|
54
57
|
wiki_title: JML4 Disco Documentation
|
data/lib/trac-export-wiki.rb
CHANGED
@@ -126,7 +126,7 @@ module TracWiki
|
|
126
126
|
<h1>#{config.wiki_title}</h1>
|
127
127
|
eof
|
128
128
|
config.categories.each do |line|
|
129
|
-
cat, name = *line
|
129
|
+
cat, name = *(Hash === line ? [line.keys.first, line.values.first] : line)
|
130
130
|
index += "<h2>#{name}</h2>\n"
|
131
131
|
index += "<ul>\n"
|
132
132
|
config.pages.select {|k,v| k == cat }.each do |cat, docs|
|