From 7acf5d524431a881b4613759e11244e598b70205 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Wed, 23 May 2018 16:53:10 +0300 Subject: docs: use SolidityLexer from pygments_lexer_solidity package. --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 7e107f2a..0cc245b5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -24,7 +24,7 @@ import re def setup(sphinx): thisdir = os.path.dirname(os.path.realpath(__file__)) sys.path.insert(0, thisdir + '/utils') - from SolidityLexer import SolidityLexer + from pygments_lexer_solidity import SolidityLexer sphinx.add_lexer('Solidity', SolidityLexer()) # -- General configuration ------------------------------------------------ -- cgit v1.2.3 From 3678450549ae3f531d21795c2cdde9f5681a1744 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Thu, 24 May 2018 14:21:19 +0300 Subject: docs: change default theme to RTD's. RTD probably has their `default` theme set to their own `rtd` theme, while CircleCI has some regular default Sphinx theme. This changes the Sphinx project configuration to use `rtd` as the theme. --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 0cc245b5..fdb67367 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -112,7 +112,7 @@ highlight_language = 'Solidity' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' +html_theme = 'sphinx_rtd_theme' # Theme options are theme-specific and customize the look and feel of a theme # further. For a list of options available for each theme, see the -- cgit v1.2.3 From 3cc780de33cf3a524d80f8b34b57183fe7b93168 Mon Sep 17 00:00:00 2001 From: wpank Date: Wed, 27 Jun 2018 12:01:48 -0700 Subject: Added static CSS to Sphinx in order to fix bug with RTD theme table wrapping --- docs/conf.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index fdb67367..fcf46c11 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -141,7 +141,16 @@ 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 = [] +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 + ], + } # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied -- cgit v1.2.3 From a673785326d85fc0a2b27542c329b5dff8d397f4 Mon Sep 17 00:00:00 2001 From: Shadab Khan Date: Thu, 28 Jun 2018 00:34:18 +0530 Subject: 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 --- docs/conf.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index fcf46c11..55f4f1a8 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -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 -- cgit v1.2.3 From 4fc15a5beb4dd643318b9f6cd75ae56336be69d1 Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Aug 2018 22:42:19 +0200 Subject: Fix table css. --- docs/conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/conf.py') diff --git a/docs/conf.py b/docs/conf.py index 55f4f1a8..233ff7b6 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -143,7 +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 = [] +html_static_path = ['_static'] # Add any extra paths that contain custom files (such as robots.txt or # .htaccess) here, relative to this directory. These files are copied -- cgit v1.2.3