nitdoc: sets destination of Overview link to "index.html" instead of "./"
authorAlexis Laferrière <alexis.laf@xymus.net>
Tue, 14 Feb 2012 04:52:24 +0000 (23:52 -0500)
committerJean Privat <jean@pryen.org>
Tue, 14 Feb 2012 16:30:28 +0000 (11:30 -0500)
Allows better use in local file-system.

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/nitdoc.nit

index 846cdf0..ffb5016 100644 (file)
@@ -206,7 +206,7 @@ class DocContext
                        assert mod isa MMSrcModule
                        if not mod.require_doc(self) then continue
                        self.filename = mod.html_name
-                       action_bar = "<header><nav class='main'><ul><li><a href='./'>Overview</a></li><li class=\"current\">{mod.name}</li><li><a href='full-index.html'>Full Index</a></li></ul></nav></header>\n"
+                       action_bar = "<header><nav class='main'><ul><li><a href='./index.html'>Overview</a></li><li class=\"current\">{mod.name}</li><li><a href='full-index.html'>Full Index</a></li></ul></nav></header>\n"
                        clear
                        add("<!DOCTYPE html>")
                        add("<html><head>{head}<title>Module {mod.name}</title></head><body>\n")
@@ -222,7 +222,7 @@ class DocContext
                for c in mainmod.local_classes do
                        if not c.require_doc(self) then continue
                        self.filename = c.html_name
-                       action_bar = "<header><nav class='main'><ul><li><a href='./'>Overview</a></li><li>{c.global.intro.mmmodule.toplevel_owner.html_link(self)}</li><li class=\"current\">{c.name}</li><li><a href='full-index.html'>Full Index</a></li></ul></nav></header>\n"
+                       action_bar = "<header><nav class='main'><ul><li><a href='./index.html'>Overview</a></li><li>{c.global.intro.mmmodule.toplevel_owner.html_link(self)}</li><li class=\"current\">{c.name}</li><li><a href='full-index.html'>Full Index</a></li></ul></nav></header>\n"
                        clear
                        add("<!DOCTYPE html>")
                        add("<html><head>{head}<title>Class {c.name}</title></head><body>\n")
@@ -235,7 +235,7 @@ class DocContext
                end
 
                self.filename = "fullindex"
-               action_bar = "<header><nav class='main'><ul><li><a href='./'>Overview</a></li><li class=\"current\">Full Index</li></ul></nav></header>\n"
+               action_bar = "<header><nav class='main'><ul><li><a href='./index.html'>Overview</a></li><li class=\"current\">Full Index</li></ul></nav></header>\n"
                clear
                add("<!DOCTYPE html>")
                add("<html><head>{head}<title>Full Index</title></head><body>\n")