|
|
@ -15,13 +15,15 @@ |
|
|
|
import sys |
|
|
|
import sys |
|
|
|
import os |
|
|
|
import os |
|
|
|
|
|
|
|
|
|
|
|
from recommonmark.parser import CommonMarkParser |
|
|
|
|
|
|
|
source_parsers = {'.md': CommonMarkParser} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# If extensions (or modules to document with autodoc) are in another directory, |
|
|
|
# If extensions (or modules to document with autodoc) are in another directory, |
|
|
|
# add these directories to sys.path here. If the directory is relative to the |
|
|
|
# add these directories to sys.path here. If the directory is relative to the |
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here. |
|
|
|
# documentation root, use os.path.abspath to make it absolute, like shown here. |
|
|
|
#sys.path.insert(0, os.path.abspath('.')) |
|
|
|
sys.path.insert(0, os.path.abspath('.')) |
|
|
|
|
|
|
|
from recommonmark.parser import CommonMarkParser |
|
|
|
|
|
|
|
from recommonmark.transform import AutoStructify |
|
|
|
|
|
|
|
source_parsers = {'.md': CommonMarkParser} |
|
|
|
|
|
|
|
|
|
|
|
# -- General configuration ------------------------------------------------ |
|
|
|
# -- General configuration ------------------------------------------------ |
|
|
|
|
|
|
|
|
|
|
@ -53,6 +55,8 @@ project = u'Remix, Ethereum-IDE' |
|
|
|
copyright = u'2018, Remix' |
|
|
|
copyright = u'2018, Remix' |
|
|
|
author = u'Remix team' |
|
|
|
author = u'Remix team' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
github_doc_root = 'https://github.com/ethereum/remix/tree/master/docs/' |
|
|
|
|
|
|
|
|
|
|
|
# The version info for the project you're documenting, acts as replacement for |
|
|
|
# The version info for the project you're documenting, acts as replacement for |
|
|
|
# |version| and |release|, also used in various other places throughout the |
|
|
|
# |version| and |release|, also used in various other places throughout the |
|
|
|
# built documents. |
|
|
|
# built documents. |
|
|
@ -97,7 +101,7 @@ exclude_patterns = ['_build'] |
|
|
|
# The name of the Pygments (syntax highlighting) style to use. |
|
|
|
# The name of the Pygments (syntax highlighting) style to use. |
|
|
|
pygments_style = 'sphinx' |
|
|
|
pygments_style = 'sphinx' |
|
|
|
|
|
|
|
|
|
|
|
highlight_language = 'Solidity' |
|
|
|
highlight_language = 'JavaScript' |
|
|
|
|
|
|
|
|
|
|
|
# A list of ignored prefixes for module index sorting. |
|
|
|
# A list of ignored prefixes for module index sorting. |
|
|
|
#modindex_common_prefix = [] |
|
|
|
#modindex_common_prefix = [] |
|
|
@ -288,3 +292,13 @@ texinfo_documents = [ |
|
|
|
|
|
|
|
|
|
|
|
# If true, do not generate a @detailmenu in the "Top" node's menu. |
|
|
|
# If true, do not generate a @detailmenu in the "Top" node's menu. |
|
|
|
#texinfo_no_detailmenu = False |
|
|
|
#texinfo_no_detailmenu = False |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# app setup hook |
|
|
|
|
|
|
|
def setup(app): |
|
|
|
|
|
|
|
app.add_config_value('recommonmark_config', { |
|
|
|
|
|
|
|
'url_resolver': lambda url: github_doc_root + url, |
|
|
|
|
|
|
|
'enable_auto_toc_tree': True, |
|
|
|
|
|
|
|
'enable_eval_rst': True, |
|
|
|
|
|
|
|
'enable_auto_doc_ref': True, |
|
|
|
|
|
|
|
}, True) |
|
|
|
|
|
|
|
app.add_transform(AutoStructify) |