diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index 8209215ef..b39097084 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -63,6 +63,10 @@ configure_file( "${SPHINX_BUILD}/gen_server_doc.py" @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) diff --git a/docs/conf.py.in b/docs/conf.py.in index 3f4289e0c..c5db6e684 100644 --- a/docs/conf.py.in +++ b/docs/conf.py.in @@ -59,4 +59,8 @@ html_theme = "sphinx_rtd_theme" # 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, # 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 \ No newline at end of file diff --git a/docs/static/extra.css b/docs/static/extra.css new file mode 100644 index 000000000..62e8dbd68 --- /dev/null +++ b/docs/static/extra.css @@ -0,0 +1,4 @@ +/* override table no-wrap */ +.wy-table-responsive table td, .wy-table-responsive table th { + white-space: normal; +} \ No newline at end of file