Skip to content
Snippets Groups Projects
Unverified Commit 821e9108 authored by Chris Holdgraf's avatar Chris Holdgraf Committed by GitHub
Browse files

DOCS: Add copybutton console prefix (#1877)

closes undefined
parent 2115070f
No related branches found
No related tags found
No related merge requests found
...@@ -59,29 +59,12 @@ latex: ...@@ -59,29 +59,12 @@ latex:
sphinx: sphinx:
config: config:
nb_custom_formats:
.Rmd:
- jupytext.reads
- fmt: Rmd
bibtex_reference_style: author_year # or label, super, \supercite bibtex_reference_style: author_year # or label, super, \supercite
copybutton_prompt_text: "$"
execution_show_tb: True execution_show_tb: True
execution_timeout: 120 execution_timeout: 120
# TODO: #917 this path will be the default in sphinx v4 html_extra_path:
# mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js - images/badge.svg
# However, it is incompatible with the mathjax config below for macros
mathjax3_config:
tex:
macros:
"N": "\\mathbb{N}"
"floor": ["\\lfloor#1\\rfloor", 1]
"bmat": ["\\left[\\begin{array}"]
"emat": ["\\end{array}\\right]"]
latex_elements:
preamble: |
\newcommand\N{\mathbb{N}}
\newcommand\floor[1]{\lfloor#1\rfloor}
\newcommand{\bmat}{\left[\begin{array}}
\newcommand{\emat}{\end{array}\right]}
intersphinx_mapping: intersphinx_mapping:
ebp: ebp:
- "https://executablebooks.org/en/latest/" - "https://executablebooks.org/en/latest/"
...@@ -101,6 +84,27 @@ sphinx: ...@@ -101,6 +84,27 @@ sphinx:
sd: sd:
- https://sphinx-design.readthedocs.io/en/latest - https://sphinx-design.readthedocs.io/en/latest
- null - null
language: en
latex_elements:
preamble: |
\newcommand\N{\mathbb{N}}
\newcommand\floor[1]{\lfloor#1\rfloor}
\newcommand{\bmat}{\left[\begin{array}}
\newcommand{\emat}{\end{array}\right]}
# TODO: #917 this path will be the default in sphinx v4
# mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
# However, it is incompatible with the mathjax config below for macros
mathjax3_config:
tex:
macros:
"N": "\\mathbb{N}"
"floor": ["\\lfloor#1\\rfloor", 1]
"bmat": ["\\left[\\begin{array}"]
"emat": ["\\end{array}\\right]"]
nb_custom_formats:
.Rmd:
- jupytext.reads
- fmt: Rmd
rediraffe_branch: 'master' rediraffe_branch: 'master'
rediraffe_redirects: rediraffe_redirects:
content-types/index.md: file-types/index.md content-types/index.md: file-types/index.md
...@@ -110,9 +114,6 @@ sphinx: ...@@ -110,9 +114,6 @@ sphinx:
content-types/jupytext.md: file-types/jupytext.Rmd content-types/jupytext.md: file-types/jupytext.Rmd
content-types/restructuredtext.md: file-types/restructuredtext.md content-types/restructuredtext.md: file-types/restructuredtext.md
customize/toc.md: structure/toc.md customize/toc.md: structure/toc.md
language: en
html_extra_path:
- images/badge.svg
extra_extensions: extra_extensions:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment