File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ class CommunityBaseSettings(Settings):
59
59
CSRF_COOKIE_HTTPONLY = True
60
60
CSRF_COOKIE_AGE = 30 * 24 * 60 * 60
61
61
62
+ # Read the Docs
63
+ READ_THE_DOCS_EXTENSIONS = ext
64
+
62
65
# Application classes
63
66
@property
64
67
def INSTALLED_APPS (self ): # noqa
Original file line number Diff line number Diff line change 136
136
# Include Do Not Track URLs if DNT is supported
137
137
groups .append (dnt_urls )
138
138
139
- if settings . USE_PROMOS :
140
- # Include donation URL's
139
+
140
+ if settings . READ_THE_DOCS_EXTENSIONS :
141
141
groups .append ([
142
- url (r'^sustainability/ ' , include ('readthedocsext.donate. urls' )),
142
+ url (r'^' , include ('readthedocsext.urls' ))
143
143
])
144
144
145
- if 'readthedocsext.embed' in settings .INSTALLED_APPS :
146
- api_urls .insert (
147
- 0 ,
148
- url (r'^api/v1/embed/' , include ('readthedocsext.embed.urls' )),
149
- )
150
-
151
145
if not getattr (settings , 'USE_SUBDOMAIN' , False ) or settings .DEBUG :
152
146
groups .insert (0 , docs_urls )
153
147
if getattr (settings , 'ALLOW_ADMIN' , True ):
You can’t perform that action at this time.
0 commit comments