Skip to content

Commit 16c7379

Browse files
committed
doc: add custom CSS to make tables wrap their text properly
1 parent e258247 commit 16c7379

File tree

3 files changed

+12
-20
lines changed

3 files changed

+12
-20
lines changed

doc/source/_static/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* override table width restrictions */
2+
.wy-table-responsive table td, .wy-table-responsive table th {
3+
white-space: normal;
4+
}
5+
6+
.wy-table-responsive {
7+
margin-bottom: 24px;
8+
max-width: 100%;
9+
overflow: visible;
10+
}

doc/source/_static/other.css

Lines changed: 0 additions & 19 deletions
This file was deleted.

doc/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ def get_igraph_version():
136136
# Inspired by pydoctor's RTD page itself
137137
# https://github.com/twisted/pydoctor/blob/master/docs/source/conf.py
138138
html_theme = "sphinx_rtd_theme"
139-
html_static_path = []
139+
html_static_path = ["_static"]
140+
html_css_files = ["custom.css"]
140141

141142
# The name for this set of Sphinx documents. If None, it defaults to
142143
# "<project> v<release> documentation".

0 commit comments

Comments
 (0)