| 1 |
========== |
| 2 |
Sphinx 0.5 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 0.5.2 (Mar 24, 2009) |
| 7 |
============================ |
| 8 |
|
| 9 |
* Properly escape ``|`` in LaTeX output. |
| 10 |
|
| 11 |
* #71: If a decoding error occurs in source files, print a |
| 12 |
warning and replace the characters by "?". |
| 13 |
|
| 14 |
* Fix a problem in the HTML search if the index takes too long |
| 15 |
to load. |
| 16 |
|
| 17 |
* Don't output system messages while resolving, because they |
| 18 |
would stay in the doctrees even if keep_warnings is false. |
| 19 |
|
| 20 |
* #82: Determine the correct path for dependencies noted by |
| 21 |
docutils. This fixes behavior where a source with dependent |
| 22 |
files was always reported as changed. |
| 23 |
|
| 24 |
* Recognize toctree directives that are not on section toplevel, |
| 25 |
but within block items, such as tables. |
| 26 |
|
| 27 |
* Use a new RFC base URL, since rfc.org seems down. |
| 28 |
|
| 29 |
* Fix a crash in the todolist directive when no todo items are |
| 30 |
defined. |
| 31 |
|
| 32 |
* Don't call LaTeX or dvipng over and over again if it was not |
| 33 |
found once, and use text-only latex as a substitute in that case. |
| 34 |
|
| 35 |
* Fix problems with footnotes in the LaTeX output. |
| 36 |
|
| 37 |
* Prevent double hyphens becoming en-dashes in literal code in |
| 38 |
the LaTeX output. |
| 39 |
|
| 40 |
* Open literalinclude files in universal newline mode to allow |
| 41 |
arbitrary newline conventions. |
| 42 |
|
| 43 |
* Actually make the ``-Q`` option work. |
| 44 |
|
| 45 |
* #86: Fix explicit document titles in toctrees. |
| 46 |
|
| 47 |
* #81: Write environment and search index in a manner that is safe |
| 48 |
from exceptions that occur during dumping. |
| 49 |
|
| 50 |
* #80: Fix UnicodeErrors when a locale is set with setlocale(). |
| 51 |
|
| 52 |
|
| 53 |
Release 0.5.1 (Dec 15, 2008) |
| 54 |
============================ |
| 55 |
|
| 56 |
* #67: Output warnings about failed doctests in the doctest extension |
| 57 |
even when running in quiet mode. |
| 58 |
|
| 59 |
* #72: In pngmath, make it possible to give a full path to LaTeX and |
| 60 |
dvipng on Windows. For that to work, the ``pngmath_latex`` and |
| 61 |
``pngmath_dvipng`` options are no longer split into command and |
| 62 |
additional arguments; use ``pngmath_latex_args`` and |
| 63 |
``pngmath_dvipng_args`` to give additional arguments. |
| 64 |
|
| 65 |
* Don't crash on failing doctests with non-ASCII characters. |
| 66 |
|
| 67 |
* Don't crash on writing status messages and warnings containing |
| 68 |
unencodable characters. |
| 69 |
|
| 70 |
* Warn if a doctest extension block doesn't contain any code. |
| 71 |
|
| 72 |
* Fix the handling of ``:param:`` and ``:type:`` doc fields when |
| 73 |
they contain markup (especially cross-referencing roles). |
| 74 |
|
| 75 |
* #65: Fix storage of depth information for PNGs generated by the |
| 76 |
pngmath extension. |
| 77 |
|
| 78 |
* Fix autodoc crash when automethod is used outside a class context. |
| 79 |
|
| 80 |
* #68: Fix LaTeX writer output for images with specified height. |
| 81 |
|
| 82 |
* #60: Fix wrong generated image path when including images in sources |
| 83 |
in subdirectories. |
| 84 |
|
| 85 |
* Fix the JavaScript search when html_copy_source is off. |
| 86 |
|
| 87 |
* Fix an indentation problem in autodoc when documenting classes |
| 88 |
with the option ``autoclass_content = "both"`` set. |
| 89 |
|
| 90 |
* Don't crash on empty index entries, only emit a warning. |
| 91 |
|
| 92 |
* Fix a typo in the search JavaScript code, leading to unusable |
| 93 |
search function in some setups. |
| 94 |
|
| 95 |
|
| 96 |
Release 0.5 (Nov 23, 2008) -- Birthday release! |
| 97 |
=============================================== |
| 98 |
|
| 99 |
New features added |
| 100 |
------------------ |
| 101 |
|
| 102 |
* Markup features: |
| 103 |
|
| 104 |
- Citations are now global: all citation defined in any file can be |
| 105 |
referenced from any file. Citations are collected in a bibliography |
| 106 |
for LaTeX output. |
| 107 |
|
| 108 |
- Footnotes are now properly handled in the LaTeX builder: they appear |
| 109 |
at the location of the footnote reference in text, not at the end of |
| 110 |
a section. Thanks to Andrew McNamara for the initial patch. |
| 111 |
|
| 112 |
- "System Message" warnings are now automatically removed from the |
| 113 |
built documentation, and only written to stderr. If you want the |
| 114 |
old behavior, set the new config value ``keep_warnings`` to ``True``. |
| 115 |
|
| 116 |
- Glossary entries are now automatically added to the index. |
| 117 |
|
| 118 |
- Figures with captions can now be referred to like section titles, |
| 119 |
using the ``:ref:`` role without an explicit link text. |
| 120 |
|
| 121 |
- Added ``cmember`` role for consistency. |
| 122 |
|
| 123 |
- Lists enumerated by letters or roman numerals are now handled like in |
| 124 |
standard reST. |
| 125 |
|
| 126 |
- The ``seealso`` directive can now also be given arguments, as a short |
| 127 |
form. |
| 128 |
|
| 129 |
- You can now document several programs and their options with the |
| 130 |
new ``program`` directive. |
| 131 |
|
| 132 |
* HTML output and templates: |
| 133 |
|
| 134 |
- Incompatible change: The "root" relation link (top left in the |
| 135 |
relbar) now points to the ``master_doc`` by default, no longer to a |
| 136 |
document called "index". The old behavior, while useful in some |
| 137 |
situations, was somewhat unexpected. Override the "rootrellink" |
| 138 |
block in the template to customize where it refers to. |
| 139 |
|
| 140 |
- The JavaScript search now searches for objects before searching in |
| 141 |
the full text. |
| 142 |
|
| 143 |
- TOC tree entries now have CSS classes that make it possible to |
| 144 |
style them depending on their depth. |
| 145 |
|
| 146 |
- Highlighted code blocks now have CSS classes that make it possible |
| 147 |
to style them depending on their language. |
| 148 |
|
| 149 |
- HTML ``<meta>`` tags via the Docutils :dudir:`meta` directive are now |
| 150 |
supported. |
| 151 |
|
| 152 |
- ``SerializingHTMLBuilder`` was added as new abstract builder that |
| 153 |
can be subclassed to serialize build HTML in a specific format. The |
| 154 |
``PickleHTMLBuilder`` is a concrete subclass of it that uses pickle |
| 155 |
as serialization implementation. |
| 156 |
|
| 157 |
- ``JSONHTMLBuilder`` was added as another ``SerializingHTMLBuilder`` |
| 158 |
subclass that dumps the generated HTML into JSON files for further |
| 159 |
processing. |
| 160 |
|
| 161 |
- The ``rellinks`` block in the layout template is now called |
| 162 |
``linktags`` to avoid confusion with the relbar links. |
| 163 |
|
| 164 |
- The HTML builders have two additional attributes now that can be |
| 165 |
used to disable the anchor-link creation after headlines and |
| 166 |
definition links. |
| 167 |
|
| 168 |
- Only generate a module index if there are some modules in the |
| 169 |
documentation. |
| 170 |
|
| 171 |
* New and changed config values: |
| 172 |
|
| 173 |
- Added support for internationalization in generated text with the |
| 174 |
``language`` and ``locale_dirs`` config values. Many thanks to |
| 175 |
language contributors: |
| 176 |
|
| 177 |
* Horst Gutmann -- German |
| 178 |
* Pavel Kosina -- Czech |
| 179 |
* David Larlet -- French |
| 180 |
* MichaĆ Kandulski -- Polish |
| 181 |
* Yasushi Masuda -- Japanese |
| 182 |
* Guillem Borrell -- Spanish |
| 183 |
* Luc Saffre and Peter Bertels -- Dutch |
| 184 |
* Fred Lin -- Traditional Chinese |
| 185 |
* Roger Demetrescu -- Brazilian Portuguese |
| 186 |
* Rok Garbas -- Slovenian |
| 187 |
|
| 188 |
- The new config value ``highlight_language`` set a global default for |
| 189 |
highlighting. When ``'python3'`` is selected, console output blocks |
| 190 |
are recognized like for ``'python'``. |
| 191 |
|
| 192 |
- Exposed Pygments' lexer guessing as a highlight "language" ``guess``. |
| 193 |
|
| 194 |
- The new config value ``latex_elements`` allows to override all LaTeX |
| 195 |
snippets that Sphinx puts into the generated .tex file by default. |
| 196 |
|
| 197 |
- Added ``exclude_dirnames`` config value that can be used to exclude |
| 198 |
e.g. CVS directories from source file search. |
| 199 |
|
| 200 |
- Added ``source_encoding`` config value to select input encoding. |
| 201 |
|
| 202 |
* Extensions: |
| 203 |
|
| 204 |
- The new extensions ``sphinx.ext.jsmath`` and ``sphinx.ext.pngmath`` |
| 205 |
provide math support for both HTML and LaTeX builders. |
| 206 |
|
| 207 |
- The new extension ``sphinx.ext.intersphinx`` half-automatically |
| 208 |
creates links to Sphinx documentation of Python objects in other |
| 209 |
projects. |
| 210 |
|
| 211 |
- The new extension ``sphinx.ext.todo`` allows the insertion of |
| 212 |
"To do" directives whose visibility in the output can be toggled. |
| 213 |
It also adds a directive to compile a list of all todo items. |
| 214 |
|
| 215 |
- sphinx.ext.autodoc has a new event ``autodoc-process-signature`` |
| 216 |
that allows tuning function signature introspection. |
| 217 |
|
| 218 |
- sphinx.ext.autodoc has a new event ``autodoc-skip-member`` that allows |
| 219 |
tuning which members are included in the generated content. |
| 220 |
|
| 221 |
- Respect ``__all__`` when autodocumenting module members. |
| 222 |
|
| 223 |
- The ``automodule`` directive now supports the ``synopsis``, |
| 224 |
``deprecated`` and ``platform`` options. |
| 225 |
|
| 226 |
* Extension API: |
| 227 |
|
| 228 |
- ``Sphinx.add_node()`` now takes optional visitor methods for the |
| 229 |
HTML, LaTeX and text translators; this prevents having to manually |
| 230 |
patch the classes. |
| 231 |
|
| 232 |
- Added ``Sphinx.add_javascript()`` that adds scripts to load in the |
| 233 |
default HTML template. |
| 234 |
|
| 235 |
- Added new events: ``source-read``, ``env-updated``, |
| 236 |
``env-purge-doc``, ``missing-reference``, ``build-finished``. |
| 237 |
|
| 238 |
* Other changes: |
| 239 |
|
| 240 |
- Added a command-line switch ``-Q``: it will suppress warnings. |
| 241 |
|
| 242 |
- Added a command-line switch ``-A``: it can be used to supply |
| 243 |
additional values into the HTML templates. |
| 244 |
|
| 245 |
- Added a command-line switch ``-C``: if it is given, no configuration |
| 246 |
file ``conf.py`` is required. |
| 247 |
|
| 248 |
- Added a distutils command ``build_sphinx``: When Sphinx is installed, |
| 249 |
you can call ``python setup.py build_sphinx`` for projects that have |
| 250 |
Sphinx documentation, which will build the docs and place them in |
| 251 |
the standard distutils build directory. |
| 252 |
|
| 253 |
- In quickstart, if the selected root path already contains a Sphinx |
| 254 |
project, complain and abort. |
| 255 |
|
| 256 |
Bugs fixed |
| 257 |
---------- |
| 258 |
|
| 259 |
* #51: Escape configuration values placed in HTML templates. |
| 260 |
|
| 261 |
* #44: Fix small problems in HTML help index generation. |
| 262 |
|
| 263 |
* Fix LaTeX output for line blocks in tables. |
| 264 |
|
| 265 |
* #38: Fix "illegal unit" error when using pixel image widths/heights. |
| 266 |
|
| 267 |
* Support table captions in LaTeX output. |
| 268 |
|
| 269 |
* #39: Work around a bug in Jinja that caused "<generator ...>" to be |
| 270 |
emitted in HTML output. |
| 271 |
|
| 272 |
* Fix a problem with module links not being generated in LaTeX output. |
| 273 |
|
| 274 |
* Fix the handling of images in different directories. |
| 275 |
|
| 276 |
* #29: Support option lists in the text writer. Make sure that dashes |
| 277 |
introducing long option names are not contracted to en-dashes. |
| 278 |
|
| 279 |
* Support the "scale" option for images in HTML output. |
| 280 |
|
| 281 |
* #25: Properly escape quotes in HTML help attribute values. |
| 282 |
|
| 283 |
* Fix LaTeX build for some description environments with ``:noindex:``. |
| 284 |
|
| 285 |
* #24: Don't crash on uncommon casing of role names (like ``:Class:``). |
| 286 |
|
| 287 |
* Only output ANSI colors on color terminals. |
| 288 |
|
| 289 |
* Update to newest fncychap.sty, to fix problems with non-ASCII |
| 290 |
characters at the start of chapter titles. |
| 291 |
|
| 292 |
* Fix a problem with index generation in LaTeX output, caused by |
| 293 |
hyperref not being included last. |
| 294 |
|
| 295 |
* Don't disregard return annotations for functions without any parameters. |
| 296 |
|
| 297 |
* Don't throw away labels for code blocks. |