Skip to content

Commit

Permalink
Update GTK-DOC infrastructure.
Browse files Browse the repository at this point in the history
  • Loading branch information
jas4711 committed Nov 21, 2011
1 parent 0786e28 commit 59e999f
Show file tree
Hide file tree
Showing 9 changed files with 161 additions and 87 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,13 @@ doc/reference/libidn.types
doc/reference/pdf-build.stamp
doc/reference/pdf.stamp
doc/reference/scan-build.stamp
doc/reference/setup-build.stamp
doc/reference/sgml-build.stamp
doc/reference/sgml.stamp
doc/reference/tmpl-build.stamp
doc/reference/tmpl.stamp
doc/reference/tmpl/
doc/reference/version.xml
doc/reference/xml/
doc/specifications/Makefile
doc/specifications/Makefile.in
Expand Down
7 changes: 4 additions & 3 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,13 @@ fi

AC_CONFIG_FILES([
Makefile
libidn.pc
pom.xml
csharp/Makefile
contrib/doxygen/Doxyfile
csharp/Makefile
doc/Makefile
doc/cyclo/Makefile
doc/java/Makefile
doc/reference/Makefile
doc/reference/version.xml
doc/specifications/Makefile
doc/tld/Makefile
examples/Makefile
Expand All @@ -179,7 +178,9 @@ AC_CONFIG_FILES([
lib/Makefile
lib/gl/Makefile
lib/gltests/Makefile
libidn.pc
po/Makefile.in
pom.xml
src/Makefile
tests/Makefile
])
Expand Down
25 changes: 15 additions & 10 deletions doc/reference/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ DOC_MODULE=$(PACKAGE)
# The top-level SGML file. You can change this if you want to.
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml

# Directories containing the source code, relative to $(srcdir).
# Directories containing the source code.
# gtk-doc will search all .c and .h files beneath these paths
# for inline comments documenting functions and macros.
# e.g. DOC_SOURCE_DIR=../../../gtk ../../../gdk
DOC_SOURCE_DIR=../../lib
# e.g. DOC_SOURCE_DIR=$(top_srcdir)/gtk $(top_srcdir)/gdk
DOC_SOURCE_DIR=$(top_srcdir)/lib

# Extra options to pass to gtkdoc-scangobj. Not normally needed.
SCANGOBJ_OPTIONS=
Expand All @@ -32,8 +32,8 @@ SCANGOBJ_OPTIONS=
SCAN_OPTIONS=--ignore-decorators=IDNAPI

# Extra options to supply to gtkdoc-mkdb.
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
MKDB_OPTIONS=--sgml-mode --output-format=xml
# e.g. MKDB_OPTIONS=--xml-mode --output-format=xml
MKDB_OPTIONS=--xml-mode --output-format=xml

# Extra options to supply to gtkdoc-mktmpl
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
Expand All @@ -56,9 +56,9 @@ CFILE_GLOB=$(top_srcdir)/lib/*.c
# e.g. EXTRA_HFILES=$(top_srcdir}/contrib/extra.h
EXTRA_HFILES=

# Header files to ignore when scanning. Use base file name, no paths
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
IGNORE_HFILES=gunibreak.h gunicomp.h gunidecomp.h idn-int.h gl
# Header files or dirs to ignore when scanning. Use base file/dir names
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h private_code
IGNORE_HFILES=gunibreak.h gunicomp.h gunidecomp.h idn-int.h gl gltests

# Images to copy into HTML directory.
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
Expand Down Expand Up @@ -93,8 +93,13 @@ EXTRA_DIST +=
# for --rebuild-sections in $(SCAN_OPTIONS) e.g. $(DOC_MODULE)-sections.txt
#DISTCLEANFILES +=

# Comment this out if you want your docs-status tested during 'make check'
# Comment this out if you want 'make check' to test you doc status
# and run some sanity checks
if ENABLE_GTK_DOC
#TESTS_ENVIRONMENT = cd $(srcsrc) &&
TESTS_ENVIRONMENT = cd $(srcdir) && \
DOC_MODULE=$(DOC_MODULE) DOC_MAIN_SGML_FILE=$(DOC_MAIN_SGML_FILE) \
SRCDIR=$(abs_srcdir) BUILDDIR=$(abs_builddir)
#TESTS = $(GTKDOC_CHECK)
endif

-include $(top_srcdir)/git.mk
26 changes: 20 additions & 6 deletions doc/reference/libidn-docs.sgml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
[
<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
]>
<book id="index">
<bookinfo>
<title>GNU Libidn API Reference Manual</title>
<releaseinfo>
for GNU Libidn &version;.
The latest version of this documentation can be found on-line at
<ulink role="online-location" url="https://www.gnu.org/software/libidn/reference/">https://www.gnu.org/software/libidn/reference/</ulink>.
</releaseinfo>
</bookinfo>

<chapter>
<chapter id="intro">
<title>GNU Libidn API Reference Manual</title>

<para>
Expand Down Expand Up @@ -74,10 +83,15 @@ version 3.0 or later.
</figure>

<xi:include href="xml/idna.xml"/>
<xi:include href="xml/pr29.xml"/>
<xi:include href="xml/stringprep.xml"/>
<xi:include href="xml/punycode.xml"/>
<xi:include href="xml/pr29.xml"/>
<xi:include href="xml/tld.xml"/>
<xi:include href="xml/stringprep.xml"/>
<xi:include href="xml/idn-free.xml"/>

</chapter>
<index id="api-index-full">
<title>API Index</title>
<xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
</index>
</book>
1 change: 1 addition & 0 deletions doc/reference/version.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@VERSION@
Loading

0 comments on commit 59e999f

Please sign in to comment.