Skip to content

add sphinx-copybutton configurations to exclude prompts #59370

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/source/_static/css/pandas.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ table {
.card, .card img {
background-color: var(--pst-color-background);
}

/* Override some aspects of the sphinx-copybutton */
button.copybtn {
opacity: 1;
}
4 changes: 4 additions & 0 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"numpydoc",
"sphinx_copybutton",
"sphinx_design",
"sphinx_toggleprompt",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.coverage",
Expand All @@ -71,6 +72,9 @@
"nbsphinx",
]

# sphinx-toggleprompt configurations
toggleprompt_offset_right = 35

exclude_patterns = [
"**.ipynb_checkpoints",
# to ensure that include files (partial pages) aren't built, exclude them
Expand Down
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ dependencies:
- sphinx
- sphinx-design
- sphinx-copybutton
- sphinx-toggleprompt
- types-python-dateutil
- types-PyMySQL
- types-pytz
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ pytest-cython
sphinx
sphinx-design
sphinx-copybutton
sphinx-toggleprompt
types-python-dateutil
types-PyMySQL
types-pytz
Expand Down
Loading