File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 1212author = "Adam Dangoor"
1313
1414extensions = [
15+ "sphinx_copybutton" ,
1516 "sphinx.ext.autodoc" ,
1617 "sphinx.ext.intersphinx" ,
1718 "sphinx.ext.napoleon" ,
2627year = datetime .datetime .now (tz = datetime .UTC ).year
2728project_copyright = f"{ year } , { author } "
2829
30+ # Exclude the prompt from copied code with sphinx_copybutton.
31+ # https://sphinx-copybutton.readthedocs.io/en/latest/use.html#automatic-exclusion-of-prompts-from-the-copies.
32+ copybutton_exclude = ".linenos, .gp"
33+
2934# The version info for the project you're documenting, acts as replacement for
3035# |version| and |release|, also used in various other places throughout the
3136# built documents.
Original file line number Diff line number Diff line change @@ -59,6 +59,7 @@ optional-dependencies.dev = [
5959 " pyyaml==6.0.1" ,
6060 " ruff==0.5.5" ,
6161 " sphinx==7.4.7" ,
62+ " sphinx-copybutton==0.5.2" ,
6263 " sphinx-substitution-extensions==2024.2.25" ,
6364 " sphinxcontrib-spelling==8" ,
6465 " sybil==6.1.1" ,
You can’t perform that action at this time.
0 commit comments