[valadoc] girmetadata: allow to override <ONLINE>
- From: Florian Brosch <flobrosch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [valadoc] girmetadata: allow to override <ONLINE>
- Date: Tue, 2 Sep 2014 17:17:10 +0000 (UTC)
commit 8c9507ec33019b88dd43ab47e1bd50d22332740b
Author: Florian Brosch <flo brosch gmail com>
Date: Tue Aug 26 02:03:43 2014 +0200
girmetadata: allow to override <ONLINE>
.../documentation/documentationparser.vala | 2 +-
src/libvaladoc/documentation/girmetadata.vala | 6 +++++-
2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/libvaladoc/documentation/documentationparser.vala
b/src/libvaladoc/documentation/documentationparser.vala
index 481ba6f..c50105b 100644
--- a/src/libvaladoc/documentation/documentationparser.vala
+++ b/src/libvaladoc/documentation/documentationparser.vala
@@ -173,7 +173,7 @@ public class Valadoc.DocumentationParser : Object, ResourceLocator {
metadata = new GirMetaData (gir_comment.file.relative_path, _settings.metadata_directories,
_reporter);
if (metadata.index_sgml != null) {
- id_registrar.read_index_sgml_file (metadata.index_sgml, _reporter);
+ id_registrar.read_index_sgml_file (metadata.index_sgml, metadata.index_sgml_online,
_reporter);
}
this.metadata.set (gir_comment.file, metadata);
diff --git a/src/libvaladoc/documentation/girmetadata.vala b/src/libvaladoc/documentation/girmetadata.vala
index 1a99097..61c6c4b 100644
--- a/src/libvaladoc/documentation/girmetadata.vala
+++ b/src/libvaladoc/documentation/girmetadata.vala
@@ -33,7 +33,7 @@ public class Valadoc.GirMetaData : Object {
public bool is_docbook { private set; get; default = false; }
public string index_sgml { private set; get; default = null; }
-
+ public string index_sgml_online { private set; get; default = null; }
/**
* Used to manipulate paths to resources inside gir-files
@@ -98,6 +98,10 @@ public class Valadoc.GirMetaData : Object {
this.index_sgml = key_file.get_string ("General", "index_sgml");
break;
+ case "index_sgml_online":
+ this.index_sgml_online = key_file.get_string ("General", "index_sgml_online");
+ break;
+
default:
reporter.simple_warning ("%s: warning: Unknown key 'General.%s'",
metadata_path, key);
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]