Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 45c64cfe authored by Deepak Khatri's avatar Deepak Khatri :dog:
Browse files

WIP: fix OSHW mark image src (4)

parent b7dbdab2
Branches
Tags
1 merge request!89Docs updates - chapter restructuring, images, and more
......@@ -8,9 +8,9 @@
<p class="card-text text-dark">
<a href="https://certification.oshwa.org/{{ oshw_id|lower }}.html" target="_blank">
{% if pages_slug %}
<img src="../../../../{{pages_slug}}/_static/images/oshw/{{board}}_{{path | replace('/', '-')}}_{{oshw_id}}.svg" alt="{{board}} OSHW mark"/>
<img src="../../../../{{pages_slug}}/_static/images/oshw/{{board}}_{{path | replace('/', '@')}}_{{oshw_id}}.svg" alt="{{board}} OSHW mark"/>
{% else %}
<img src="../../../../_static/images/oshw/{{board}}_{{path | replace('/', '-')}}_{{oshw_id}}.svg" alt="{{board}} OSHW mark"/>
<img src="../../../../_static/images/oshw/{{board}}_{{path | replace('/', '@')}}_{{oshw_id}}.svg" alt="{{board}} OSHW mark"/>
{% endif %}
</a>
</p>
......
......@@ -32,9 +32,10 @@ for (dirpath, dirnames, filenames) in os.walk(oshw_logos_path):
if filename.endswith('.svg'):
oshw_logo_name = filename.split(".")[0]
board, path, oshw_id = oshw_logo_name.split('_')
path = path.replace('-','/')
path = path.replace('@','/')
oshw_details.append([board, path, oshw_id])
print(oshw_details)
# Unique boards path information
boards_path = []
for board, path, oshw_id in oshw_details:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment