Skip to content

Commit

Permalink
add copybutton
Browse files Browse the repository at this point in the history
  • Loading branch information
apparebit committed May 27, 2024
1 parent aa2ada0 commit f8e2fdf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,11 @@ jobs:
python-version: "3.12"
cache: "pip"

- name: Install Sphinx & Autoprogram, Design, RTD Theme
- name: Install Sphinx & Autoprogram, Copy Button, Design, RTD Theme
run: |
python -m pip install --upgrade pip
pip install sphinx sphinxcontrib-autoprogram sphinx_design sphinx-rtd-theme
pip install sphinx sphinxcontrib-autoprogram
pip install sphinx-copybutton sphinx_design sphinx-rtd-theme
- name: Set up Pages
id: pages
Expand Down
2 changes: 2 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@
#"sphinx.ext.extlinks",
"sphinx.ext.viewcode",
"sphinxcontrib.autoprogram",
"sphinx_copybutton",
"sphinx_design",
"sphinx_rtd_theme",
]

napoleon_include_init_with_doc = True
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
copybutton_exclude = '.linenos, .gp, .go'

# -- Options for HTML output -------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ dev = ["pyright", "flit"]
doc = [
"sphinx",
"sphinxcontrib-autoprogram",
"sphinx-copybutton",
"sphinx_design",
"sphinx-rtd-theme",
]
Expand Down

0 comments on commit f8e2fdf

Please sign in to comment.