|
33 | 33 | # ones.
|
34 | 34 |
|
35 | 35 | # Add any paths that contain templates here, relative to this directory.
|
36 |
| -templates_path = ['_templates'] |
| 36 | +templates_path = ["_templates"] |
37 | 37 |
|
38 | 38 | # The suffix(es) of source filenames.
|
39 | 39 | # You can specify multiple suffix as a list of string:
|
40 | 40 | #
|
41 | 41 | # source_suffix = ['.rst', '.md']
|
42 |
| -source_suffix = '.rst' |
| 42 | +source_suffix = ".rst" |
43 | 43 |
|
44 | 44 | # The master toctree document.
|
45 |
| -master_doc = 'index' |
| 45 | +master_doc = "index" |
46 | 46 |
|
47 | 47 | # General information about the project.
|
48 |
| -project = u'python-parallel-programming-cookbook-cn' |
49 |
| -copyright = u'2017, laixintao' |
50 |
| -author = u'laixintao' |
| 48 | +project = u"python-parallel-programming-cookbook-cn" |
| 49 | +copyright = u"2017, laixintao" |
| 50 | +author = u"laixintao" |
51 | 51 |
|
52 | 52 | # The version info for the project you're documenting, acts as replacement for
|
53 | 53 | # |version| and |release|, also used in various other places throughout the
|
54 | 54 | # built documents.
|
55 | 55 | #
|
56 | 56 | # The short X.Y version.
|
57 |
| -version = u'1.0' |
| 57 | +version = u"1.0" |
58 | 58 |
|
59 | 59 | # The full version, including alpha/beta/rc tags.
|
60 |
| -release = u'1.0' |
| 60 | +release = u"1.0" |
61 | 61 |
|
62 | 62 | # The language for content autogenerated by Sphinx. Refer to documentation
|
63 | 63 | # for a list of supported languages.
|
64 | 64 | #
|
65 | 65 | # This is also used if you do content translation via gettext catalogs.
|
66 | 66 | # Usually you set "language" from the command line for these cases.
|
67 |
| -language = 'zh_CN' |
| 67 | +language = "zh_CN" |
68 | 68 |
|
69 | 69 | # List of patterns, relative to source directory, that match files and
|
70 | 70 | # directories to ignore when looking for source files.
|
71 | 71 | # This patterns also effect to html_static_path and html_extra_path
|
72 |
| -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] |
| 72 | +exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"] |
73 | 73 |
|
74 | 74 | # The name of the Pygments (syntax highlighting) style to use.
|
75 |
| -pygments_style = 'sphinx' |
| 75 | +pygments_style = "sphinx" |
76 | 76 |
|
77 | 77 | # If true, `todo` and `todoList` produce output, else they produce nothing.
|
78 | 78 | todo_include_todos = False
|
|
83 | 83 | # The theme to use for HTML and HTML Help pages. See the documentation for
|
84 | 84 | # a list of builtin themes.
|
85 | 85 | #
|
86 |
| -html_theme = 'sphinx_rtd_theme' |
| 86 | +html_theme = "sphinx_rtd_theme" |
87 | 87 |
|
88 | 88 | # Theme options are theme-specific and customize the look and feel of a theme
|
89 | 89 | # further. For a list of options available for each theme, see the
|
|
102 | 102 | # This is required for the alabaster theme
|
103 | 103 | # refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
|
104 | 104 | html_sidebars = {
|
105 |
| - '**': [ |
106 |
| - 'about.html', |
107 |
| - 'navigation.html', |
108 |
| - 'relations.html', # needs 'show_related': True theme option to display |
109 |
| - 'searchbox.html', |
110 |
| - 'donate.html', |
| 105 | + "**": [ |
| 106 | + "about.html", |
| 107 | + "navigation.html", |
| 108 | + "relations.html", # needs 'show_related': True theme option to display |
| 109 | + "searchbox.html", |
| 110 | + "donate.html", |
111 | 111 | ]
|
112 | 112 | }
|
113 | 113 |
|
114 | 114 |
|
115 | 115 | # -- Options for HTMLHelp output ------------------------------------------
|
116 | 116 |
|
117 | 117 | # Output file base name for HTML help builder.
|
118 |
| -htmlhelp_basename = 'python-parallel-programming-cookbook-cndoc' |
| 118 | +htmlhelp_basename = "python-parallel-programming-cookbook-cndoc" |
119 | 119 |
|
120 | 120 |
|
121 | 121 | # -- Options for LaTeX output ---------------------------------------------
|
122 | 122 |
|
123 | 123 | latex_elements = {
|
124 |
| - # The paper size ('letterpaper' or 'a4paper'). |
125 |
| - #'papersize': 'letterpaper', |
126 |
| - |
127 |
| - # The font size ('10pt', '11pt' or '12pt'). |
128 |
| - #'pointsize': '10pt', |
129 |
| - |
130 |
| - # Additional stuff for the LaTeX preamble. |
131 |
| - #'preamble': '', |
132 |
| - 'preamble': r''' |
133 |
| - \hypersetup{unicode=true} |
134 |
| - \usepackage{CJKutf8} |
135 |
| - \DeclareUnicodeCharacter{00A0}{\nobreakspace} |
136 |
| - \DeclareUnicodeCharacter{2203}{\ensuremath{\exists}} |
137 |
| - \DeclareUnicodeCharacter{2200}{\ensuremath{\forall}} |
138 |
| - \DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}} |
139 |
| - \DeclareUnicodeCharacter{2713}{x} |
140 |
| - \DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}} |
141 |
| - \DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}} |
142 |
| - \DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}} |
143 |
| - \DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}} |
144 |
| - \DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}} |
145 |
| - \begin{CJK}{UTF8}{gbsn} |
146 |
| - \AtEndDocument{\end{CJK}} |
147 |
| - ''', |
| 124 | + "preamble": """ |
| 125 | +\\hypersetup{unicode=true} |
| 126 | +\\usepackage{CJKutf8} |
| 127 | +\\AtBeginDocument{\\begin{CJK}{UTF8}{gbsn}} |
| 128 | +\\AtEndDocument{\\end{CJK}} |
| 129 | +""" |
148 | 130 | }
|
149 | 131 |
|
| 132 | +# latex_elements = { |
| 133 | +# # The paper size ('letterpaper' or 'a4paper'). |
| 134 | +# # 'papersize': 'letterpaper', |
| 135 | +# # The font size ('10pt', '11pt' or '12pt'). |
| 136 | +# # 'pointsize': '10pt', |
| 137 | +# # Additional stuff for the LaTeX preamble. |
| 138 | +# # 'preamble': '', |
| 139 | +# "preamble": r""" |
| 140 | +# \hypersetup{unicode=true} |
| 141 | +# \usepackage{CJKutf8} |
| 142 | +# \DeclareUnicodeCharacter{00A0}{\nobreakspace} |
| 143 | +# \DeclareUnicodeCharacter{2203}{\ensuremath{\exists}} |
| 144 | +# \DeclareUnicodeCharacter{2200}{\ensuremath{\forall}} |
| 145 | +# \DeclareUnicodeCharacter{2286}{\ensuremath{\subseteq}} |
| 146 | +# \DeclareUnicodeCharacter{2713}{x} |
| 147 | +# \DeclareUnicodeCharacter{27FA}{\ensuremath{\Longleftrightarrow}} |
| 148 | +# \DeclareUnicodeCharacter{221A}{\ensuremath{\sqrt{}}} |
| 149 | +# \DeclareUnicodeCharacter{221B}{\ensuremath{\sqrt[3]{}}} |
| 150 | +# \DeclareUnicodeCharacter{2295}{\ensuremath{\oplus}} |
| 151 | +# \DeclareUnicodeCharacter{2297}{\ensuremath{\otimes}} |
| 152 | +# \begin{CJK}{UTF8}{gbsn} |
| 153 | +# \AtEndDocument{\end{CJK}} |
| 154 | +# """ |
| 155 | +# } |
| 156 | + |
150 | 157 | # Grouping the document tree into LaTeX files. List of tuples
|
151 | 158 | # (source start file, target name, title,
|
152 | 159 | # author, documentclass [howto, manual, or own class]).
|
153 | 160 | latex_documents = [
|
154 |
| - (master_doc, 'python-parallel-programming-cookbook-cn.tex', u'python-parallel-programming-cookbook-cn Documentation', |
155 |
| - u'laixintao', 'manual'), |
| 161 | + ( |
| 162 | + master_doc, |
| 163 | + "python-parallel-programming-cookbook-cn.tex", |
| 164 | + u"python-parallel-programming-cookbook-cn Documentation", |
| 165 | + u"laixintao", |
| 166 | + "manual", |
| 167 | + ) |
156 | 168 | ]
|
157 | 169 |
|
158 | 170 |
|
|
161 | 173 | # One entry per manual page. List of tuples
|
162 | 174 | # (source start file, name, description, authors, manual section).
|
163 | 175 | man_pages = [
|
164 |
| - (master_doc, 'python-parallel-programming-cookbook-cn', u'python-parallel-programming-cookbook-cn Documentation', |
165 |
| - [author], 1) |
| 176 | + ( |
| 177 | + master_doc, |
| 178 | + "python-parallel-programming-cookbook-cn", |
| 179 | + u"python-parallel-programming-cookbook-cn Documentation", |
| 180 | + [author], |
| 181 | + 1, |
| 182 | + ) |
166 | 183 | ]
|
167 | 184 |
|
168 | 185 |
|
|
172 | 189 | # (source start file, target name, title, author,
|
173 | 190 | # dir menu entry, description, category)
|
174 | 191 | texinfo_documents = [
|
175 |
| - (master_doc, 'python-parallel-programming-cookbook-cn', u'python-parallel-programming-cookbook-cn Documentation', |
176 |
| - author, 'python-parallel-programming-cookbook-cn', 'One line description of project.', |
177 |
| - 'Miscellaneous'), |
| 192 | + ( |
| 193 | + master_doc, |
| 194 | + "python-parallel-programming-cookbook-cn", |
| 195 | + u"python-parallel-programming-cookbook-cn Documentation", |
| 196 | + author, |
| 197 | + "python-parallel-programming-cookbook-cn", |
| 198 | + "One line description of project.", |
| 199 | + "Miscellaneous", |
| 200 | + ) |
178 | 201 | ]
|
179 | 202 |
|
180 | 203 | rst_epilog = u"""
|
|
0 commit comments