Skip to content

Commit

Permalink
Hotfix docutils set_class method
Browse files Browse the repository at this point in the history
  • Loading branch information
r0qs committed Jun 17, 2024
1 parent 022efc4 commit 657c71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ext/remix_code_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def remix_code_url(source_code, language, solidity_version):

def build_remix_link_node(url):
reference_node = docutils.nodes.reference('', 'open in Remix', internal=False, refuri=url, target='_blank')
reference_node.set_class('remix-link')
reference_node['classes'].append('remix-link')

paragraph_node = docutils.nodes.paragraph()
paragraph_node.set_class('remix-link-container')
paragraph_node['classes'].append('remix-link-container')
paragraph_node.append(reference_node)
return paragraph_node

Expand Down

0 comments on commit 657c71f

Please sign in to comment.