Package: python-sphinx Version: 0.5.1-2 Severity: normal Tags: patch -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi, this patch checks the existance of pages before generating a link to it in the header section of layout.html. This fixes broken links when not using the search and index features. Regards, Bastian - -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.28.7grog3 (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-sphinx depends on: ii libjs-jquery 1.3.2-2 JavaScript library for dynamic web ii python 2.5.4-2 An interactive high-level object-o ii python-central 0.6.11 register and build utility for Pyt ii python-docutils 0.5-2 Utilities for the documentation of ii python-jinja 1.2-2 small but fast and easy to use sta ii python-pygments 1.0-2 syntax highlighting package writte Versions of packages python-sphinx recommends: ii python 2.5.4-2 An interactive high-level object-o ii python-imaging 1.1.6-3 Python Imaging Library ii python-simplejson 2.0.9-1 Simple, fast, extensible JSON enco Versions of packages python-sphinx suggests: pn jsmath <none> (no description available) - -- no debconf information -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEYEARECAAYFAkmq1MUACgkQeBwlBDLsbz4bcQCgrY5dFqjyWiB3KAb2gmi1j6vl +xAAmQH12PFSC0bOA+apXYbG/BBsDcpS =ZNb1 -----END PGP SIGNATURE-----
--- /usr/share/pyshared/sphinx/templates/layout.html.orig 2009-03-01 19:23:39.000000000 +0100 +++ /usr/share/pyshared/sphinx/templates/layout.html 2009-03-01 19:24:09.000000000 +0100 @@ -128,8 +128,12 @@ {%- if hasdoc('about') %} <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" /> {%- endif %} + {%- if hasdoc('genindex') %} <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" /> + {%- endif %} + {%- if hasdoc('search') %} <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" /> + {%- endif %} {%- if hasdoc('copyright') %} <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" /> {%- endif %}