mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add custom.css for docs to change pre tag styles
Specify white space for table cells Add custom.css for docs to change pre tag styles Specify white space for table cells Rearrange code Delete theme_overrides.css Remove extra code
This commit is contained in:
+3
-10
@@ -27,6 +27,8 @@ def setup(sphinx):
|
||||
from pygments_lexer_solidity import SolidityLexer
|
||||
sphinx.add_lexer('Solidity', SolidityLexer())
|
||||
|
||||
sphinx.add_stylesheet('css/custom.css')
|
||||
|
||||
# -- General configuration ------------------------------------------------
|
||||
|
||||
# If your documentation needs a minimal Sphinx version, state it here.
|
||||
@@ -141,16 +143,7 @@ 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']
|
||||
|
||||
# A dictionary of values to pass into the template engine’s context for
|
||||
# all pages. Single values can also be put in
|
||||
# this dictionary using the -A command-line option of sphinx-build.
|
||||
html_context = {
|
||||
'css_files': [
|
||||
'_static/theme_overrides.css', # override wide tables in sphinx_rtd_theme
|
||||
],
|
||||
}
|
||||
html_static_path = []
|
||||
|
||||
# Add any extra paths that contain custom files (such as robots.txt or
|
||||
# .htaccess) here, relative to this directory. These files are copied
|
||||
|
||||
Reference in New Issue
Block a user