diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 00000000..12c98df1 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "docs/_sentryext"] + path = docs/_sentryext + url = https://github.com/getsentry/sentry-doc-support.git diff --git a/docs/_sentryext b/docs/_sentryext new file mode 160000 index 00000000..e9b477ff --- /dev/null +++ b/docs/_sentryext @@ -0,0 +1 @@ +Subproject commit e9b477ffbbb5b50c2a1ccdf4ff845ac1ffbce96b diff --git a/docs/conf.py b/docs/conf.py index 2a4bc6c9..f5e2d2ef 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,6 +11,8 @@ # All configuration values have a default; values that are commented out # serve to show the default. +import os +import sys import datetime # If extensions (or modules to document with autodoc) are in another directory, @@ -222,3 +224,8 @@ man_pages = [ ('index', 'raven', u'Raven Documentation', [u'David Cramer'], 1) ] + +if os.environ.get('SENTRY_FEDERATED_DOCS') != '1': + sys.path.insert(0, os.path.abspath('_sentryext')) + import sentryext + sentryext.activate()