|
From: <md...@us...> - 2008-06-13 14:24:42
|
Revision: 5504
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5504&view=rev
Author: mdboom
Date: 2008-06-13 07:24:40 -0700 (Fri, 13 Jun 2008)
Log Message:
-----------
Fix warnings about duplicate explicit targets.
Modified Paths:
--------------
trunk/matplotlib/doc/sphinxext/plot_directive.py
Modified: trunk/matplotlib/doc/sphinxext/plot_directive.py
===================================================================
--- trunk/matplotlib/doc/sphinxext/plot_directive.py 2008-06-13 14:10:02 UTC (rev 5503)
+++ trunk/matplotlib/doc/sphinxext/plot_directive.py 2008-06-13 14:24:40 UTC (rev 5504)
@@ -10,6 +10,7 @@
"""
from docutils.parsers.rst import directives
+import os.path
try:
# docutils 0.4
@@ -35,7 +36,7 @@
:target: %(reference)s.hires.png
%(options)s
- `[source] <%(reference)s.py>`_
+ `[original %(basename)s.py] <%(reference)s.py>`_
.. latexonly::
.. image:: %(reference)s.pdf
@@ -50,6 +51,7 @@
options = [' :%s: %s' % (key, val) for key, val in
options.items()]
options = "\n".join(options)
+ basename = os.path.basename(reference)
lines = template % locals()
lines = lines.split('\n')
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|