[valadoc] basic doclet: Add "wiki-index-name"
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] basic doclet: Add "wiki-index-name"
- Date: Tue, 24 Sep 2013 00:43:58 +0000 (UTC)
commit 9e4c48a9368e640b1c26cf9b7affc403acabd8bf
Author: Florian Brosch <flo brosch gmail com>
Date: Sun Sep 15 22:43:55 2013 +0200
basic doclet: Add "wiki-index-name"
Used by valadoc.org
src/libvaladoc/html/basicdoclet.vala | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
---
diff --git a/src/libvaladoc/html/basicdoclet.vala b/src/libvaladoc/html/basicdoclet.vala
index fceaf90..e048f73 100644
--- a/src/libvaladoc/html/basicdoclet.vala
+++ b/src/libvaladoc/html/basicdoclet.vala
@@ -36,6 +36,12 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
get;
}
+ public string wiki_index_name {
+ default = "index.valadoc";
+ protected set;
+ get;
+ }
+
protected Api.Tree tree;
protected HtmlRenderer _renderer;
protected Html.MarkupWriter writer;
@@ -233,7 +239,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
DirUtils.create (Path.build_filename (contentp, "img"), 0777);
foreach (WikiPage page in pages) {
- if (page.name != "index.valadoc") {
+ if (page.name != wiki_index_name) {
write_wiki_page (page, contentp, css_path_wiki, js_path_wiki,
this.settings.pkg_name);
}
}
@@ -573,7 +579,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
WikiPage? wikiindex = (tree.wikitree == null)
? null
- : tree.wikitree.search ("index.valadoc");
+ : tree.wikitree.search (wiki_index_name);
if (wikiindex != null) {
_renderer.set_container (wikiindex);
_renderer.render (wikiindex.documentation);
@@ -1062,7 +1068,7 @@ public abstract class Valadoc.Html.BasicDoclet : Api.Visitor, Doclet {
.end_tag ("h2");
- WikiPage? wikipage = (tree.wikitree == null)? null : tree.wikitree.search ("index.valadoc");
+ WikiPage? wikipage = (tree.wikitree == null)? null : tree.wikitree.search (wiki_index_name);
if (wikipage != null) {
_renderer.set_container (parent);
_renderer.render (wikipage.documentation);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]