Skip to content
Merged
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
9 changes: 9 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinx.ext.githubpages",
"sphinx_copybutton",
]

templates_path = ["_templates"]
Expand All @@ -57,6 +58,14 @@
html_favicon = html_logo
html_static_path = ["_static"]

# -- Extension - CopyButton - Configuration ----------------------------------

# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#using-regexp-prompt-identifiers
copybutton_prompt_text = r">>> |\.\.\. |\$ |\$\w|In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
copybutton_prompt_is_regexp = True
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#honor-here-document-syntax-when-copying-multiline-snippets
copybutton_here_doc_delimiter = "EOT"


# -- Fetch image references --------------------------------------------------
# Download all of the image files referenced in images.toml
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ requests==2.32.5
#breathe==4.31.0
#sphinxcontrib-svg2pdfconverter==1.1.1
#sphinxcontrib-mermaid==0.8.1
sphinx-copybutton>=0.5.2
furo>=2025.9.25
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,14 @@ dynamic = ["version"]
[dependency-groups]
test = ["pytest"]
dev = ["build", "pre-commit"]
docs = ["sphinx", "myst-parser", "furo>=2025.9.25"]
docs = ["sphinx", "myst-parser", "furo>=2025.9.25", "sphinx-copybutton>=0.5.2"]

[project.optional-dependencies]
macho = ["lief==0.17.1"]
java = ["javatools>=1.6,==1.*"]
test = ["pytest", "pytest-asyncio"]
dev = ["build", "pre-commit"]
docs = ["sphinx", "myst-parser", "furo>=2025.9.25"]
docs = ["sphinx", "myst-parser", "furo>=2025.9.25", "sphinx-copybutton>=0.5.2"]

[project.scripts]
surfactant = "surfactant.__main__:main"
Expand All @@ -88,8 +88,6 @@ Documentation = "https://surfactant.readthedocs.io/en/latest/"
"Issue Tracker" = "https://github.com/LLNL/Surfactant/issues"
"Source Code" = "https://github.com/LLNL/Surfactant"



[tool.setuptools.packages.find]
include = ["surfactant", "surfactant.*"]

Expand Down