SRCS = $(glob *.rst)
-.PHONY: clean dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
+.PHONY: clean dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest pdf
# default target is html.
.DEFAULT: $(SRCS)
doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
+
+# TODO: rewrite code to build this as pdf.
+pdf:
+ $(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = []
+extensions = ['sphinx.ext.autodoc', 'rst2pdf.pdfbuilder']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
html_last_updated_fmt = '%Y/%m/%d'
-html_title = u"OMakeマニュアル 日本語訳"
+html_title = u"OMake マニュアル 日本語訳"
# -- Options for PDF output --------------------------------------------------
# Grouping the document tree into PDF files. List of tuples
# (source start file, target name, title, author, options).
#
-# If there is more than one author, separate them with \\.
-# For example: r'Guido van Rossum\\Fred L. Drake, Jr., editor'
+# If there is more than one author, separate them with ¥¥.
+# For example: r'Guido van Rossum¥¥Fred L. Drake, Jr., editor'
#
# The options element is a dictionary that lets you override
# this config per-document.
# Create a compressed PDF
# Use True/False or 1/0
# Example: compressed=True
-#pdf_compressed = False
+pdf_compressed = False
# A colon-separated list of folders to search for fonts. Example:
-# pdf_font_path = ['/usr/share/fonts', '/usr/share/texmf-dist/fonts/']
+pdf_font_path = ['/usr/share/fonts', '/usr/share/texmf-dist/fonts/', '/usr/share/fonts/truetype/vlgothic/']
# Language to be used for hyphenation support
pdf_language = "ja"
# Insert footnotes where they are defined instead of
# at the end.
-#pdf_inline_footnotes = True
+pdf_inline_footnotes = True
# verbosity level. 0 1 or 2
-#pdf_verbosity = 0
+pdf_verbosity = 0
# If false, no index is generated.
#pdf_use_index = True
--- /dev/null
+{
+ "styles" : [["base" , {"wordWrap": "CJK"}]],
+ "embeddedFonts" : [["VL-Gothic-Regular.ttf", "VL-PGothic-Regular.ttf", "VL-Gothic-Regular.ttf", "VL-Gothic-Regular.ttf"]],
+ "fontsAlias" : {
+ "stdFont": "VL-PGothic-Regular",
+ "stdBold": "VL-PGothic-Regular",
+ "stdItalic": "VL-PGothic-Regular",
+ "stdMono": "VL-Gothic-Regular"
+ }
+}