From 2b35d737f10e8bf4f8f04a9cd6de64ff691d5982 Mon Sep 17 00:00:00 2001 From: Sebastian Gode Date: Mon, 9 Dec 2024 13:20:48 +0000 Subject: [PATCH] Fix link issue --- otc_sphinx_directives/service_card.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/otc_sphinx_directives/service_card.py b/otc_sphinx_directives/service_card.py index 6ae57bd..9e6e0c3 100644 --- a/otc_sphinx_directives/service_card.py +++ b/otc_sphinx_directives/service_card.py @@ -126,7 +126,24 @@ def service_card_html(self, node): data += ( f'

{node[doc["type"]]}

' ) +<<<<<<< Updated upstream data += '' +======= + data += '' + try: + if doc["pdf_enabled"]: + data += (f''' + + + Download PDF + + ''') + except Exception: + print("Service " + node['service_type'] + " has not defined pdf_enabled!") + + data += '' + +>>>>>>> Stashed changes self.body.append(data) raise nodes.SkipNode