sphinx-copybutton for docs, closes #1748

pull/1693/head
Simon Willison 2022-05-20 12:11:08 -07:00
rodzic 18a6e05887
commit 1465fea479
2 zmienionych plików z 8 dodań i 2 usunięć

Wyświetl plik

@ -31,7 +31,7 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ["sphinx.ext.extlinks", "sphinx.ext.autodoc"]
extensions = ["sphinx.ext.extlinks", "sphinx.ext.autodoc", "sphinx_copybutton"]
extlinks = {
"issue": ("https://github.com/simonw/datasette/issues/%s", "#"),

Wyświetl plik

@ -64,7 +64,13 @@ setup(
""",
setup_requires=["pytest-runner"],
extras_require={
"docs": ["sphinx_rtd_theme", "sphinx-autobuild", "codespell", "blacken-docs"],
"docs": [
"sphinx_rtd_theme",
"sphinx-autobuild",
"codespell",
"blacken-docs",
"sphinx-copybutton",
],
"test": [
"pytest>=5.2.2,<7.2.0",
"pytest-xdist>=2.2.1,<2.6",