feat(docs): Add a "copy" button to code blocks

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
This commit is contained in:
Josh Richards
2024-05-17 08:51:03 -04:00
parent 56cffe2b1e
commit 8cb68ea02c
2 changed files with 2 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.abspath(dir_path + '/_ext'))
now = datetime.datetime.now()
extensions = ['sphinx_rtd_theme', 'sphinx_rtd_dark_mode']
extensions = ['sphinx_rtd_theme', 'sphinx_rtd_dark_mode', 'sphinx_copybutton']
# General information about the project.
copyright = str(now.year) + ' Nextcloud GmbH'

View File

@@ -18,6 +18,7 @@ rst2pdf==0.101
smartypants==2.0.1
snowballstemmer==2.2.0
Sphinx==7.2.6
sphinx-copybutton==0.5.2
sphinx-rtd-theme==2.0.0
sphinx-rtd-dark-mode==1.3.0
sphinxcontrib-applehelp==1.0.8