File tree Expand file tree Collapse file tree 3 files changed +20
-12
lines changed
Expand file tree Collapse file tree 3 files changed +20
-12
lines changed Original file line number Diff line number Diff line change 6363 - name : Install dependencies
6464 run : |
6565 conda install mpi4py pandas setuptools
66- pip install pyomo sphinx sphinx_rtd_theme dill gridx-egret cplex pybind11
66+ pip install pyomo sphinx sphinx_rtd_theme sphinx-copybutton dill gridx-egret cplex pybind11
6767 pip install xpress
6868
6969 - name : Build pyomo extensions
Original file line number Diff line number Diff line change 4242# Add any Sphinx extension module names here, as strings. They can be
4343# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
4444# ones.
45- extensions = ['sphinx.ext.autodoc' ,
46- 'sphinx.ext.coverage' ,
47- 'sphinx.ext.mathjax' ,
48- 'sphinx.ext.viewcode' ,
49- 'sphinx.ext.napoleon' ,
50- 'sphinx.ext.ifconfig' ,
51- 'sphinx.ext.inheritance_diagram' ,
52- 'sphinx.ext.autosummary' ,
53- 'sphinx.ext.doctest' ]
54- #'sphinx.ext.githubpages']
45+ extensions = [
46+ "sphinx.ext.autodoc" ,
47+ "sphinx.ext.coverage" ,
48+ "sphinx.ext.mathjax" ,
49+ "sphinx.ext.viewcode" ,
50+ "sphinx.ext.napoleon" ,
51+ "sphinx.ext.ifconfig" ,
52+ "sphinx.ext.inheritance_diagram" ,
53+ "sphinx.ext.autosummary" ,
54+ "sphinx.ext.doctest" ,
55+ #'sphinx.ext.githubpages',
56+ "sphinx_copybutton" ,
57+ ]
58+
59+ # allow the sphinx-copybutton to remove prompt text
60+ copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
61+ copybutton_prompt_is_regexp = True
5562
5663viewcode_import = True
5764#napoleon_include_private_with_doc = True
Original file line number Diff line number Diff line change @@ -38,8 +38,9 @@ tracker = "https://github.com/Pyomo/mpi-sppy/issues"
3838
3939[project .optional-dependencies ]
4040doc = [
41- " sphinx_rtd_theme" ,
4241 " sphinx" ,
42+ " sphinx-copybutton" ,
43+ " sphinx_rtd_theme" ,
4344]
4445mpi = [
4546 " mpi4py>=3.0.3"
You can’t perform that action at this time.
0 commit comments