# All configuration values have a default; values that are commented out
# serve to show the default.
-import sys, os
+import sys, os, inspect
# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
#sys.path.insert(0, os.path.abspath('.'))
+#path to this script
+scriptpath = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
+
# -- General configuration -----------------------------------------------------
# If your documentation needs a minimal Sphinx version, state it here.
extensions = ['sphinx.ext.todo']
# Add any paths that contain templates here, relative to this directory.
-# templates_path = ['@CMAKE_CURRENT_SOURCE_DIR@/ocdoc/_shared_assets/templates']
+templates_path = [scriptpath+'/ocdoc/_shared_assets/templates']
# The suffix of source filenames.
source_suffix = '.rst'
# built documents.
#
# The short X.Y version.
-version = '@VERSION_MAJOR@.@VERSION_MINOR@'
+version = '1.6.2'
# The full version, including alpha/beta/rc tags.
-release = '@VERSION@'
+release = version
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
-# html_theme_path = ['@CMAKE_CURRENT_SOURCE_DIR@/ocdoc/_shared_assets/themes']
+html_theme_path = [scriptpath+'/ocdoc/_shared_assets/themes']
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
-#html_static_path = ['@CMAKE_CURRENT_SOURCE_DIR@/ocdoc/_shared_assets/static']
+html_static_path = [scriptpath+'/ocdoc/_shared_assets/static']
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
# using the given strftime format.
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
- ('owncloud.1', 'owncloud', u'Android synchronisation and file management
-utility.',
+ ('owncloud.1', 'owncloud', u'Android synchronisation and file management utility.',
[u'The ownCloud developers'], 1),
('owncloudcmd.1', 'owncloudcmd', u'ownCloud Android app.',
[u'The ownCloud developers'], 1),