People of Nit
\n""" page.add "By Maintainer
\n" @@ -863,7 +891,7 @@ page.write_to_file(out/"people.html") # TABLE -page = new CatalogPage +page = new CatalogPage("") page.more_head.add "\n
X-Git-Url: http://nitlanguage.org diff --git a/src/nitcatalog.nit b/src/nitcatalog.nit index 5e2584a..59d76b0 100644 --- a/src/nitcatalog.nit +++ b/src/nitcatalog.nit @@ -86,6 +86,12 @@ class CatalogPage # Placeholder to include additional things before the ``. var more_head = new Template + # Relative path to the root directory (with the index file). + # + # Use "" for pages in the root directory + # Use ".." for pages in a subdirectory + var rootpath: String + redef init do add """ @@ -94,7 +100,7 @@ class CatalogPage
- + """ add more_head @@ -116,7 +122,7 @@ class CatalogPage @@ -270,7 +276,7 @@ class Catalog # Compute information and generate a full HTML page for a package fun package_page(mpackage: MPackage): Writable do - var res = new CatalogPage + var res = new CatalogPage("..") var score = score[mpackage].to_f var name = mpackage.name.html_escape res.more_head.add """