Rename rellinks to linktags.

This commit is contained in:
Georg Brandl 2008-09-24 11:48:43 +00:00
parent 29c916fb6c
commit 3d3bcb00df
3 changed files with 12 additions and 10 deletions

View File

@ -78,6 +78,9 @@ New features added
* Added new events: ``env-updated``, ``missing-reference``,
``build-finished``.
* The ``rellinks`` block in the layout template is now called
``linktags`` to avoid confusion with the relbar links.
Release 0.4.2 (Jul 29, 2008)
============================

View File

@ -82,7 +82,7 @@ The following blocks exist in the ``layout`` template:
idea not to change it unless you want to switch to HTML 5 or a different but
compatible XHTML doctype.
`rellinks`
`linktags`
This block adds a couple of ``<link>`` tags to the head section of the
template.
@ -102,11 +102,11 @@ The following blocks exist in the ``layout`` template:
`rootrellink` / `relbaritems`
Inside the relbar there are three sections: The `rootrellink`, the links
from the documentation and the `relbaritems`. The `rootrellink` is a block
that by default contains a list item pointing to the master document by
default, the `relbaritems` is an empty block. If you override them to add
extra links into the bar make sure that they are list items and end with the
:data:`reldelim1`.
from the documentation and the custom `relbaritems`. The `rootrellink` is a
block that by default contains a list item pointing to the master document
by default, the `relbaritems` is an empty block. If you override them to
add extra links into the bar make sure that they are list items and end with
the :data:`reldelim1`.
`document`
The contents of the document itself.

View File

@ -15,7 +15,7 @@
{%- if not loop.first %}{{ reldelim2 }}{% endif %}</li>
{%- endfor %}
{%- block rootrellink %}
<li><a href="{{ pathto('index') }}">{{ shorttitle }}</a>{{ reldelim1 }}</li>
<li><a href="{{ pathto(master_doc) }}">{{ shorttitle }}</a>{{ reldelim1 }}</li>
{%- endblock %}
{%- for parent in parents %}
<li><a href="{{ parent.link|e }}" accesskey="U">{{ parent.title }}</a>{{ reldelim1 }}</li>
@ -122,12 +122,11 @@
<link rel="shortcut icon" href="{{ pathto('_static/' + favicon, 1) }}"/>
{%- endif %}
{%- endif %}
{%- block rellinks %}
{%- block linktags %}
{%- if hasdoc('about') %}
<link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" />
{%- endif %}
<link rel="contents" title="{{ _('Global table of contents') }}" href="{{ pathto('contents') }}" />
<link rel="index" title="{{ _('Global index') }}" href="{{ pathto('genindex') }}" />
<link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" />
<link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" />
{%- if hasdoc('copyright') %}
<link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" />