Commit 8a5c8e05 authored by Martin Larralde's avatar Martin Larralde
Browse files

Add `extlinks` Sphinx extension to render DOI and PMID links in the documentation

parent 94647e9c
......@@ -79,6 +79,7 @@ extensions = [
"sphinx.ext.coverage",
"sphinx.ext.mathjax",
"sphinx.ext.todo",
"sphinx.ext.extlinks",
"sphinx_bootstrap_theme",
"nbsphinx",
"recommonmark",
......@@ -214,3 +215,12 @@ nbsphinx_execute_arguments = [
"--InlineBackend.figure_formats={'svg', 'pdf'}",
"--InlineBackend.rc={'figure.dpi': 96}",
]
# -- Options for extlinks extension ------------------------------------------
extlinks = {
'doi': ('https://doi.org/%s', 'doi:'),
'pmid': ('https://pubmed.ncbi.nlm.nih.gov/%s', 'PMID:'),
'pmc': ('https://pubmed.ncbi.nlm.nih.gov/%s', 'PMID:'),
'isbn': ('https://www.worldcat.org/isbn/%s', 'ISBN:'),
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment