null+****@clear*****
null+****@clear*****
2011年 5月 8日 (日) 14:36:53 JST
Kouhei Sutou 2011-05-08 05:36:53 +0000 (Sun, 08 May 2011)
New Revision: cf17966356a3f36e7b1f552e8b430bb08f0fe467
Log:
[doc][pdf] add all /usr/share/fonts/ sub directories to path.
Modified files:
doc/source/conf.py
Modified: doc/source/conf.py (+5 -2)
===================================================================
--- doc/source/conf.py 2011-05-08 05:23:08 +0000 (20cf92a)
+++ doc/source/conf.py 2011-05-08 05:36:53 +0000 (0c58084)
@@ -253,10 +253,13 @@ pdf_documents = [
u'groonga %s document' % (release,),
u'groonga project')
]
+pdf_stylesheets = ['sphinx', 'kerning', 'a4']
if 'language' in dir():
pdf_language = language
- pdf_stylesheets = ['sphinx', 'kerning', 'a4', 'styles/pdf/%s' % pdf_language]
-pdf_font_path = ['/usr/share/fonts']
+ pdf_stylesheets += ['styles/pdf/%s' % pdf_language]
+pdf_font_path = []
+for root, dirs, files in os.walk('/usr/share/fonts'):
+ pdf_font_path += map(lambda(dir): os.path.join(root, dir), dirs)
pdf_fit_mode = "shrink"
pdf_inline_footnotes = True
pdf_break_level = 2