From 94f95e3d83fe677bfc4aaebb23badc3abc56366a Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 23 Jul 2009 23:53:55 +0300 Subject: [PATCH] plugin-docs: add a fallback for the include of -details.xml For wrapper plugins we cannot know the details.xml (besides that there will be many). Regardless we don't want to fail if there are no details (gtk-doc-1.12 handles this already). Also remove that fancy warning -> ERROR mapping from makefile, we don't do that for normal docs either. --- gtk-doc-plugins.mak | 6 +----- mangle-tmpl.py | 4 +++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gtk-doc-plugins.mak b/gtk-doc-plugins.mak index 7ea1254..83599ad 100644 --- a/gtk-doc-plugins.mak +++ b/gtk-doc-plugins.mak @@ -236,11 +236,7 @@ html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) @for f in $(content_files); do cp $(srcdir)/$$f html; done cp -pr xml html cp ../version.entities html - cd html && gtkdoc-mkhtml $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) \ - 2>&1 | tee ../html-build.log - @if grep "warning:" html-build.log > /dev/null; then \ - echo "ERROR"; grep "warning:" html-build.log; exit 1; fi - @rm html-build.log + cd html && gtkdoc-mkhtml $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) mv html/index.sgml html/index.sgml.bak $(SED) "s/ href=\"$(DOC_MODULE)\// href=\"$(DOC_MODULE)-@GST_MAJORMINOR@\//g" html/index.sgml.bak >html/index.sgml rm -f html/index.sgml.bak diff --git a/mangle-tmpl.py b/mangle-tmpl.py index dbd0566..e4095a2 100644 --- a/mangle-tmpl.py +++ b/mangle-tmpl.py @@ -148,7 +148,9 @@ def main(): # put in an include if not yet there line = '\n' + 'element-' + element + '-details.xml">' + \ + '' + \ + '\n' section = tmpl.get_section("Long_Description") if not section[0] == line: section.insert(0, line) -- 2.7.4