Add copy button extension for documentation code blocks

This commit is contained in:
ionutboangiu
2023-06-22 11:47:21 -04:00
committed by Dan Christian Bogos
parent ef99675fc3
commit 4f24be272c
3 changed files with 10 additions and 3 deletions

View File

@@ -25,7 +25,10 @@ import sys, os
# 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.todo']
extensions = [
'sphinx.ext.todo',
'sphinx_copybutton'
]
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
@@ -41,7 +44,7 @@ master_doc = 'index'
# General information about the project.
project = u'CGRateS'
copyright = u'2012-2020, ITsysCOM GmbH'
copyright = u'2012-2023, ITsysCOM GmbH'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the

View File

@@ -1,2 +1,3 @@
sphinx_rtd_theme==1.2.0
sphinx==6.2.1
sphinx==6.2.1
sphinx_copybutton==0.5.2

View File

@@ -37,8 +37,11 @@ snowballstemmer==2.2.0
sphinx==6.2.1
# via
# -r requirements.in
# sphinx-copybutton
# sphinx-rtd-theme
# sphinxcontrib-jquery
sphinx-copybutton==0.5.2
# via -r requirements.in
sphinx-rtd-theme==1.2.0
# via -r requirements.in
sphinxcontrib-applehelp==1.0.4