diff options
author | Georg Brandl <georg@python.org> | 2015-03-08 15:35:04 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2015-03-08 15:35:04 +0100 |
commit | 705f6a997bf622cdc95f80868d0fd0a703124b1d (patch) | |
tree | a33a6cb96f3dd9e2a06e42d98f2aace20f54b23e /sphinx/quickstart.py | |
parent | f2267942f3e4ff9b33a7457af0d00b9841ec842b (diff) | |
parent | cc58f0a5e4804a0e5054d01bd07a76ed8ce17937 (diff) | |
download | sphinx-git-705f6a997bf622cdc95f80868d0fd0a703124b1d.tar.gz |
Merge branch 'apple-help' of git://github.com/al45tair/sphinx
Diffstat (limited to 'sphinx/quickstart.py')
-rw-r--r-- | sphinx/quickstart.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sphinx/quickstart.py b/sphinx/quickstart.py index ed714d939..8f4e0ed52 100644 --- a/sphinx/quickstart.py +++ b/sphinx/quickstart.py @@ -32,6 +32,7 @@ except ImportError: from six import PY2, PY3, text_type from six.moves import input +from six.moves.urllib.parse import quote as urlquote from docutils.utils import column_width from sphinx import __version__ @@ -86,6 +87,7 @@ QUICKSTART_CONF += u'''\ import sys import os +import shlex # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the @@ -496,6 +498,7 @@ help: \t@echo " json to make JSON files" \t@echo " htmlhelp to make HTML files and a HTML help project" \t@echo " qthelp to make HTML files and a qthelp project" +\t@echo " applehelp to make an Apple Help Book" \t@echo " devhelp to make HTML files and a Devhelp project" \t@echo " epub to make an epub" \t@echo " latex to make LaTeX files, you can set PAPER=a4 or PAPER=letter" @@ -557,6 +560,14 @@ qthelp: \t@echo "To view the help file:" \t@echo "# assistant -collectionFile $(BUILDDIR)/qthelp/%(project_fn)s.qhc" +applehelp: +\t$(SPHINXBUILD) -b applehelp $(ALLSPHINXOPTS) $(BUILDDIR)/applehelp +\t@echo +\t@echo "Build finished. The help book is in $(BUILDDIR)/applehelp." +\t@echo "N.B. You won't be able to view it unless you put it in" \\ +\t "~/Library/Documentation/Help or install it in your application" \\ +\t "bundle." + devhelp: \t$(SPHINXBUILD) -b devhelp $(ALLSPHINXOPTS) $(BUILDDIR)/devhelp \t@echo @@ -1278,6 +1289,7 @@ def generate(d, overwrite=True, silent=False): d['mastertocmaxdepth'] = 2 d['project_fn'] = make_filename(d['project']) + d['project_url'] = urlquote(d['project'].encode('idna')) d['project_manpage'] = d['project_fn'].lower() d['now'] = time.asctime() d['project_underline'] = column_width(d['project']) * '=' |