From f23090a615bf829c4e3554da3ef4a12266fb5477 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 4 Dec 2015 14:57:20 +0000 Subject: [PATCH] Generate the API reference for libxdg-app We use the good old gtk-doc. --- .gitignore | 1 + autogen.sh | 15 +++++++++ configure.ac | 9 +++++ doc/Makefile.am | 2 ++ doc/reference/.gitignore | 16 +++++++++ doc/reference/Makefile.am | 35 ++++++++++++++++++++ doc/reference/xdg-app-docs.xml | 40 ++++++++++++++++++++++ doc/reference/xdg-app-sections.txt | 53 ++++++++++++++++++++++++++++++ 8 files changed, 171 insertions(+) create mode 100644 doc/reference/.gitignore create mode 100644 doc/reference/Makefile.am create mode 100644 doc/reference/xdg-app-docs.xml create mode 100644 doc/reference/xdg-app-sections.txt diff --git a/.gitignore b/.gitignore index 71068f1b..6512b790 100644 --- a/.gitignore +++ b/.gitignore @@ -25,6 +25,7 @@ missing stamp-h1 config.h.in stamp-* +gtk-doc.make xdg-app xdg-app-helper xdg-app-session-helper diff --git a/autogen.sh b/autogen.sh index 619802ee..46433bea 100755 --- a/autogen.sh +++ b/autogen.sh @@ -24,6 +24,21 @@ fi # Workaround automake bug with subdir-objects and computed paths sed -e 's,$(libglnx_srcpath),'${srcdir}/libglnx,g < libglnx/Makefile-libglnx.am >libglnx/Makefile-libglnx.am.inc +GTKDOCIZE=$(which gtkdocize 2>/dev/null) +if test -z $GTKDOCIZE; then + echo "*** You don't have gtk-doc installed, and thus won't be able to generate the documentation. ***" + rm -f gtk-doc.make + cat > gtk-doc.make < + +]> + + + xdg-app Reference Manual + + for xdg-app 1.0. + + + + + XDG-App + + + + + + + + + Object Hierarchy + + + + + API Index + + + + + Index of deprecated API + + + + + diff --git a/doc/reference/xdg-app-sections.txt b/doc/reference/xdg-app-sections.txt new file mode 100644 index 00000000..8585f86e --- /dev/null +++ b/doc/reference/xdg-app-sections.txt @@ -0,0 +1,53 @@ +
+xdg-app-installation +XdgAppInstallation +XdgAppInstallation +XdgAppInstallationClass + +XDG_APP_INSTALLATION +XDG_APP_IS_INSTALLATION +XDG_APP_TYPE_INSTALLATION +
+ +
+xdg-app-installed-ref +XdgAppInstalledRef +XdgAppInstalledRef +XdgAppInstalledRefClass + +XDG_APP_INSTALLED_REF +XDG_APP_IS_INSTALLED_REF +XDG_APP_TYPE_INSTALLED_REF +
+ +
+xdg-app-ref +XdgAppRef +XdgAppRef +XdgAppRefClass +XdgAppRefKind + +XDG_APP_IS_REF +XDG_APP_REF +XDG_APP_TYPE_REF +
+ +
+xdg-app-remote +XdgAppRemote +XdgAppRemote +XdgAppRemoteClass + +XDG_APP_IS_REMOTE +XDG_APP_REMOTE +XDG_APP_TYPE_REMOTE +
+ +
+xdg-app-version-macros +XDG_APP_MAJOR_VERSION +XDG_APP_MINOR_VERSION +XDG_APP_MICRO_VERSION +XDG_APP_EXTERN +
+