Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
# Articles can only have `WikiSection` as parents.
redef type PARENT: WikiSection
- redef fun title: String do
+ redef fun title do
if name == "index" and parent != null then return parent.title
return super
end
content = md
end
- redef var src_full_path: nullable String = null
+ redef var src_full_path = null
redef fun src_path do
var src_full_path = self.src_full_path
redef class WikiSection
# Output directory (where to ouput the HTML pages for this section).
- redef fun out_path: String do
+ redef fun out_path do
if parent == null then
return wiki.config.out_dir
else
redef class WikiArticle
- redef fun out_path: String do
+ redef fun out_path do
if parent == null then
return wiki.expand_path(wiki.config.out_dir, "{name}.html")
else