Skip to content

Commit

Permalink
update page_footer
Browse files Browse the repository at this point in the history
  • Loading branch information
OriolAbril committed Jan 10, 2022
1 parent fdf0e21 commit 26e5edb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
15 changes: 14 additions & 1 deletion examples/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,24 @@

# MyST config
myst_enable_extensions = ["colon_fence", "deflist", "dollarmath", "amsmath", "substitution"]
citation_code = f"""
```bibtex
@incollection{{citekey,
author = "<notebook authors, see above>"
title = "<notebook 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"

Expand Down
10 changes: 1 addition & 9 deletions examples/page_footer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "<notebook authors, see above>"
title = "<notebook title>",
editor = "PyMC Team",
booktitle = "PyMC examples",
doi = "10.5281/zenodo.5654871"
}
```
{{ citation_code }}

which once rendered could look like:

Expand Down

0 comments on commit 26e5edb

Please # to comment.