summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-08-14 17:45:29 +0200
committerLennart Poettering <lennart@poettering.net>2008-08-14 17:45:29 +0200
commit53335cee493865e062e8e51b1f81c84882895038 (patch)
tree45ee280140934835ee711a24c262f2f8d53b08db
parent17654c7076360fc7633f491fb3ef9e950f2286b2 (diff)
add proper documentation
-rw-r--r--Makefile.am20
-rw-r--r--README21
-rw-r--r--configure.ac25
-rw-r--r--doc/.gitignore2
-rw-r--r--doc/Makefile.am35
-rw-r--r--doc/README.html.in120
-rw-r--r--doc/style.css25
7 files changed, 224 insertions, 24 deletions
diff --git a/Makefile.am b/Makefile.am
index 2fa898c..24d6660 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,10 +19,10 @@
dist_doc_DATA = README
EXTRA_DIST = bootstrap.sh autogen.sh LGPL
-SUBDIRS = src gtkdoc libltdl
+SUBDIRS = src gtkdoc libltdl doc
-MAINTAINERCLEANFILES =
-noinst_DATA =
+MAINTAINERCLEANFILES = README
+noinst_DATA = README
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libcanberra.pc
@@ -33,3 +33,17 @@ endif
DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc
ACLOCAL_AMFLAGS = -I m4
+
+README:
+ rm -f README
+ $(MAKE) -C doc README
+ cd $(srcdir) && ln -s doc/README README
+
+homepage: all dist doxygen
+ test -d $$HOME/homepage/private
+ mkdir -p $$HOME/homepage/private/projects/libcanberra
+ cp libcanberra-@PACKAGE_VERSION@.tar.gz $$HOME/homepage/private/projects/libcanberra
+ cp doc/README.html doc/style.css $$HOME/homepage/private/projects/libcanberra
+ ln -sf README.html $$HOME/homepage/private/projects/libcanberra/index.html
+
+.PHONY: homepage
diff --git a/README b/README
deleted file mode 100644
index 0e4c850..0000000
--- a/README
+++ /dev/null
@@ -1,21 +0,0 @@
-LIBCANBERRA SOUND EVENT LIBRARY
-
-GIT:
- git://git.0pointer.de/libcanberra.git
-
-GITWEB:
- http://git.0pointer.de/?p=libcanberra.git;a=summary
-
-MAILING LIST:
- https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss
-
-AUTHORS:
- Lennart Poettering
-
-REQUIREMENTS:
- OGG Vorbis
- Gtk+ (optional, for the Gtk+ bindings)
- ALSA (optional, for the ALSA backend)
- PulseAudio (optional, for the PulseAudio backend)
-
-
diff --git a/configure.ac b/configure.ac
index 56cce26..0253cbe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -298,6 +298,29 @@ AC_SUBST(GTK_MODULES_DIR)
AC_SUBST(HAVE_GTK)
AM_CONDITIONAL([HAVE_GTK], [test "x$HAVE_GTK" = x1])
+### LYNX documentation generation ###
+
+AC_ARG_ENABLE([lynx],
+ AC_HELP_STRING([--disable-lynx], [Turn off lynx usage for documentation generation]),
+ [
+ case "${enableval}" in
+ yes) lynx=yes ;;
+ no) lynx=no ;;
+ *) AC_MSG_ERROR(bad value ${enableval} for --disable-lynx) ;;
+ esac
+ ],
+ [lynx=yes])
+
+if test x$lynx = xyes ; then
+ AC_CHECK_PROG(have_lynx, lynx, yes, no)
+
+ if test "x$have_lynx" = xno ; then
+ AC_MSG_WARN([*** lynx not found, plain text README will not be built ***])
+ fi
+fi
+
+AM_CONDITIONAL([USE_LYNX], [test "x$have_lynx" = xyes])
+
### Vorbis (mandatory) ###
PKG_CHECK_MODULES(VORBIS, [ vorbisfile ])
@@ -388,6 +411,8 @@ src/Makefile
libcanberra.pc
libcanberra-gtk.pc
gtkdoc/Makefile
+doc/Makefile
+doc/README.html
])
AC_OUTPUT
diff --git a/doc/.gitignore b/doc/.gitignore
new file mode 100644
index 0000000..bc63974
--- /dev/null
+++ b/doc/.gitignore
@@ -0,0 +1,2 @@
+README
+README.html
diff --git a/doc/Makefile.am b/doc/Makefile.am
new file mode 100644
index 0000000..819a6f9
--- /dev/null
+++ b/doc/Makefile.am
@@ -0,0 +1,35 @@
+# This file is part of libcanberra.
+#
+# Copyright 2008 Lennart Poettering
+#
+# libcanberra is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License as
+# published by the Free Software Foundation, either version 2.1 of the
+# License, or (at your option) any later version.
+#
+# libcanberra is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with libcanberra. If not, see
+# <http://www.gnu.org/licenses/>.
+
+noinst_DATA = README.html README
+EXTRA_DIST = $(noinst_DATA) style.css README.html.in
+
+MAINTAINERCLEANFILES = README.html
+CLEANFILES =
+
+if USE_LYNX
+README: README.html
+ lynx --dump $^ | sed 's,file://localhost/.*/doc/README.html,README,' > $@
+
+CLEANFILES += README
+endif
+
+tidy: README.html
+ tidy -qe < README.html ; true
+
+.PHONY: tidy
diff --git a/doc/README.html.in b/doc/README.html.in
new file mode 100644
index 0000000..3c3357e
--- /dev/null
+++ b/doc/README.html.in
@@ -0,0 +1,120 @@
+<?xml version="1.0" encoding="iso-8859-1"?> <!-- -*-html-helper-*- -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+
+<head>
+<title>libcanberra @PACKAGE_VERSION@</title>
+<link rel="stylesheet" type="text/css" href="style.css" />
+</head>
+
+<body>
+<h1><a name="top">libcanberra @PACKAGE_VERSION@</a></h1>
+
+<p><i>Copyright 2008 Lennart Poettering &lt;@PACKAGE_BUGREPORT@&gt;</i></p>
+
+<ul class="toc">
+ <li><a href="#license">License</a></li>
+ <li><a href="#news">News</a></li>
+ <li><a href="#overview">Overview</a></li>
+ <li><a href="#status">Current Status</a></li>
+ <li><a href="#documentation">Documentation</a></li>
+ <li><a href="#requirements">Requirements</a></li>
+ <li><a href="#installation">Installation</a></li>
+ <li><a href="#acks">Acknowledgements</a></li>
+ <li><a href="#download">Download</a></li>
+</ul>
+
+<h2><a name="license">License</a></h2>
+
+<p>This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation, either version 2.1 of the
+License, or (at your option) any later version.</p>
+
+<p>This program is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.</p>
+
+<h2><a name="news">News</a></h2>
+
+<div class="news-date">Thu 14 Aug
+2008: </div> <p class="news-text"><a href="@PACKAGE_URL@libcanberra-0.7.tar.gz">Version
+0.7</a> released; changes include: </p>
+
+<h2><a name="overview">Overview</a></h2>
+
+<p><tt>libcanberra</tt> is an implementation of
+the <a href="http://freedesktop.org/wiki/Specifications/sound-theme-spec">XDG
+Sound Theme and Name Specifications</a>, for generating event sounds
+on free desktops. It comes with several backends (ALSA, PulseAudio,
+Null) and is designed to be portable. It consists of the following
+parts:</p>
+
+<ol>
+<li><tt>libcanberra</tt>: the main library</li>
+<li><tt>libcanberra-gtk</tt>: some glue code to make it easier to use <tt>libcanberra</tt> from Gtk+ applications</li>
+<li><tt>libcanberra-gtk-module</tt>: a Gtk+ module that uses <tt>libcanberra-gtk</tt> to trigger input feedback event sounds</li>
+</ol>
+
+<p>For more information see <a href="http://0pointer.de/blog/projects/sixfold-announcement.html">the original announcement.</a></p>
+
+<h2><a name="status">Current Status</a></h2>
+
+<p><tt>libcanberra</tt> is mostly feature complete. For now however it
+includes backends only for ALSA and PulseAudio.</p>
+
+<p><tt>libcanberra</tt> has been
+declared <a href="http://mail.gnome.org/archives/devel-announce-list/2008-August/msg00001.html">a
+blessed GNOME dependency</a>.</p>
+
+<h2><a name="documentation">Documentation</a></h2>
+
+<p>You may browse the <a href="http://www.gtk.org/gtk-doc/">gtkdoc</a>
+generated <a href="http://0pointer.de/lennart/projects/libcanberra/gtkdoc/">programing
+documentation</a> of the API.</p>
+
+<h2><a name="requirements">Requirements</a></h2>
+
+<p>Currently, <tt>libcanberra</tt> is tested on Linux only.</p>
+
+<p><tt>libcanberra</tt> was developed and tested on Fedora Rawhide
+from August 2008, it should work on most other Linux
+distributions (and maybe Unix versions) since it uses GNU autoconf and
+GNU libtool for source code configuration and shared library
+management.</p>
+
+<p><tt>libcanberra</tt> has no dependencies besides the OGG Vorbis
+development headers and whatever the selected backends require. Gtk+
+support is optional.</p>
+
+<h2><a name="installation">Installation</a></h2>
+
+<p>As this package is made with the GNU autotools you should run
+<tt>./configure</tt> inside the distribution directory for configuring
+the source tree. After that you should run <tt>make</tt> for
+compilation and <tt>make install</tt> (as root) for installation of
+<tt>libcanberra</tt>.</p>
+
+<h2><a name="acks">Acknowledgements</a></h2>
+
+<p>None so far.</p>
+
+<h2><a name="download">Download</a></h2>
+
+<p>The newest release is always available from <a href="@PACKAGE_URL@">@PACKAGE_URL@</a></p>
+
+<p>The current release is <a href="@PACKAGE_URL@libcanberra-@PACKAGE_VERSION@.tar.gz">@PACKAGE_VERSION@</a></p>
+
+<p>Get <tt>libcanberra</tt>'s development sources from the <a href="http://git.or.cz/">GIT</a> <a href="git://git.0pointer.de/libcanberra">repository</a> (<a href="http://git.0pointer.de/?p=libcanberra.git">gitweb</a>): </p>
+
+<pre>git clone git://git.0pointer.de/libcanberra</pre>
+
+<p>If you want to report bugs or have questions, please use the <a href="https://tango.0pointer.de/mailman/listinfo/libcanberra-discuss/"><tt>libcanberra-discuss</tt></a> mailing list.</p>
+
+
+<hr/>
+<address class="grey">Lennart Poettering &lt;@PACKAGE_BUGREPORT@&gt;, August 2008</address>
+
+</body>
+</html>
diff --git a/doc/style.css b/doc/style.css
new file mode 100644
index 0000000..3d46fb4
--- /dev/null
+++ b/doc/style.css
@@ -0,0 +1,25 @@
+/***
+ This file is part of libcanberra.
+
+ Copyright 2008 Lennart Poettering
+
+ libcanberra is free software; you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation, either version 2.1 of the
+ License, or (at your option) any later version.
+
+ libcanberra is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with libcanberra. If not, see
+ <http://www.gnu.org/licenses/>.
+***/
+
+body { color: black; background-color: white; }
+a:link, a:visited { color: #900000; }
+div.news-date { font-size: 80%; font-style: italic; }
+pre { background-color: #f0f0f0; padding: 0.4cm; }
+.grey { color: #8f8f8f; font-size: 80%; }