mirror of
https://github.com/YosysHQ/yosys
synced 2025-11-23 14:11:28 +00:00
docs: Intro to cell help
Allow autoref to render `help *` as yoscrypt instead of trying to link when `*` starts with `<` or `-`, as in `help <command>` and `help -all`. Fix autoref `help *` being linkable when there is a line break in the middle.
This commit is contained in:
parent
784c73ad38
commit
bb8ef02e85
2 changed files with 31 additions and 25 deletions
|
|
@ -693,8 +693,8 @@ class CellDomain(CommandDomain):
|
|||
|
||||
def autoref(name, rawtext: str, text: str, lineno, inliner: Inliner,
|
||||
options=None, content=None):
|
||||
words = text.split(' ')
|
||||
if len(words) == 2 and words[0] == "help":
|
||||
words = text.split()
|
||||
if len(words) == 2 and words[0] == "help" and words[1][0] not in ['<', '-']:
|
||||
IsLinkable = True
|
||||
thing = words[1]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue