diff --git a/_templates/oshw.html b/_templates/oshw.html index 1ecd48650805a80fb4236317eaf7e3e8679d349d..8d7364f63fd3e0da23ae1c08f8a40b3bfa65fd9e 100644 --- a/_templates/oshw.html +++ b/_templates/oshw.html @@ -7,7 +7,11 @@ <div class="card-body"> <p class="card-text text-dark"> <a href="https://certification.oshwa.org/{{ oshw_id|lower }}.html" target="_blank"> - <img src="{{docs_url}}/_static/images/oshw/{{board}}_{{path}}_{{oshw_id}}.svg" alt="{{board}} OSHW mark"/> + {% if pages_slug %} + <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"/> + {% endif %} </a> </p> </div> diff --git a/conf.py b/conf.py index 5fadb5d811c4a6ea4eb82f0a12ed1e9ea8604aa1..15876aeefc322b88052cee78ec6a6051088b89f8 100644 --- a/conf.py +++ b/conf.py @@ -225,7 +225,7 @@ release = version # Variables here holds default settings pages_url = "https://docs.beagleboard.io" -pages_slug = "latest" +pages_slug = "" gitlab_user = "docs" gitlab_version = "main" gitlab_url = "https://openbeagle.org"