Skip to content

Commit

Permalink
Docsportal Startpage without Bootstrap and larger icons (#40)
Browse files Browse the repository at this point in the history
Docsportal Startpage without Bootstrap and larger icons

depends on: opentelekomcloud-docs/docsportal#193

Reviewed-by: Tino Schr
  • Loading branch information
SebastianGode authored Aug 14, 2024
1 parent fd5f24e commit 1cf484f
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions otc_sphinx_directives/service_navigator.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def service_navigator_html(self, node):
f'<div class="card item-docsportal">'
f'<div class="card-body">'
f'<h5 class="card-title">{category_title}</h5></div>'
f'<ul class="list-group list-group-flush">'
f'<div class="card-services">'
)

for service in METADATA.services_by_category(category=category):
Expand All @@ -82,19 +82,18 @@ def service_navigator_html(self, node):
if environment == "internal" and node['environment'] != "internal":
continue
data += (
f'<li class="list-group-item"><a href="{link}">'
f'<div class="row">'
f'<div class="col-2">'
f'<picture>'
f'<source class="icon-svg" srcSet="_static/images/services/dark/{img}.svg" media="(prefers-color-scheme: dark)" />'
f'<img class="icon-svg" src="_static/images/services/light/{img}.svg">'
f'</picture>'
f'</div>'
f'<div class="col-10">{title}</div>'
f'</div></a></li>'
f'<div><a href="{link}" class="service-entries">'
f' <div class="">'
f' <picture>'
f' <source class="icon-svg" srcSet="_static/images/services/dark/{img}.svg" media="(prefers-color-scheme: dark)" />'
f' <img class="icon-svg" src="_static/images/services/light/{img}.svg">'
f' </picture>'
f' </div>'
f'<div class="align-self-center">{title}</div>'
f'</a></div>'
)

data += '</ul></div>'
data += '</div></div>'

data += '</div>'

Expand Down

0 comments on commit 1cf484f

Please sign in to comment.