From eb6f22cad9e1580f772af514af5aca88a1d0b0e6 Mon Sep 17 00:00:00 2001 From: Jonathan Springer Date: Mon, 24 Aug 2015 13:32:21 -0400 Subject: [PATCH] Add support for generating applehelp --- manual/Makefile | 6 ++++++ manual/source/conf.py | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/manual/Makefile b/manual/Makefile index aa8e5f4..c63b06f 100644 --- a/manual/Makefile +++ b/manual/Makefile @@ -21,6 +21,7 @@ help: @echo " json to make JSON files" @echo " htmlhelp to make HTML files and a HTML help project" @echo " qthelp to make HTML files and a qthelp project" + @echo " applehelp to make HTML files and a applehelp project" @echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @echo " changes to make an overview of all changed/added/deprecated items" @echo " linkcheck to check all external links for integrity" @@ -64,6 +65,11 @@ qthelp: @echo "To view the help file:" @echo "# assistant -collectionFile build/qthelp/OpenLP.qhc" +applehelp: + $(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) build/applehelp + @echo + @echo "Build finished. The help file is in build/applehelp." + latex: $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex @echo diff --git a/manual/source/conf.py b/manual/source/conf.py index 2d298a7..c4898b1 100644 --- a/manual/source/conf.py +++ b/manual/source/conf.py @@ -95,7 +95,7 @@ pygments_style = 'sphinx' if sys.argv[2] == 'qthelp' or sys.argv[2] == 'htmlhelp': html_theme = 'openlp_qthelp' else: - html_theme = 'default' + html_theme = 'classic' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the @@ -226,3 +226,7 @@ man_pages = [ ('index', 'openlp', u'OpenLP Reference Manual', [u'Wesley Stout'], 1) ] + +# -- Options for apple help output -------------------------------------------- + +applehelp_bundle_id = 'org.openlp.OpenLP.help'