Skip to content

Commit

Permalink
Fix gen of repos not in the lut.py, bump version
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Marques <[email protected]>
  • Loading branch information
gastmaier committed Jul 10, 2024
1 parent 5307277 commit 79f34e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adi_doctools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .role import setup as role_setup
from .lut import get_lut

__version__ = "0.3.34"
__version__ = "0.3.35"

logger = logging.getLogger(__name__)

Expand Down
6 changes: 5 additions & 1 deletion adi_doctools/theme/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,11 @@ def iterate(elem):

_toc_tree = etree.tostring(root, pretty_print=True, encoding='unicode')
_repotoc_tree, _current = repotoc_tree(content_root, conf_vars, pagename)
name = conf_vars[1][conf_vars[0]]['name']
if conf_vars[0] in conf_vars[1]:
name = conf_vars[1][conf_vars[0]]['name']
else:
# If repository entry is not in the lut.py, use the project entry
name = app.env.config.project
return (_toc_tree, _repotoc_tree, name, _current)


Expand Down

0 comments on commit 79f34e0

Please sign in to comment.