[docs] Add copy and toggle buttons to sphinx (#3054)

* Support sphinx toggle and copy buttons

* add buttons to conf
This commit is contained in:
edenlightning 2020-08-19 18:59:45 -04:00 committed by GitHub
parent 7358d456f3
commit ee4eae884b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -96,7 +96,9 @@ extensions = [
# 'm2r',
'nbsphinx',
'sphinx_autodoc_typehints',
'sphinx_copybutton',
'sphinx_paramlinks',
'sphinx_togglebutton',
]
# Add any paths that contain templates here, relative to this directory.

View File

@ -10,3 +10,5 @@ https://github.com/PyTorchLightning/lightning_sphinx_theme/archive/master.zip#eg
# pip_shims
sphinx-autodoc-typehints
sphinx-paramlinks<0.4.0
sphinx-togglebutton
sphinx-copybutton