conf修正
This commit is contained in:
@@ -79,7 +79,7 @@ By default, virtual environments are completely clean and contain no third-party
|
||||
If you would like to include already installed packages as part of a virtual environment,
|
||||
create the environment using the --system-site-packages option. For example:
|
||||
|
||||
.. code-block:: python'
|
||||
.. code-block:: python
|
||||
|
||||
bash % pyvenv --system-site-packages Spam
|
||||
bash %
|
||||
|
||||
@@ -44,7 +44,7 @@ master_doc = 'index'
|
||||
|
||||
# General information about the project.
|
||||
project = u'python3-cookbook'
|
||||
copyright = u'2014, Xiong Neng'
|
||||
copyright = u'熊能,2015'
|
||||
|
||||
# The version info for the project you're documenting, acts as replacement for
|
||||
# |version| and |release|, also used in various other places throughout the
|
||||
@@ -57,7 +57,7 @@ release = '1.0.0'
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
language = 'zh_CN'
|
||||
# language = 'zh_CN'
|
||||
|
||||
# There are two options for replacing |today|: either, you set today to some
|
||||
# non-false value, then it is used:
|
||||
@@ -85,7 +85,7 @@ exclude_patterns = []
|
||||
#show_authors = False
|
||||
|
||||
# The name of the Pygments (syntax highlighting) style to use.
|
||||
pygments_style = 'sphinx'
|
||||
# pygments_style = 'sphinx'
|
||||
|
||||
# A list of ignored prefixes for module index sorting.
|
||||
#modindex_common_prefix = []
|
||||
@@ -178,25 +178,30 @@ html_static_path = ['_static']
|
||||
# Output file base name for HTML help builder.
|
||||
htmlhelp_basename = 'python3-cookbook doc'
|
||||
|
||||
|
||||
# -- Options for LaTeX output ---------------------------------------------
|
||||
|
||||
latex_elements = {
|
||||
# The paper size ('letterpaper' or 'a4paper').
|
||||
#'papersize': 'letterpaper',
|
||||
|
||||
# The font size ('10pt', '11pt' or '12pt').
|
||||
#'pointsize': '10pt',
|
||||
|
||||
# Additional stuff for the LaTeX preamble.
|
||||
#'preamble': '',
|
||||
}
|
||||
latex_elements={# The paper size ('letterpaper' or 'a4paper').
|
||||
'papersize':'a4paper',# The font size ('10pt', '11pt' or '12pt').
|
||||
'pointsize':'12pt','classoptions':',oneside','babel':'',#必須
|
||||
'inputenc':'',#必須
|
||||
'utf8extra':'',#必須
|
||||
'preamble': r"""
|
||||
\usepackage{xeCJK}
|
||||
\usepackage{indentfirst}
|
||||
\setlength{\parindent}{2em}
|
||||
\setCJKmainfont{WenQuanYi Micro Hei}
|
||||
\setCJKmonofont[Scale=0.9]{WenQuanYi Micro Hei Mono}
|
||||
\setCJKfamilyfont{song}{WenQuanYi Micro Hei}
|
||||
\setCJKfamilyfont{sf}{WenQuanYi Micro Hei}
|
||||
\XeTeXlinebreaklocale "zh"
|
||||
\XeTeXlinebreakskip = 0pt plus 1pt
|
||||
"""}
|
||||
|
||||
# Grouping the document tree into LaTeX files. List of tuples
|
||||
# (source start file, target name, title,
|
||||
# author, documentclass [howto, manual, or own class]).
|
||||
latex_documents = [
|
||||
('index', 'python3-cookbook.tex', u'python3-cookbook Documentation',
|
||||
('index', 'python3-cookbook.tex', u'《Python Cookbook》第三版',
|
||||
u'Xiong Neng', 'manual'),
|
||||
]
|
||||
|
||||
@@ -226,7 +231,7 @@ latex_documents = [
|
||||
# One entry per manual page. List of tuples
|
||||
# (source start file, name, description, authors, manual section).
|
||||
man_pages = [
|
||||
('index', 'python3-cookbook', u'python3-cookbook Documentation',
|
||||
('index', 'python3-cookbook', u'《Python Cookbook》第三版',
|
||||
[u'Xiong Neng'], 1)
|
||||
]
|
||||
|
||||
@@ -240,8 +245,8 @@ man_pages = [
|
||||
# (source start file, target name, title, author,
|
||||
# dir menu entry, description, category)
|
||||
texinfo_documents = [
|
||||
('index', 'python3-cookbook', u'python3-cookbook Documentation',
|
||||
u'Xiong Neng', 'python3-cookbook', 'One line description of project.',
|
||||
('index', 'python3-cookbook', u'《Python Cookbook》第三版',
|
||||
u'Xiong Neng', 'python3-cookbook', '《Python Cookbook》第三版',
|
||||
'Miscellaneous'),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user