| 1 |
========== |
| 2 |
Sphinx 0.2 |
| 3 |
========== |
| 4 |
|
| 5 |
|
| 6 |
Release 0.2 (Apr 27, 2008) |
| 7 |
========================== |
| 8 |
|
| 9 |
Incompatible changes |
| 10 |
-------------------- |
| 11 |
|
| 12 |
* Jinja, the template engine used for the default HTML templates, is now |
| 13 |
no longer shipped with Sphinx. If it is not installed automatically for |
| 14 |
you (it is now listed as a dependency in ``setup.py``), install it manually |
| 15 |
from PyPI. This will also be needed if you're using Sphinx from a SVN |
| 16 |
checkout; in that case please also remove the ``sphinx/jinja`` directory |
| 17 |
that may be left over from old revisions. |
| 18 |
|
| 19 |
* The clumsy handling of the ``index.html`` template was removed. The config |
| 20 |
value ``html_index`` is gone, and ``html_additional_pages`` should be used |
| 21 |
instead. If you need it, the old ``index.html`` template is still there, |
| 22 |
called ``defindex.html``, and you can port your html_index template, using |
| 23 |
Jinja inheritance, by changing your template:: |
| 24 |
|
| 25 |
{% extends "defindex.html" %} |
| 26 |
{% block tables %} |
| 27 |
... old html_index template content ... |
| 28 |
{% endblock %} |
| 29 |
|
| 30 |
and putting ``'index': name of your template`` in ``html_additional_pages``. |
| 31 |
|
| 32 |
* In the layout template, redundant ``block``\s were removed; you should use |
| 33 |
Jinja's standard ``{{ super() }}`` mechanism instead, as explained in the |
| 34 |
(newly written) templating docs. |
| 35 |
|
| 36 |
New features added |
| 37 |
------------------ |
| 38 |
|
| 39 |
* Extension API (Application object): |
| 40 |
|
| 41 |
- Support a new method, ``add_crossref_type``. It works like |
| 42 |
``add_description_unit`` but the directive will only create a target |
| 43 |
and no output. |
| 44 |
- Support a new method, ``add_transform``. It takes a standard Docutils |
| 45 |
``Transform`` subclass which is then applied by Sphinx's reader on |
| 46 |
parsing reST document trees. |
| 47 |
- Add support for other template engines than Jinja, by adding an |
| 48 |
abstraction called a "template bridge". This class handles rendering |
| 49 |
of templates and can be changed using the new configuration value |
| 50 |
"template_bridge". |
| 51 |
- The config file itself can be an extension (if it provides a ``setup()`` |
| 52 |
function). |
| 53 |
|
| 54 |
* Markup: |
| 55 |
|
| 56 |
- New directive, ``currentmodule``. It can be used to indicate the module |
| 57 |
name of the following documented things without creating index entries. |
| 58 |
- Allow giving a different title to documents in the toctree. |
| 59 |
- Allow giving multiple options in a ``cmdoption`` directive. |
| 60 |
- Fix display of class members without explicit class name given. |
| 61 |
|
| 62 |
* Templates (HTML output): |
| 63 |
|
| 64 |
- ``index.html`` renamed to ``defindex.html``, see above. |
| 65 |
- There's a new config value, ``html_title``, that controls the overall |
| 66 |
"title" of the set of Sphinx docs. It is used instead everywhere instead of |
| 67 |
"Projectname vX.Y documentation" now. |
| 68 |
- All references to "documentation" in the templates have been removed, so |
| 69 |
that it is now easier to use Sphinx for non-documentation documents with |
| 70 |
the default templates. |
| 71 |
- Templates now have an XHTML doctype, to be consistent with Docutils' |
| 72 |
HTML output. |
| 73 |
- You can now create an OpenSearch description file with the |
| 74 |
``html_use_opensearch`` config value. |
| 75 |
- You can now quickly include a logo in the sidebar, using the ``html_logo`` |
| 76 |
config value. |
| 77 |
- There are new blocks in the sidebar, so that you can easily insert content |
| 78 |
into the sidebar. |
| 79 |
|
| 80 |
* LaTeX output: |
| 81 |
|
| 82 |
- The ``sphinx.sty`` package was cleaned of unused stuff. |
| 83 |
- You can include a logo in the title page with the ``latex_logo`` config |
| 84 |
value. |
| 85 |
- You can define the link colors and a border and background color for |
| 86 |
verbatim environments. |
| 87 |
|
| 88 |
Thanks to Jacob Kaplan-Moss, Talin, Jeroen Ruigrok van der Werven and Sebastian |
| 89 |
Wiesner for suggestions. |
| 90 |
|
| 91 |
Bugs fixed |
| 92 |
---------- |
| 93 |
|
| 94 |
* sphinx.ext.autodoc: Don't check ``__module__`` for explicitly given |
| 95 |
members. Remove "self" in class constructor argument list. |
| 96 |
|
| 97 |
* sphinx.htmlwriter: Don't use os.path for joining image HREFs. |
| 98 |
|
| 99 |
* sphinx.htmlwriter: Don't use SmartyPants for HTML attribute values. |
| 100 |
|
| 101 |
* sphinx.latexwriter: Implement option lists. Also, some other changes |
| 102 |
were made to ``sphinx.sty`` in order to enhance compatibility and |
| 103 |
remove old unused stuff. Thanks to Gael Varoquaux for that! |
| 104 |
|
| 105 |
* sphinx.roles: Fix referencing glossary terms with explicit targets. |
| 106 |
|
| 107 |
* sphinx.environment: Don't swallow TOC entries when resolving subtrees. |
| 108 |
|
| 109 |
* sphinx.quickstart: Create a sensible default latex_documents setting. |
| 110 |
|
| 111 |
* sphinx.builder, sphinx.environment: Gracefully handle some user error |
| 112 |
cases. |
| 113 |
|
| 114 |
* sphinx.util: Follow symbolic links when searching for documents. |