Skip to content

Commit

Permalink
Added copy button to code snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias157 committed Sep 18, 2024
1 parent 580d511 commit 9177557
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
extensions = [
"myst_parser", # in order to use markdown
"autoapi.extension", # in order to use markdown
"sphinx_copybutton",
]

# search this directory for Python files
Expand All @@ -22,7 +23,7 @@
autoapi_ignore = ["*/conf.py"]

myst_enable_extensions = [
"colon_fence", # ::: can be used instead of ``` for better rendering
"colon_fence", # ::: can be used instead of ``` for better rendering
]

html_theme = "sphinx_rtd_theme"
Expand Down
3 changes: 2 additions & 1 deletion docs/docs_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ dependencies:
- myst-parser
- sphinx
- sphinx-rtd-theme
- sphinx-autoapi
- sphinx-autoapi
- sphinx-copybutton

0 comments on commit 9177557

Please sign in to comment.