diff --git a/docs/conf.py b/docs/conf.py index ce9c12fec..b850daef9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 diff --git a/docs/requirements.in b/docs/requirements.in index 6a049cb10..9dc4cb150 100644 --- a/docs/requirements.in +++ b/docs/requirements.in @@ -1,2 +1,3 @@ sphinx_rtd_theme==1.2.0 -sphinx==6.2.1 \ No newline at end of file +sphinx==6.2.1 +sphinx_copybutton==0.5.2 \ No newline at end of file diff --git a/docs/requirements.txt b/docs/requirements.txt index b32df955e..12e7cd9b7 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -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