Skip to content

Commit

Permalink
Fix link issue
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianGode committed Dec 9, 2024
1 parent 4c10728 commit 2b35d73
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions otc_sphinx_directives/service_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,24 @@ def service_card_html(self, node):
data += (
f'<p>{node[doc["type"]]}</p>'
)
<<<<<<< Updated upstream
data += '</div></a></div>'
=======
data += '</div></a>'
try:
if doc["pdf_enabled"]:
data += (f'''
<scale-button variant="secondary" class="pdf-button-sbv" href="{node['service_type']}-{doc["type"]}.pdf" target="_blank">
<scale-icon-user-file-pdf-file accessibility-title="pdf-file"></scale-icon-user-file-pdf-file>
<span style="font-weight: normal;">Download PDF</span>
</scale-button>
''')
except Exception:
print("Service " + node['service_type'] + " has not defined pdf_enabled!")

data += '</div>'

>>>>>>> Stashed changes
self.body.append(data)
raise nodes.SkipNode

Expand Down

0 comments on commit 2b35d73

Please sign in to comment.