diff --git a/.readthedocs.yml b/.readthedocs.yml new file mode 100644 index 0000000000..c0c139b7e8 --- /dev/null +++ b/.readthedocs.yml @@ -0,0 +1,18 @@ +version: 2 + +build: + os: ubuntu-22.04 + tools: + python: "3.11" + +sphinx: + builder: html + configuration: docs/conf.py + +formats: + - pdf + - epub + +python: + install: + - requirements: docs/requirements.txt diff --git a/docs/ext/remix_code_links.py b/docs/ext/remix_code_links.py index 31a5667689..55fc0ef5c2 100644 --- a/docs/ext/remix_code_links.py +++ b/docs/ext/remix_code_links.py @@ -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