From 821e910826a05798daca105ebea435892754f6c3 Mon Sep 17 00:00:00 2001 From: Chris Holdgraf <choldgraf@berkeley.edu> Date: Fri, 9 Dec 2022 10:14:30 +0100 Subject: [PATCH] DOCS: Add copybutton console prefix (#1877) closes undefined --- docs/_config.yml | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/docs/_config.yml b/docs/_config.yml index 4a8667a7..e8396778 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -59,29 +59,12 @@ latex: sphinx: config: - nb_custom_formats: - .Rmd: - - jupytext.reads - - fmt: Rmd bibtex_reference_style: author_year # or label, super, \supercite + copybutton_prompt_text: "$" execution_show_tb: True execution_timeout: 120 - # 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]"] - latex_elements: - preamble: | - \newcommand\N{\mathbb{N}} - \newcommand\floor[1]{\lfloor#1\rfloor} - \newcommand{\bmat}{\left[\begin{array}} - \newcommand{\emat}{\end{array}\right]} + html_extra_path: + - images/badge.svg intersphinx_mapping: ebp: - "https://executablebooks.org/en/latest/" @@ -101,6 +84,27 @@ sphinx: sd: - https://sphinx-design.readthedocs.io/en/latest - 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_redirects: content-types/index.md: file-types/index.md @@ -110,9 +114,6 @@ sphinx: content-types/jupytext.md: file-types/jupytext.Rmd content-types/restructuredtext.md: file-types/restructuredtext.md customize/toc.md: structure/toc.md - language: en - html_extra_path: - - images/badge.svg extra_extensions: -- GitLab