mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-12 13:12:35 +01:00
supybot-plugin-doc: Add explicit target for each plugin reference
It can be useful to reference it from elsewhere in the doc
This commit is contained in:
parent
5b98503fd3
commit
6b9de3d09d
@ -101,6 +101,8 @@ class PluginDoc(object):
|
|||||||
|
|
||||||
def renderRST(self):
|
def renderRST(self):
|
||||||
self.appendExtraBlankLine = False
|
self.appendExtraBlankLine = False
|
||||||
|
self.appendLine('.. _plugin-%s:' % self.name)
|
||||||
|
self.lines.append('')
|
||||||
s = self.titleTemplate.substitute(name=self.name)
|
s = self.titleTemplate.substitute(name=self.name)
|
||||||
self.appendLine(s)
|
self.appendLine(s)
|
||||||
self.appendLine('=' * len(s))
|
self.appendLine('=' * len(s))
|
||||||
|
Loading…
Reference in New Issue
Block a user