[vala/wip/docs: 1/2] doclet/html: Allow creation of links without performing browsable-check
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/docs: 1/2] doclet/html: Allow creation of links without performing browsable-check
- Date: Wed, 6 Sep 2017 13:20:59 +0000 (UTC)
commit f7a7e8aee495687546f8cd876f2a9678146935aa
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Sep 6 15:15:08 2017 +0200
doclet/html: Allow creation of links without performing browsable-check
Evaluate "--no-browsable-check" argument for html-doclet
valadoc/doclets/html/doclet.vala | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/valadoc/doclets/html/doclet.vala b/valadoc/doclets/html/doclet.vala
index 237882e..b2dde98 100644
--- a/valadoc/doclets/html/doclet.vala
+++ b/valadoc/doclets/html/doclet.vala
@@ -78,7 +78,12 @@ public class Valadoc.Html.Doclet : Valadoc.Html.BasicDoclet {
write_wiki_pages (tree, css_path_wiki, js_path_wiki, Path.build_filename(settings.path,
settings.pkg_name));
var tmp = _renderer;
- _renderer = new HtmlRenderer (settings, new IndexLinkHelper (), this.cssresolver);
+ var link_helper = new IndexLinkHelper ();
+ if (settings.pluginargs != null && ("--no-browsable-check" in settings.pluginargs)) {
+ link_helper.enable_browsable_check = false;
+ }
+ _renderer = new HtmlRenderer (settings, link_helper, this.cssresolver);
+
GLib.FileStream file = GLib.FileStream.open (GLib.Path.build_filename (settings.path,
"index.html"), "w");
writer = new Html.MarkupWriter (file);
_renderer.set_writer (writer);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]