Skip to content

Commit

Permalink
add sphinx-toggleprompt
Browse files Browse the repository at this point in the history
  • Loading branch information
mosc9575 committed Aug 7, 2024
1 parent 94bfb28 commit fbfefff
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
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;
}
6 changes: 3 additions & 3 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,9 +72,8 @@
"nbsphinx",
]

# sphinx-copybutton configurations
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.{3,}: | {5,8}: "
copybutton_prompt_is_regexp = True
# sphinx-toggleprompt configurations
toggleprompt_offset_right = 35

exclude_patterns = [
"**.ipynb_checkpoints",
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

0 comments on commit fbfefff

Please sign in to comment.