Skip to content

Commit

Permalink
Fix formatting of Markdown code blocks (#2750)
Browse files Browse the repository at this point in the history
* Fix formatting of Markdown code blocks

* Fix lint
  • Loading branch information
pquentin authored Jan 20, 2025
1 parent b3e2f75 commit 3599f01
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/sphinx/_static/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* Display GitHub Flavored Markdown code blocks correctly */

.rst-content pre {
background-color: #f5f5f5;
border-radius: 6px;
padding: 16px;
margin: 16px 0;
overflow-x: auto;
}

.rst-content pre code {
background-color: #f5f5f5;
white-space: pre;
border: none;
padding: 0;
}
2 changes: 2 additions & 0 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
pygments_style = "sphinx"

html_theme = "sphinx_rtd_theme"
html_static_path = ["_static"]
html_css_files = ["css/custom.css"]

intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
Expand Down

0 comments on commit 3599f01

Please sign in to comment.