File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ sphinx==4.0.3
22sphinx-autobuild == 0.7.1
33sphinx-inline-tabs == 2021.4.11b9
44python-docs-theme == 2021.5
5+ sphinx-copybutton == 0.4.0
56git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme
Original file line number Diff line number Diff line change 1+ /* Overrides for theme and plugin styles */
2+
3+ /* https://github.com/executablebooks/sphinx-copybutton/blob/v0.4.0/sphinx_copybutton/_static/copybutton.css */
4+
5+ button .copybtn img {
6+ /* Fix alignment for pypa_theme */
7+ padding : 0 ;
8+ }
Original file line number Diff line number Diff line change 3535 'sphinx.ext.intersphinx' ,
3636 'sphinx.ext.todo' ,
3737 'sphinx_inline_tabs' ,
38+ 'sphinx_copybutton' ,
3839]
3940
41+ # config for copy button
42+ copybutton_prompt_text = r">>> |\.\.\. |\$ |> "
43+ copybutton_prompt_is_regexp = True
44+
4045# Add any paths that contain templates here, relative to this directory.
4146templates_path = ['_templates' ]
4247
176181# Add any paths that contain custom static files (such as style sheets) here,
177182# relative to this directory. They are copied after the builtin static files,
178183# so a file named "default.css" will overwrite the builtin "default.css".
179- # html_static_path = ['_static']
184+ html_static_path = ['_static' ]
185+
186+ html_css_files = ['overrides.css' ]
180187
181188# Add any extra paths that contain custom files (such as robots.txt or
182189# .htaccess) here, relative to this directory. These files are copied
You can’t perform that action at this time.
0 commit comments