Commits

Takayuki KONDO committed 73045dd

support PDF output

  • Participants
  • Parent commits a325387

Comments (0)

Files changed (3)

 	$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
 	@echo "Testing of doctests in the sources finished, look at the " \
 	      "results in $(BUILDDIR)/doctest/output.txt."
+
+
+pdf:
+	$(SPHINXBUILD) -b pdf $(ALLSPHINXOPTS) $(BUILDDIR)/pdf
+	@echo
+	@echo "Build finished. The PDF file is in $(BUILDDIR)/pdf."
 # How to display URL addresses: 'footnote', 'no', or 'inline'.
 #texinfo_show_urls = 'footnote'
 
+extensions += ['sphinx.ext.autodoc', 'rst2pdf.pdfbuilder']
 
+pdf_documents = [
+    ('index', u'example', u'example ドキュメント', u'cointoss1973'),
+    ]
+pdf_stylesheets = ['sphinx', 'kerning', 'a4', 'ja']
+pdf_font_path = ['C:\Windows\Fonts']
+pdf_language = "ja"
 
 
+{
+  "fontsAlias" : {
+     "stdFont": "meiryo",
+     "stdBold": "meiryob",
+     "stdItalic": "meiryo",
+     "stdBoldItalic": "meiryo",
+     "stdMono": "MS Gothic",
+     "stdMonoBold": "MS Gothic",
+     "stdMonoItalic": "MS Gothic",
+     "stdMonoBoldItalic": "MS Gothic"
+},
+"styles" : [
+  ["base", {
+   "wordWrap": "CJK"
+  }],
+  ["literal", {
+   "wordWrap": "None"
+  }]
+ ]
+}