Docs: added custom.css to override default hyphenation and text align styles

This commit is contained in:
gd 2022-11-08 17:30:06 +02:00
parent a0a11be79b
commit 14460c6b6d
3 changed files with 12 additions and 0 deletions

7
doc/_static/css/custom.css vendored Normal file
View File

@ -0,0 +1,7 @@
div.body p, div.body dd, div.body li, div.body blockquote {
text-align: left !important;
-moz-hyphens: manual;
-ms-hyphens: manual;
-webkit-hyphens: manual;
hyphens: manual;
}

View File

@ -140,6 +140,10 @@ html_theme_options = {"sidebarwidth": "300px"}
# 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']
html_css_files = [
'css/custom.css',
]
# Add any extra paths that contain custom files (such as robots.txt or # Add any extra paths that contain custom files (such as robots.txt or
# .htaccess) here, relative to this directory. These files are copied # .htaccess) here, relative to this directory. These files are copied
# directly to the root of the documentation. # directly to the root of the documentation.

View File

@ -17,6 +17,7 @@ if get_option('html_manual')
'client.rst', 'client.rst',
'protocol.rst', 'protocol.rst',
'conf.py', 'conf.py',
'_static/css/custom.css'
], ],
command: [sphinx, '-q', '-b', 'html', '-d', '@OUTDIR@/doctrees', meson.current_source_dir(), '@OUTPUT@'], command: [sphinx, '-q', '-b', 'html', '-d', '@OUTDIR@/doctrees', meson.current_source_dir(), '@OUTPUT@'],
build_by_default: true, build_by_default: true,