[Python-checkins] r61416 - doctools/trunk/sphinx/environment.py

georg.brandl python-checkins at python.org
Sun Mar 16 12:10:03 CET 2008


Author: georg.brandl
Date: Sun Mar 16 12:10:03 2008
New Revision: 61416
Modified:
 doctools/trunk/sphinx/environment.py
Log:
Don't warn for unknown keywords. Give Python refs a link title.
Modified: doctools/trunk/sphinx/environment.py
==============================================================================
--- doctools/trunk/sphinx/environment.py	(original)
+++ doctools/trunk/sphinx/environment.py	Sun Mar 16 12:10:03 2008
@@ -705,7 +705,7 @@
 # keywords are referenced by named labels
 docname, labelid, _ = self.labels.get(target, ('','',''))
 if not docname:
- self.warn(fromdocname, 'unknown keyword: %s' % target)
+ #self.warn(fromdocname, 'unknown keyword: %s' % target)
 newnode = contnode
 else:
 newnode = nodes.reference('', '')
@@ -766,6 +766,7 @@
 newnode['refuri'] = (
 builder.get_relative_uri(fromdocname, desc[0])
 + '#' + name)
+ newnode['reftitle'] = name
 newnode.append(contnode)
 else:
 raise RuntimeError('unknown xfileref node encountered: %s' % node)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /