File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
build/pkgs/sagemath_doc_html Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
- sagelib sphinx pplpy_doc | $(SAGERUNTIME) maxima networkx scipy sympy matplotlib pillow mathjax mpmath ipykernel jupyter_client conway_polynomials tachyon jmol ipywidgets jupyter_sphinx sage_docbuild elliptic_curves furo fpylll
1
+ sagelib sphinx sphinx_copybutton pplpy_doc | $(SAGERUNTIME) maxima networkx scipy sympy matplotlib pillow mathjax mpmath ipykernel jupyter_client conway_polynomials tachyon jmol ipywidgets jupyter_sphinx sage_docbuild elliptic_curves furo fpylll
2
2
3
3
# Building the documentation has many dependencies, because all
4
4
# documented modules are imported and because we use matplotlib to
Original file line number Diff line number Diff line change 46
46
'sphinx.ext.todo' ,
47
47
'sphinx.ext.extlinks' ,
48
48
'sphinx.ext.mathjax' ,
49
+ 'sphinx_copybutton' ,
49
50
'IPython.sphinxext.ipython_directive' ,
50
51
'matplotlib.sphinxext.plot_directive' ,
51
52
'jupyter_sphinx' ,
@@ -255,6 +256,11 @@ def set_intersphinx_mappings(app, config):
255
256
# By default document are not master.
256
257
multidocs_is_master = True
257
258
259
+ # https://sphinx-copybutton.readthedocs.io/en/latest/use.html
260
+ copybutton_prompt_text = r"sage: |[.][.][.][.]: |\$ "
261
+ copybutton_prompt_is_regexp = True
262
+ copybutton_exclude = '.linenos, .gp, .c' # exclude comments
263
+
258
264
# Options for HTML output
259
265
# -----------------------
260
266
You can’t perform that action at this time.
0 commit comments