[gnome-subtitles/wip/piotrdrag/port-to-yelp] Port help to yelp-tools



commit 07532161561942f0dc635950806265e27272180b
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Sat Oct 6 02:08:03 2018 +0200

    Port help to yelp-tools
    
    https://wiki.gnome.org/Initiatives/GnomeGoals/NewDocumentationInfrastructure

 Makefile.am                                   |   1 -
 README                                        |   2 +-
 configure.ac                                  |   2 +-
 gnome-doc-utils.make                          | 706 --------------------------
 help/C/{gnome-subtitles.xml => index.docbook} |   2 +-
 help/Makefile.am                              |  13 +-
 help/gnome-subtitles.omf.in                   |  29 --
 m4/gnome-doc-utils.m4                         |  61 ---
 src/GnomeSubtitles/Core/EventHandlers.cs      |   2 +-
 9 files changed, 11 insertions(+), 807 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 1f1d0c0..6c36925 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,7 +20,6 @@ gstpbdir = $(pkglibdir)
 
 EXTRA_DIST =                   \
        autogen.sh                      \
-       gnome-doc-utils.make    \
        gnome-subtitles.csproj \
        gnome-subtitles.sln \
        intltool-extract.in \
diff --git a/README b/README
index 64b8122..2668c71 100644
--- a/README
+++ b/README
@@ -25,7 +25,7 @@ Run time dependencies:
 - gtkspell3            >= 3.0
 
 Build time dependencies:
-- pkg-config, intltool, autoconf, automake, libtool and gnome-doc-utils
+- pkg-config, intltool, autoconf, automake, libtool and yelp-tools
 - libgtk-3-dev         >= 3.12
 - mono-devel           >= 4.0
 - gtk-sharp3           >= 2.99.2
diff --git a/configure.ac b/configure.ac
index c7e5f33..110bb81 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,7 @@ AC_INIT([gnome-subtitles],
        [gnome-subtitles],
        [http://www.gnomesubtitles.org])
 
-GNOME_DOC_INIT
+YELP_HELP_INIT
 GTK_DOC_CHECK([1.0])
 
 AC_CONFIG_MACRO_DIR([m4])
diff --git a/help/C/gnome-subtitles.xml b/help/C/index.docbook
similarity index 99%
rename from help/C/gnome-subtitles.xml
rename to help/C/index.docbook
index 6f26e1d..650d438 100644
--- a/help/C/gnome-subtitles.xml
+++ b/help/C/index.docbook
@@ -91,7 +91,7 @@
   <legalnotice>
     <title>Feedback</title>
     <para>To report a bug or make a suggestion regarding the &app; application or
-      this manual, follow the directions in the <ulink url="ghelp:gnome-feedback" type="help">GNOME Feedback 
Page</ulink>.
+      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>
diff --git a/help/Makefile.am b/help/Makefile.am
index 7c400ea..c98de01 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -1,8 +1,9 @@
-include $(top_srcdir)/gnome-doc-utils.make
+@YELP_HELP_RULES@
 
-DOC_MODULE = gnome-subtitles
-DOC_ENTITIES = legal.xml
-DOC_LINGUAS = ca cs da de el es fr oc pt_BR ro sl sv
-DOC_FIGURES = 
+HELP_ID = gnome-subtitles
 
-dist-hook: doc-dist-hook
+HELP_FILES = \
+       index.docbook \
+       legal.xml
+
+HELP_LINGUAS = ca cs da de el es fr oc pt_BR ro sl sv
diff --git a/src/GnomeSubtitles/Core/EventHandlers.cs b/src/GnomeSubtitles/Core/EventHandlers.cs
index 84878f2..d9bf53d 100644
--- a/src/GnomeSubtitles/Core/EventHandlers.cs
+++ b/src/GnomeSubtitles/Core/EventHandlers.cs
@@ -426,7 +426,7 @@ public class EventHandlers {
        /*      Help Menu */
 
        public void OnHelpContents (object o, EventArgs args) {
-               Util.OpenUrl("ghelp:gnome-subtitles");
+               Util.OpenUrl("help:gnome-subtitles");
        }
 
        public void OnHelpKeyboardShortcuts (object o, EventArgs args) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]