Add support for generating applehelp

This commit is contained in:
Jonathan Springer 2015-08-24 13:32:21 -04:00
parent 98d9fe5d0b
commit eb6f22cad9
2 changed files with 11 additions and 1 deletions

View File

@ -21,6 +21,7 @@ help:
@echo " json to make JSON files" @echo " json to make JSON files"
@echo " htmlhelp to make HTML files and a HTML help project" @echo " htmlhelp to make HTML files and a HTML help project"
@echo " qthelp to make HTML files and a qthelp 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 " 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 " changes to make an overview of all changed/added/deprecated items"
@echo " linkcheck to check all external links for integrity" @echo " linkcheck to check all external links for integrity"
@ -64,6 +65,11 @@ qthelp:
@echo "To view the help file:" @echo "To view the help file:"
@echo "# assistant -collectionFile build/qthelp/OpenLP.qhc" @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: latex:
$(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex $(SPHINXBUILD) -b latex $(ALLSPHINXOPTS) build/latex
@echo @echo

View File

@ -95,7 +95,7 @@ pygments_style = 'sphinx'
if sys.argv[2] == 'qthelp' or sys.argv[2] == 'htmlhelp': if sys.argv[2] == 'qthelp' or sys.argv[2] == 'htmlhelp':
html_theme = 'openlp_qthelp' html_theme = 'openlp_qthelp'
else: else:
html_theme = 'default' html_theme = 'classic'
# Theme options are theme-specific and customize the look and feel of a theme # 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 # further. For a list of options available for each theme, see the
@ -226,3 +226,7 @@ man_pages = [
('index', 'openlp', u'OpenLP Reference Manual', ('index', 'openlp', u'OpenLP Reference Manual',
[u'Wesley Stout'], 1) [u'Wesley Stout'], 1)
] ]
# -- Options for apple help output --------------------------------------------
applehelp_bundle_id = 'org.openlp.OpenLP.help'