mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
Fix pr roles
This commit is contained in:
parent
7d7efe16b9
commit
813cdae7a5
@ -10,13 +10,13 @@ from docutils.parsers.rst.directives.tables import Table
|
||||
def libpr_role(name, rawtext, text, lineno, inliner, options=None,
|
||||
content=None):
|
||||
ref = 'https://github.com/esphome/esphome-core/pull/{}'.format(text)
|
||||
return [make_link_node(rawtext, 'lib#{}'.format(text), ref, options)], []
|
||||
return [make_link_node(rawtext, 'core#{}'.format(text), ref, options)], []
|
||||
|
||||
|
||||
def yamlpr_role(name, rawtext, text, lineno, inliner, options=None,
|
||||
content=None):
|
||||
ref = 'https://github.com/esphome/esphome/pull/{}'.format(text)
|
||||
return [make_link_node(rawtext, 'yaml#{}'.format(text), ref, options)], []
|
||||
return [make_link_node(rawtext, 'esphome#{}'.format(text), ref, options)], []
|
||||
|
||||
|
||||
def docspr_role(name, rawtext, text, lineno, inliner, options=None,
|
||||
|
Loading…
Reference in New Issue
Block a user