Files
nextcloud-docs/conf.py
Julius Härtl cb8a8b7bd5 Add edit on github link to documentation pages
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2018-02-03 11:39:36 +01:00

32 lines
866 B
Python

# global configuration for every documentation added at the end
import os, sys
dir_path = os.path.dirname(os.path.realpath(__file__))
sys.path.insert(0, os.path.abspath(dir_path + '/_ext'))
extensions = ['edit_on_github']
# General information about the project.
copyright = u'2012-2017, The Nextcloud developers'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
version = '13'
# The full version, including alpha/beta/rc tags.
release = '13'
# substitutions go here
rst_epilog = '.. |version| replace:: %s' % version
html_context = {
'doc_versions': ['11', '12', '13'],
'current_doc': os.path.basename(os.getcwd()),
}
edit_on_github_project = 'nextcloud/documentation'
edit_on_github_branch = 'master'