Commit 3e1526c0 authored by Javier Jardón's avatar Javier Jardón

Port to new documentation infrastructure

Use yelp-tools instead gnome-doc-tools
parent 9d3ca556
......@@ -27,7 +27,6 @@ EXTRA_DIST = \
ChangeLog.README \
autogen.sh \
gtkrc.win32 \
gnome-doc-utils.make \
COPYING.UNICODE \
$(NULL)
......@@ -57,10 +56,7 @@ MAINTAINERCLEANFILES = \
$(srcdir)/ltmain.sh \
$(srcdir)/missing \
$(srcdir)/mkinstalldirs \
$(srcdir)/omf.make \
$(srcdir)/xmldocs.make \
$(srcdir)/gtk-doc.make \
$(srcdir)/gnome-doc-utils.make \
`find "$(srcdir)" -type f -name Makefile.in -print`
ChangeLog:
......
......@@ -20,5 +20,4 @@ which gnome-autogen.sh || {
REQUIRED_INTLTOOL_VERSION=0.40.4
REQUIRED_AUTOMAKE_VERSION=1.9
REQUIRED_GNOME_DOC_UTILS_VERSION=0.9.0
. gnome-autogen.sh
......@@ -55,9 +55,11 @@ IT_PROG_INTLTOOL([0.40.0])
AM_PROG_CC_C_O
# checks for stuff
GNOME_COMMON_INIT
GNOME_DEBUG_CHECK
# User documentation
YELP_HELP_INIT
GLIB_REQUIRED=2.32.0
GIO_REQUIRED=2.32.0
......
......@@ -419,7 +419,7 @@ help_contents (GSimpleAction *action,
if (!uri)
return;
url = g_strconcat ("ghelp://", uri, NULL);
url = g_strconcat ("help:", uri, NULL);
open_url (GTK_WINDOW (window), url, gtk_get_current_event_time ());
g_free (uri);
g_free (url);
......
......@@ -125,7 +125,7 @@
<legalnotice>
<title>Feedback</title>
<para>To report a bug or make a suggestion regarding the <application>&app;</application> application or this manual, follow the directions in the <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback Page</ulink>.
<para>To report a bug or make a suggestion regarding the <application>&app;</application> application or this manual, follow the directions in the <ulink url="help:gnome-feedback" type="help">GNOME Feedback Page</ulink>.
</para>
<!-- Translators may also add here feedback address for translations -->
</legalnotice>
......
......@@ -6,7 +6,7 @@
by the Free Software Foundation with no Invariant Sections,
no Front-Cover Texts, and no Back-Cover Texts. You can find
a copy of the GFDL at this <ulink type="help"
url="ghelp:fdl">link</ulink> or in the file COPYING-DOCS
url="help:fdl">link</ulink> or in the file COPYING-DOCS
distributed with this manual.
</para>
<para> This manual is part of a collection of GNOME manuals
......
include $(top_srcdir)/gnome-doc-utils.make
dist-hook: doc-dist-hook
@YELP_HELP_RULES@
DOC_MODULE = gucharmap
DOC_ENTITIES = legal.xml
DOC_INCLUDES =
HELP_ID = gucharmap
DOC_LINGUAS = bg ca cs de el en_GB es fi fr gl ko oc pt_BR ru sl sv vi zh_CN
HELP_FILES = \
index.docbook \
legal.xml
HELP_LINGUAS = bg ca cs de el en_GB es fi fr gl ko oc pt_BR ru sl sv vi zh_CN
-include $(top_srcdir)/git.mk
<?xml version="1.0" standalone="no"?>
<omf>
<resource>
<subject category="GNOME|Applications|Accessories"/>
<type>
user's guide
</type>
<relation seriesid="054930fe-ff13-11d7-927b-c1ece0bc6c90"/>
<rights type="GNU FDL" license.version="1.1" holder="Sun Microsystems"/>
</resource>
</omf>
#
# No modifications of this Makefile should be necessary.
#
# To use this template:
# 1) Define: figdir, docname, lang, omffile, and entities in
# your Makefile.am file for each document directory,
# although figdir, omffile, and entities may be empty
# 2) Make sure the Makefile in (1) also includes
# "include $(top_srcdir)/xmldocs.make" and
# "dist-hook: app-dist-hook".
# 3) Optionally define 'entities' to hold xml entities which
# you would also like installed
# 4) Figures must go under $(figdir)/ and be in PNG format
# 5) You should only have one document per directory
# 6) Note that the figure directory, $(figdir)/, should not have its
# own Makefile since this Makefile installs those figures.
#
# example Makefile.am:
# figdir = figures
# docname = scrollkeeper-manual
# lang = C
# omffile=scrollkeeper-manual-C.omf
# entities = fdl.xml
# include $(top_srcdir)/xmldocs.make
# dist-hook: app-dist-hook
#
# About this file:
# This file was taken from scrollkeeper_example2, a package illustrating
# how to install documentation and OMF files for use with ScrollKeeper
# 0.3.x and 0.4.x. For more information, see:
# http://scrollkeeper.sourceforge.net/
# Version: 0.1.2 (last updated: March 20, 2002)
#
# ************* Begin of section some packagers may need to modify **************
# This variable (docdir) specifies where the documents should be installed.
# This default value should work for most packages.
# docdir = $(datadir)/@PACKAGE@/doc/$(docname)/$(lang)
docdir = $(datadir)/gnome/help/$(docname)/$(lang)
# ************** You should not have to edit below this line *******************
xml_files = $(entities) $(docname).xml
EXTRA_DIST = $(xml_files) $(omffile)
CLEANFILES = omf_timestamp
# If the following file is in a subdir (like help/) you need to add that to the path
include $(top_srcdir)/help/omf.make
all: omf
$(docname).xml: $(entities)
-ourdir=`pwd`; \
cd $(srcdir); \
cp $(entities) $$ourdir
app-dist-hook:
if test "$(figdir)"; then \
$(mkinstalldirs) $(distdir)/$(figdir); \
for file in $(srcdir)/$(figdir)/*.png; do \
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
$(INSTALL_DATA) $$file $(distdir)/$(figdir)/$$basefile; \
done \
fi
install-data-local: omf
$(mkinstalldirs) $(DESTDIR)$(docdir)
for file in $(xml_files); do \
cp $(srcdir)/$$file $(DESTDIR)$(docdir); \
done
if test "$(figdir)"; then \
$(mkinstalldirs) $(DESTDIR)$(docdir)/$(figdir); \
for file in $(srcdir)/$(figdir)/*.png; do \
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
$(INSTALL_DATA) $$file $(DESTDIR)$(docdir)/$(figdir)/$$basefile; \
done \
fi
install-data-hook: install-data-hook-omf
uninstall-local: uninstall-local-doc uninstall-local-omf
uninstall-local-doc:
-if test "$(figdir)"; then \
for file in $(srcdir)/$(figdir)/*.png; do \
basefile=`echo $$file | sed -e 's,^.*/,,'`; \
rm -f $(docdir)/$(figdir)/$$basefile; \
done; \
rmdir $(DESTDIR)$(docdir)/$(figdir); \
fi
-for file in $(xml_files); do \
rm -f $(DESTDIR)$(docdir)/$$file; \
done
-rmdir $(DESTDIR)$(docdir)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment