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:
Valentin Lorentz 2021-04-05 12:25:17 +02:00
parent 5b98503fd3
commit 6b9de3d09d
1 changed files with 2 additions and 0 deletions

View File

@ -101,6 +101,8 @@ class PluginDoc(object):
def renderRST(self):
self.appendExtraBlankLine = False
self.appendLine('.. _plugin-%s:' % self.name)
self.lines.append('')
s = self.titleTemplate.substitute(name=self.name)
self.appendLine(s)
self.appendLine('=' * len(s))