Skip to content

Commit

Permalink
Fix formatting of Markdown code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Jan 17, 2025
1 parent 14f22ae commit 5158036
Show file tree
Hide file tree
Showing 2 changed files with 26 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;
}
10 changes: 10 additions & 0 deletions docs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@

html_theme = "sphinx_rtd_theme"

# These folders are copied to the documentation's HTML output
html_static_path = ['_static']

# These paths are either relative to html_static_path
# or fully qualified paths (eg. https://...)
html_css_files = [
'css/custom.css',
]


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

0 comments on commit 5158036

Please sign in to comment.