From 26e5edb2ba7f64e97722479c355449e394752f4c Mon Sep 17 00:00:00 2001 From: "Oriol (ZBook)" Date: Mon, 10 Jan 2022 02:23:43 +0200 Subject: [PATCH] update page_footer --- examples/conf.py | 15 ++++++++++++++- examples/page_footer.md | 10 +--------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/examples/conf.py b/examples/conf.py index 9893f5a80..b3b608b20 100644 --- a/examples/conf.py +++ b/examples/conf.py @@ -119,11 +119,24 @@ # MyST config myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath", "substitution"] +citation_code = f""" +```bibtex +@incollection{{citekey, + author = "" + title = "", + editor = "PyMC Team", + booktitle = "PyMC examples", + doi = "{doi_code}" +}} +``` +""" + + myst_substitutions = { "pip_dependencies": "{{ extra_dependencies }}", "conda_dependencies": "{{ extra_dependencies }}", "extra_install_notes": "", - "doi_code": doi_code, + "citation_code": citation_code, } jupyter_execute_notebooks = "off" diff --git a/examples/page_footer.md b/examples/page_footer.md index 8cfa05b89..3b0dc0347 100644 --- a/examples/page_footer.md +++ b/examples/page_footer.md @@ -17,15 +17,7 @@ Also remember to cite the relevant libraries used by your code. Here is an citation template in bibtex: -```bibtex -@incollection{citekey, - author = "" - title = "", - editor = "PyMC Team", - booktitle = "PyMC examples", - doi = "10.5281/zenodo.5654871" -} -``` +{{ citation_code }} which once rendered could look like: