Skip to content

Commit 956175d

Browse files
committed
Fix formatting of Markdown code blocks
1 parent d379424 commit 956175d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

docs/sphinx/_static/css/custom.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/* Display GitHub Flavored Markdown code blocks correctly */
2+
3+
.rst-content pre {
4+
background-color: #f5f5f5;
5+
border-radius: 6px;
6+
padding: 16px;
7+
margin: 16px 0;
8+
overflow-x: auto;
9+
}
10+
11+
.rst-content pre code {
12+
background-color: #f5f5f5;
13+
white-space: pre;
14+
border: none;
15+
padding: 0;
16+
}

docs/sphinx/conf.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@
4545

4646
html_theme = "sphinx_rtd_theme"
4747

48+
# These folders are copied to the documentation's HTML output
49+
html_static_path = ['_static']
50+
51+
# These paths are either relative to html_static_path
52+
# or fully qualified paths (eg. https://...)
53+
html_css_files = [
54+
'css/custom.css',
55+
]
56+
57+
4858
intersphinx_mapping = {
4959
"python": ("https://docs.python.org/3", None),
5060
"elastic-transport": (

0 commit comments

Comments
 (0)