message: cleaned up sdk
diff: #
  import os
  import sys
  -from recommonmark.transform import AutoStructify
  -from recommonmark.states import DummyStateMachine
  import sphinx_rtd_theme
  +from recommonmark.transform import AutoStructify
  +
  +sys.path.insert(0, os.path.abspath('.'))
  +
  -source_parsers = {
  - '.md' : 'recommonmark.parser.CommonMarkParser',
  -}
  -source_suffix = ['.rst', '.md']
  #temporary fix for recommonmark's url resolver
  # -- Project information -----------------------------------------------------
  @@ -36,7 +34,7 @@ author = u'Hyperledger'
  version = u''
  # The full version, including alpha/beta/rc tags
  release = u''
  -
  +nickname = 'sdk'
  # -- General configuration ---------------------------------------------------
  @@ -63,7 +61,7 @@ templates_path = ['_templates']
  # The master toctree document.
  master_doc = 'index'
  -
  +source_suffix = ['.rst', '.md']
  # The language for content autogenerated by Sphinx. Refer to documentation
  # for a list of supported languages.
  #
  @@ -85,6 +83,8 @@ pygments_style = None
  # The theme to use for HTML and HTML Help pages. See the documentation for
  # a list of builtin themes.
  #
  +
  +
  html_theme = 'sphinx_rtd_theme'
  html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  @@ -187,6 +187,9 @@ epub_title = project
  epub_exclude_files = ['search.html']
  +source_parsers = {
  + '.md' : 'recommonmark.parser.CommonMarkParser',
  +}
  # -------------- Additional fix for Markdown parsing support ---------------
  # Once Recommonmark is fixed, remove this hack.
  from recommonmark.states import DummyStateMachine
  @@ -207,20 +210,19 @@ def setup(app):
  app.add_transform(AutoStructify)
  # ------------ Remote Documentation Builder Config -----------
  +# Note: this is a hacky way of maintaining a consistent sidebar amongst all the repositories.
  +# Do you have a better way to do it?
  on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
  -if(on_rtd):
  +if(True):
  rtd_version = os.environ.get('READTHEDOCS_VERSION', 'latest')
  if rtd_version not in ['stable', 'latest']:
  rtd_version = 'latest'
  -
  -# get sidebar file
  try:
  os.system("git clone https://github.com/michaeldboyd/sovrin-docs-conf.git remote_conf")
  os.system("mv remote_conf/remote_conf.py .")
  - os.system("rm toc.rst")
  import remote_conf
  - remote_conf.generate_sidebar(globals(), 'sdk')
  + remote_conf.generate_sidebar(globals(), nickname)
  intersphinx_mapping = remote_conf.get_intersphinx_mapping(rtd_version)
  master_doc = "toc"
  