mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-14 09:56:16 +00:00
Docs: Downgrade missing cmdgroup warning
Log an info message, and put a warning for the content instead.
This commit is contained in:
parent
07c2666447
commit
11af1a275b
1 changed files with 10 additions and 5 deletions
|
@ -223,11 +223,17 @@ class YosysCmdGroupDocumenter(Documenter):
|
||||||
)
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
sourcename = self.get_sourcename()
|
||||||
|
|
||||||
if not self.import_object():
|
if not self.import_object():
|
||||||
logger.warning(
|
log_msg = f"unable to load {self.name} with {type(self)}"
|
||||||
f"unable to load {self.name} with {type(self)}",
|
if self.lib_key == 'groups':
|
||||||
type = 'cmdref'
|
logger.info(log_msg, type = 'cmdref')
|
||||||
)
|
self.add_line(f'.. warning:: No commands found for group {self.name!r}', sourcename)
|
||||||
|
self.add_line('', sourcename)
|
||||||
|
self.add_line(' Documentation may have been built without ``source_location`` support.', sourcename)
|
||||||
|
else:
|
||||||
|
logger.warning(log_msg, type = 'cmdref')
|
||||||
return
|
return
|
||||||
|
|
||||||
# check __module__ of object (for members not given explicitly)
|
# check __module__ of object (for members not given explicitly)
|
||||||
|
@ -235,7 +241,6 @@ class YosysCmdGroupDocumenter(Documenter):
|
||||||
# if not self.check_module():
|
# if not self.check_module():
|
||||||
# return
|
# return
|
||||||
|
|
||||||
sourcename = self.get_sourcename()
|
|
||||||
self.add_line('', sourcename)
|
self.add_line('', sourcename)
|
||||||
|
|
||||||
# format the object's signature, if any
|
# format the object's signature, if any
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue