Skip to content

Commit

Permalink
All static media is run through "collectstatic"
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer committed Aug 7, 2018
1 parent ae9a6d3 commit 17bcb7f
Show file tree
Hide file tree
Showing 15 changed files with 19 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ media/json
media/man
media/pdf
media/static
/static
node_modules
package-lock.json
readthedocs/rtd_tests/builds
Expand Down
2 changes: 1 addition & 1 deletion media/css/badge_only.css
2 changes: 1 addition & 1 deletion media/css/sphinx_rtd_theme.css
2 changes: 1 addition & 1 deletion media/font/fontawesome_webfont.eot
2 changes: 1 addition & 1 deletion media/font/fontawesome_webfont.svg
2 changes: 1 addition & 1 deletion media/font/fontawesome_webfont.ttf
2 changes: 1 addition & 1 deletion media/font/fontawesome_webfont.woff
1 change: 1 addition & 0 deletions media/font/fontawesome_webfont.woff2
2 changes: 1 addition & 1 deletion media/fonts
2 changes: 1 addition & 1 deletion media/javascript/jquery/jquery-2.0.3.min.js
2 changes: 1 addition & 1 deletion media/javascript/jquery/jquery-migrate-1.2.1.min.js
2 changes: 1 addition & 1 deletion media/javascript/jquery/jquery-ui-1.8.24.custom.min.js
2 changes: 1 addition & 1 deletion media/javascript/readthedocs-doc-embed.js
2 changes: 1 addition & 1 deletion media/javascript/underscore.js
7 changes: 5 additions & 2 deletions readthedocs/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,15 @@ def USE_PROMOS(self): # noqa
PRODUCTION_MEDIA_ARTIFACTS = os.path.join(PRODUCTION_ROOT, 'media')

# Assets and media
STATIC_ROOT = os.path.join(SITE_ROOT, 'media/static/')
STATIC_ROOT = os.path.join(SITE_ROOT, 'static')
STATIC_URL = '/static/'
MEDIA_ROOT = os.path.join(SITE_ROOT, 'media/')
MEDIA_URL = '/media/'
ADMIN_MEDIA_PREFIX = '/media/admin/'
STATICFILES_DIRS = [os.path.join(SITE_ROOT, 'readthedocs', 'static')]
STATICFILES_DIRS = [
os.path.join(SITE_ROOT, 'media'),
os.path.join(SITE_ROOT, 'readthedocs', 'static'),
]

TEMPLATES = [
{
Expand Down

0 comments on commit 17bcb7f

Please sign in to comment.