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