mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-25 18:15:34 +00:00
Docs: Show warning on experimental cmds
This commit is contained in:
parent
a3125ce892
commit
bce73af324
1 changed files with 4 additions and 0 deletions
|
@ -340,6 +340,10 @@ class YosysCmdDocumenter(YosysCmdGroupDocumenter):
|
|||
source_name = self.object.source_file
|
||||
source_line = self.object.source_line
|
||||
|
||||
if self.object.experimental_flag:
|
||||
self.add_line(f'.. warning:: This command is experimental', source_name, source_line)
|
||||
self.add_line('\n', source_name)
|
||||
|
||||
def render(content_list: YosysCmdContentListing, indent: int=0):
|
||||
content_source = content_list.source_file or source_name
|
||||
indent_str = ' '*indent
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue