添加复制button

在 docs/conf.py 文件中添加:

  1. extensions = [
  2. 'sphinx.ext.autodoc',
  3. 'sphinx.ext.autosummary',
  4. 'sphinx_rtd_theme',
  5. # 'numpydoc',
  6. 'nbsphinx',
  7. 'sphinx_copybutton',
  8. 'sphinx-tabs',
  9. ]

添加代码块 Tabs:sphinx-tabs,文档 https://readthedocs.org/