From 214bc2bead59c3322628322fd202738561865a1c Mon Sep 17 00:00:00 2001 From: Deepak Khatri <lorforlinux@beagleboard.org> Date: Sun, 24 Mar 2024 22:24:43 +0530 Subject: [PATCH] Test fixing pages slug --- _templates/oshw.html | 2 +- conf.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/_templates/oshw.html b/_templates/oshw.html index 3dceed38..04941e82 100644 --- a/_templates/oshw.html +++ b/_templates/oshw.html @@ -4,7 +4,7 @@ <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}}_{{oshw_id}}.svg"/> + <img src="../../../../_static/images/oshw/{{board}}_{{oshw_id}}.svg"/> </a> </p> </div> diff --git a/conf.py b/conf.py index bab35528..65508b43 100644 --- a/conf.py +++ b/conf.py @@ -188,7 +188,6 @@ html_theme_options = { } # parse version from 'VERSION' file - with open("VERSION") as f: m = re.match( ( @@ -224,7 +223,6 @@ gitlab_repo = "docs.beagleboard.io" docs_url = "https://docs.beagleboard.io" # parse pages details from 'PAGES' file - with open("PAGES") as f: m = re.match( ( @@ -264,7 +262,7 @@ html_context = { "conf_py_path": "", "show_license": True, "pages_url": pages_url, - "pages_slug": "", + "pages_slug": pages_slug, "docs_url": docs_url, "edit_page_url_template": "{{ my_vcs_site }}{{ file_name }}", "edit_page_provider_name": "OpenBeagle", -- GitLab