diff --git a/devtools/conda-envs/build-doc.yml b/devtools/conda-envs/build-doc.yml new file mode 100644 index 0000000..f5dfab3 --- /dev/null +++ b/devtools/conda-envs/build-doc.yml @@ -0,0 +1,20 @@ +name: build +channels: + - conda-forge +dependencies: + - cmake + - compilers + - khronos-opencl-icd-loader + - make + - openmm >=7.7 + - pip >=22.2 + - pocl + - pytest + - python + - swig =4.0 + - numpy + + # Docs depends + - sphinx + - sphinxcontrib-bibtex + - sphinx-copybutton diff --git a/docs/conf.py b/docs/conf.py index 5967010..f565efa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,6 +48,7 @@ def create_rst_file(cls): 'sphinx.ext.todo', 'sphinx.ext.mathjax', 'sphinxcontrib.bibtex', + 'sphinx_copybutton', ] if os.getenv('SPELLCHECK'): extensions += 'sphinxcontrib.spelling', @@ -117,3 +118,7 @@ def setup(app): # External links extlinks = {'OpenMM': ('http://docs.openmm.org/latest/api-python/generated/openmm.openmm.%s.html', 'openmm.%s')} + +# Copy button configuration +copybutton_prompt_text = r">>> |\.\.\. " +copybutton_prompt_is_regexp = True