import os
import sys
import sphinx_rtd_theme
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
import sphinxcontrib; reload(sphinxcontrib)
extensions = ['sphinxcontrib.ros']
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'sphinxcontritb-ros'
copyright = u'2015, Tamaki Nishino'
version = '0.1.0'
release = '0.1.0'
exclude_patterns = ['_build']
pygments_style = 'sphinx'
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

def setup(app):
    app.add_description_unit('confval', 'confval',
                             'pair: %s; configuration value')

import os
import sys
import sphinx_rtd_theme
import pkg_resources
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
import sphinxcontrib; reload(sphinxcontrib)
extensions = ['sphinxcontrib.ros']
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'sphinxcontritb-ros'
copyright = u'2015, Tamaki Nishino'
version = pkg_resources.require('sphinxcontrib-ros')[0].version
release = version
exclude_patterns = ['_build']
pygments_style = 'sphinx'
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

def setup(app):
    app.add_description_unit('confval', 'confval',
                             'pair: %s; configuration value')

Use the source version as a doc version
Use the source version as a doc version

  import os
  import sys
  import sphinx_rtd_theme
+ import pkg_resources
  sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
  import sphinxcontrib; reload(sphinxcontrib)
  extensions = ['sphinxcontrib.ros']
  templates_path = ['_templates']
  source_suffix = '.rst'
  master_doc = 'index'
  project = u'sphinxcontritb-ros'
  copyright = u'2015, Tamaki Nishino'
- version = '0.1.0'
- release = '0.1.0'
+ version = pkg_resources.require('sphinxcontrib-ros')[0].version
+ release = version
  exclude_patterns = ['_build']
  pygments_style = 'sphinx'
  html_theme = "sphinx_rtd_theme"
  html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
  
  def setup(app):
      app.add_description_unit('confval', 'confval',
                               'pair: %s; configuration value')
  
Use the source version as a doc version
## Code Before:
import os
import sys
import sphinx_rtd_theme
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
import sphinxcontrib; reload(sphinxcontrib)
extensions = ['sphinxcontrib.ros']
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'sphinxcontritb-ros'
copyright = u'2015, Tamaki Nishino'
version = '0.1.0'
release = '0.1.0'
exclude_patterns = ['_build']
pygments_style = 'sphinx'
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

def setup(app):
    app.add_description_unit('confval', 'confval',
                             'pair: %s; configuration value')

## Instruction:
Use the source version as a doc version
## Code After:
import os
import sys
import sphinx_rtd_theme
import pkg_resources
sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))
import sphinxcontrib; reload(sphinxcontrib)
extensions = ['sphinxcontrib.ros']
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = u'sphinxcontritb-ros'
copyright = u'2015, Tamaki Nishino'
version = pkg_resources.require('sphinxcontrib-ros')[0].version
release = version
exclude_patterns = ['_build']
pygments_style = 'sphinx'
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

def setup(app):
    app.add_description_unit('confval', 'confval',
                             'pair: %s; configuration value')
