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 +- docs/requirements.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'docs') 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 ------------------------------------------------ diff --git a/docs/requirements.txt b/docs/requirements.txt index 0607b1ef..30af17ab 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1 +1,2 @@ sphinx_rtd_theme>=0.3.1 +pygments-lexer-solidity>=0.2 -- cgit v1.2.3