3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Adding custom domain for cmdref

This commit is contained in:
Krystine Sherwin 2023-08-08 11:51:57 +12:00
parent d8b8880ad6
commit 8203a01ba9
No known key found for this signature in database
6 changed files with 256 additions and 8 deletions

View file

@ -63,10 +63,13 @@ latex_elements = {
extensions.append('sphinx.ext.todo')
todo_include_todos = True
# custom cmd-ref parsing/linking
sys.path += [os.path.dirname(__file__) + "/../"]
extensions.append('util.cmdref')
def setup(sphinx):
sys.path += [os.path.dirname(__file__) + "/../util"]
from RtlilLexer import RtlilLexer
from util.RtlilLexer import RtlilLexer
sphinx.add_lexer("RTLIL", RtlilLexer)
from YoscryptLexer import YoscryptLexer
from util.YoscryptLexer import YoscryptLexer
sphinx.add_lexer("yoscrypt", YoscryptLexer)