Skip to content

Commit

Permalink
Merge pull request #2 from RobinEnjalbert/main
Browse files Browse the repository at this point in the history
Add copy button for each code block in the documentation.
  • Loading branch information
RobinEnjalbert authored Sep 13, 2024
2 parents 840b25b + 8105ddb commit 58e9598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme sphinx-tabs myst_parser numpy k3d vedo colour
pip install sphinx sphinx_rtd_theme sphinx-tabs sphinx_copybutton myst_parser numpy k3d vedo colour
- name: Sphinx build
run: |
sphinx-build docs/src docs/build
Expand Down
3 changes: 2 additions & 1 deletion docs/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
'sphinx.ext.autosummary',
'sphinx.ext.viewcode',
'sphinx.ext.extlinks',
'sphinx_tabs.tabs']
'sphinx_tabs.tabs',
'sphinx_copybutton']

intersphinx_mapping = {'python': ('https://docs.python.org/3/', None),
'sphinx': ('https://www.sphinx-doc.org/en/master/', None),
Expand Down

0 comments on commit 58e9598

Please sign in to comment.