3
0
Fork 0
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:
Krystine Sherwin 2025-11-19 14:29:13 +13:00
parent 784c73ad38
commit bb8ef02e85
No known key found for this signature in database
2 changed files with 31 additions and 25 deletions

View file

@ -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: