Debian Codegraph @

doc/changes/1.0.rst

raw
1 ==========
2 Sphinx 1.0
3 ==========
4
5
6 Release 1.0.8 (Sep 23, 2011)
7 ============================
8
9 * #627: Fix tracebacks for AttributeErrors in autosummary generation.
10
11 * Fix the ``abbr`` role when the abbreviation has newlines in it.
12
13 * #727: Fix the links to search results with custom object types.
14
15 * #648: Fix line numbers reported in warnings about undefined
16 references.
17
18 * #696, #666: Fix C++ array definitions and template arguments
19 that are not type names.
20
21 * #633: Allow footnotes in section headers in LaTeX output.
22
23 * #616: Allow keywords to be linked via intersphinx.
24
25 * #613: Allow Unicode characters in production list token names.
26
27 * #720: Add dummy visitors for graphviz nodes for text and man.
28
29 * #704: Fix image file duplication bug.
30
31 * #677: Fix parsing of multiple signatures in C++ domain.
32
33 * #637: Ignore Emacs lock files when looking for source files.
34
35 * #544: Allow .pyw extension for importable modules in autodoc.
36
37 * #700: Use ``$(MAKE)`` in quickstart-generated Makefiles.
38
39 * #734: Make sidebar search box width consistent in browsers.
40
41 * #644: Fix spacing of centered figures in HTML output.
42
43 * #767: Safely encode SphinxError messages when printing them to
44 sys.stderr.
45
46 * #611: Fix LaTeX output error with a document with no sections but
47 a link target.
48
49 * Correctly treat built-in method descriptors as methods in autodoc.
50
51 * #706: Stop monkeypatching the Python textwrap module.
52
53 * #657: viewcode now works correctly with source files that have
54 non-ASCII encoding.
55
56 * #669: Respect the ``noindex`` flag option in py:module directives.
57
58 * #675: Fix IndexErrors when including nonexisting lines with
59 ``literalinclude``.
60
61 * #676: Respect custom function/method parameter separator strings.
62
63 * #682: Fix JS incompatibility with jQuery >= 1.5.
64
65 * #693: Fix double encoding done when writing HTMLHelp .hhk files.
66
67 * #647: Do not apply SmartyPants in parsed-literal blocks.
68
69 * C++ domain now supports array definitions.
70
71
72 Release 1.0.7 (Jan 15, 2011)
73 ============================
74
75 * #347: Fix wrong generation of directives of static methods in
76 autosummary.
77
78 * #599: Import PIL as ``from PIL import Image``.
79
80 * #558: Fix longtables with captions in LaTeX output.
81
82 * Make token references work as hyperlinks again in LaTeX output.
83
84 * #572: Show warnings by default when reference labels cannot be
85 found.
86
87 * #536: Include line number when complaining about missing reference
88 targets in nitpicky mode.
89
90 * #590: Fix inline display of graphviz diagrams in LaTeX output.
91
92 * #589: Build using app.build() in setup command.
93
94 * Fix a bug in the inheritance diagram exception that caused base
95 classes to be skipped if one of them is a builtin.
96
97 * Fix general index links for C++ domain objects.
98
99 * #332: Make admonition boundaries in LaTeX output visible.
100
101 * #573: Fix KeyErrors occurring on rebuild after removing a file.
102
103 * Fix a traceback when removing files with globbed toctrees.
104
105 * If an autodoc object cannot be imported, always re-read the
106 document containing the directive on next build.
107
108 * If an autodoc object cannot be imported, show the full traceback
109 of the import error.
110
111 * Fix a bug where the removal of download files and images wasn't
112 noticed.
113
114 * #571: Implement ``~`` cross-reference prefix for the C domain.
115
116 * Fix regression of LaTeX output with the fix of #556.
117
118 * #568: Fix lookup of class attribute documentation on descriptors
119 so that comment documentation now works.
120
121 * Fix traceback with ``only`` directives preceded by targets.
122
123 * Fix tracebacks occurring for duplicate C++ domain objects.
124
125 * Fix JavaScript domain links to objects with ``$`` in their name.
126
127
128 Release 1.0.6 (Jan 04, 2011)
129 ============================
130
131 * #581: Fix traceback in Python domain for empty cross-reference
132 targets.
133
134 * #283: Fix literal block display issues on Chrome browsers.
135
136 * #383, #148: Support sorting a limited range of accented characters
137 in the general index and the glossary.
138
139 * #570: Try decoding ``-D`` and ``-A`` command-line arguments with
140 the locale's preferred encoding.
141
142 * #528: Observe ``locale_dirs`` when looking for the JS
143 translations file.
144
145 * #574: Add special code for better support of Japanese documents
146 in the LaTeX builder.
147
148 * Regression of #77: If there is only one parameter given with
149 ``:param:`` markup, the bullet list is now suppressed again.
150
151 * #556: Fix missing paragraph breaks in LaTeX output in certain
152 situations.
153
154 * #567: Emit the ``autodoc-process-docstring`` event even for objects
155 without a docstring so that it can add content.
156
157 * #565: In the LaTeX builder, not only literal blocks require different
158 table handling, but also quite a few other list-like block elements.
159
160 * #515: Fix tracebacks in the viewcode extension for Python objects
161 that do not have a valid signature.
162
163 * Fix strange reports of line numbers for warnings generated from
164 autodoc-included docstrings, due to different behavior depending
165 on Docutils version.
166
167 * Several fixes to the C++ domain.
168
169
170 Release 1.0.5 (Nov 12, 2010)
171 ============================
172
173 * #557: Add CSS styles required by Docutils 0.7 for aligned images
174 and figures.
175
176 * In the Makefile generated by LaTeX output, do not delete pdf files
177 on clean; they might be required images.
178
179 * #535: Fix LaTeX output generated for line blocks.
180
181 * #544: Allow ``.pyw`` as a source file extension.
182
183
184 Release 1.0.4 (Sep 17, 2010)
185 ============================
186
187 * #524: Open intersphinx inventories in binary mode on Windows,
188 since version 2 contains zlib-compressed data.
189
190 * #513: Allow giving non-local URIs for JavaScript files, e.g.
191 in the JSMath extension.
192
193 * #512: Fix traceback when ``intersphinx_mapping`` is empty.
194
195
196 Release 1.0.3 (Aug 23, 2010)
197 ============================
198
199 * #495: Fix internal vs. external link distinction for links coming
200 from a Docutils table-of-contents.
201
202 * #494: Fix the ``maxdepth`` option for the ``toctree()`` template
203 callable when used with ``collapse=True``.
204
205 * #507: Fix crash parsing Python argument lists containing brackets
206 in string literals.
207
208 * #501: Fix regression when building LaTeX docs with figures that
209 don't have captions.
210
211 * #510: Fix inheritance diagrams for classes that are not picklable.
212
213 * #497: Introduce separate background color for the sidebar collapse
214 button, making it easier to see.
215
216 * #502, #503, #496: Fix small layout bugs in several builtin themes.
217
218
219 Release 1.0.2 (Aug 14, 2010)
220 ============================
221
222 * #490: Fix cross-references to objects of types added by the
223 :func:`~sphinx.application.Sphinx.add_object_type` API function.
224
225 * Fix handling of doc field types for different directive types.
226
227 * Allow breaking long signatures, continuing with backlash-escaped
228 newlines.
229
230 * Fix unwanted styling of C domain references (because of a namespace
231 clash with Pygments styles).
232
233 * Allow references to PEPs and RFCs with explicit anchors.
234
235 * #471: Fix LaTeX references to figures.
236
237 * #482: When doing a non-exact search, match only the given type
238 of object.
239
240 * #481: Apply non-exact search for Python reference targets with
241 ``.name`` for modules too.
242
243 * #484: Fix crash when duplicating a parameter in an info field list.
244
245 * #487: Fix setting the default role to one provided by the
246 ``oldcmarkup`` extension.
247
248 * #488: Fix crash when json-py is installed, which provides a
249 ``json`` module but is incompatible to simplejson.
250
251 * #480: Fix handling of target naming in intersphinx.
252
253 * #486: Fix removal of ``!`` for all cross-reference roles.
254
255
256 Release 1.0.1 (Jul 27, 2010)
257 ============================
258
259 * #470: Fix generated target names for reST domain objects; they
260 are not in the same namespace.
261
262 * #266: Add Bengali language.
263
264 * #473: Fix a bug in parsing JavaScript object names.
265
266 * #474: Fix building with SingleHTMLBuilder when there is no toctree.
267
268 * Fix display names for objects linked to by intersphinx with
269 explicit targets.
270
271 * Fix building with the JSON builder.
272
273 * Fix hyperrefs in object descriptions for LaTeX.
274
275
276 Release 1.0 (Jul 23, 2010)
277 ==========================
278
279 Incompatible changes
280 --------------------
281
282 * Support for domains has been added. A domain is a collection of
283 directives and roles that all describe objects belonging together,
284 e.g. elements of a programming language. A few builtin domains are
285 provided:
286
287 - Python
288 - C
289 - C++
290 - JavaScript
291 - reStructuredText
292
293 * The old markup for defining and linking to C directives is now
294 deprecated. It will not work anymore in future versions without
295 activating the ``oldcmarkup`` extension; in Sphinx
296 1.0, it is activated by default.
297
298 * Removed support for old dependency versions; requirements are now:
299
300 - Docutils >= 0.5
301 - Jinja2 >= 2.2
302
303 * Removed deprecated elements:
304
305 - ``exclude_dirs`` config value
306 - ``sphinx.builder`` module
307
308 Features added
309 --------------
310
311 * General:
312
313 - Added a "nitpicky" mode that emits warnings for all missing
314 references. It is activated by the :option:`sphinx-build -n` command-line
315 switch or the :confval:`nitpicky` config value.
316 - Added ``latexpdf`` target in quickstart Makefile.
317
318 * Markup:
319
320 - The ``menuselection`` and ``guilabel`` roles now
321 support ampersand accelerators.
322 - New more compact doc field syntax is now recognized: ``:param type
323 name: description``.
324 - Added ``tab-width`` option to ``literalinclude`` directive.
325 - Added ``titlesonly`` option to :rst:dir:`toctree` directive.
326 - Added the ``prepend`` and ``append`` options to the
327 ``literalinclude`` directive.
328 - #284: All docinfo metadata is now put into the document metadata, not
329 just the author.
330 - The ``ref`` role can now also reference tables by caption.
331 - The :dudir:`include` directive now supports absolute paths, which
332 are interpreted as relative to the source directory.
333 - In the Python domain, references like ``:func:`.name``` now look for
334 matching names with any prefix if no direct match is found.
335
336 * Configuration:
337
338 - Added ``rst_prolog`` config value.
339 - Added ``html_secnumber_suffix`` config value to control
340 section numbering format.
341 - Added ``html_compact_lists`` config value to control
342 Docutils' compact lists feature.
343 - The ``html_sidebars`` config value can now contain patterns
344 as keys, and the values can be lists that explicitly select which
345 sidebar templates should be rendered. That means that the builtin
346 sidebar contents can be included only selectively.
347 - ``html_static_path`` can now contain single file entries.
348 - The new universal config value ``exclude_patterns`` makes the
349 old ``unused_docs``, ``exclude_trees`` and
350 ``exclude_dirnames`` obsolete.
351 - Added ``html_output_encoding`` config value.
352 - Added the ``latex_docclass`` config value and made the
353 "twoside" documentclass option overridable by "oneside".
354 - Added the ``trim_doctest_flags`` config value, which is true
355 by default.
356 - Added ``html_show_copyright`` config value.
357 - Added ``latex_show_pagerefs``` and ``latex_show_urls``
358 config values.
359 - The behavior of ``html_file_suffix``` changed slightly: the
360 empty string now means "no suffix" instead of "default suffix", use
361 ``None`` for "default suffix".
362
363 * New builders:
364
365 - Added a builder for the Epub format.
366 - Added a builder for manual pages.
367 - Added a single-file HTML builder.
368
369 * HTML output:
370
371 - Inline roles now get a CSS class with their name, allowing styles to
372 customize their appearance. Domain-specific roles get two classes,
373 ``domain`` and ``domain-rolename``.
374 - References now get the class ``internal`` if they are internal to
375 the whole project, as opposed to internal to the current page.
376 - External references can be styled differently with the new
377 ``externalrefs`` theme option for the default theme.
378 - In the default theme, the sidebar can experimentally now be made
379 collapsible using the new ``collapsiblesidebar`` theme option.
380 - #129: Toctrees are now wrapped in a ``div`` tag with class
381 ``toctree-wrapper`` in HTML output.
382 - The :data:`toctree` callable in templates now has a ``maxdepth``
383 keyword argument to control the depth of the generated tree.
384 - The :data:`toctree` callable in templates now accepts a
385 ``titles_only`` keyword argument.
386 - Added ``htmltitle`` block in layout template.
387 - In the JavaScript search, allow searching for object names including
388 the module name, like ``sys.argv``.
389 - Added new theme ``haiku``, inspired by the Haiku OS user guide.
390 - Added new theme ``nature``.
391 - Added new theme ``agogo``, created by Andi Albrecht.
392 - Added new theme ``scrolls``, created by Armin Ronacher.
393 - #193: Added a ``visitedlinkcolor`` theme option to the default
394 theme.
395 - #322: Improved responsiveness of the search page by loading the
396 search index asynchronously.
397
398 * Extension API:
399
400 - Added :event:`html-collect-pages`.
401 - Added ``needs_sphinx`` config value and
402 :meth:`~sphinx.application.Sphinx.require_sphinx` application API
403 method.
404 - #200: Added :meth:`!add_stylesheet`
405 application API method.
406
407 * Extensions:
408
409 - Added the :mod:`~sphinx.ext.viewcode` extension.
410 - Added the :mod:`~sphinx.ext.extlinks` extension.
411 - Added support for source ordering of members in autodoc, with
412 ``autodoc_member_order = 'bysource'``.
413 - Added ``autodoc_default_flags`` config value, which can be
414 used to select default flags for all autodoc directives.
415 - Added a way for intersphinx to refer to named labels in other
416 projects, and to specify the project you want to link to.
417 - #280: Autodoc can now document instance attributes assigned in
418 ``__init__`` methods.
419 - Many improvements and fixes to the :mod:`~sphinx.ext.autosummary`
420 extension, thanks to Pauli Virtanen.
421 - #309: The :mod:`~sphinx.ext.graphviz` extension can now output SVG
422 instead of PNG images, controlled by the
423 ``graphviz_output_format`` config value.
424 - Added ``alt`` option to :rst:dir:`graphviz` extension directives.
425 - Added ``exclude`` argument to :func:`.autodoc.between`.
426
427 * Translations:
428
429 - Added Croatian translation, thanks to Bojan Mihelač.
430 - Added Turkish translation, thanks to Firat Ozgul.
431 - Added Catalan translation, thanks to Pau Fernández.
432 - Added simplified Chinese translation.
433 - Added Danish translation, thanks to Hjorth Larsen.
434 - Added Lithuanian translation, thanks to Dalius Dobravolskas.
435
436 * Bugs fixed:
437
438 - #445: Fix links to result pages when using the search function
439 of HTML built with the ``dirhtml`` builder.
440 - #444: In templates, properly re-escape values treated with the
441 "striptags" Jinja filter.