column wrap for long attributes

This commit is contained in:
Erik Frojdh 2020-09-11 17:47:28 +02:00
parent e10ebe33d7
commit 2285061623
3 changed files with 13 additions and 1 deletions

View File

@ -63,6 +63,10 @@ configure_file(
"${SPHINX_BUILD}/gen_server_doc.py" "${SPHINX_BUILD}/gen_server_doc.py"
@ONLY) @ONLY)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/static/extra.css"
"${SPHINX_BUILD}/static/css/extra.css"
@ONLY)
add_custom_target(server_rst python gen_server_doc.py) add_custom_target(server_rst python gen_server_doc.py)

View File

@ -59,4 +59,8 @@ html_theme = "sphinx_rtd_theme"
# Add any paths that contain custom static files (such as style sheets) here, # Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files, # relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css". # so a file named "default.css" will overwrite the builtin "default.css".
#html_static_path = ['_static'] html_static_path = ['static']
def setup(app):
app.add_stylesheet('css/extra.css') # may also be an URL

4
docs/static/extra.css vendored Normal file
View File

@ -0,0 +1,4 @@
/* override table no-wrap */
.wy-table-responsive table td, .wy-table-responsive table th {
white-space: normal;
}