Started using the sentry doc ext

This commit is contained in:
Armin Ronacher 2015-07-12 10:45:49 +02:00
parent 6a7b821a5d
commit d13b3cf78c
3 changed files with 11 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "docs/_sentryext"]
path = docs/_sentryext
url = https://github.com/getsentry/sentry-doc-support.git

1
docs/_sentryext Submodule

@ -0,0 +1 @@
Subproject commit e9b477ffbbb5b50c2a1ccdf4ff845ac1ffbce96b

View File

@ -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()