Skip to content

Commit

Permalink
fixing doc conf.py for rtfm without catkin_pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
asmodehn committed Jun 5, 2019
1 parent d3eb386 commit 4cf0749
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,8 @@
# 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.

## get catkin package information
import os
import catkin_pkg.package
catkin_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
catkin_package = catkin_pkg.package.parse_package(
os.path.join(catkin_dir, catkin_pkg.package.PACKAGE_MANIFEST_FILENAME))
with open('../pyros-setup/_version.py') as vf:
exec(vf.read())

# -- General configuration ---------------------------------------------------

Expand Down Expand Up @@ -57,9 +53,9 @@
# built documents.
#
# The short X.Y version.
version = catkin_package.version
version = __version__
# The full version, including alpha/beta/rc tags.
release = catkin_package.version
release = __version__

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit 4cf0749

Please sign in to comment.