Remove dynamic "docs" stylesheet

This was never used. And it was probably good that it wasn't, because if
it had it would've included both two copies of bootstrap in the page,
and also the bootstrap css map (as part of the css, and not as the map).

The docs pages these days use the same base stylesheet as the rest of
the site.
This commit is contained in:
Magnus Hagander
2020-09-12 12:31:18 +02:00
parent 4d00e96399
commit 7aafd6131f
2 changed files with 1 additions and 6 deletions

View File

@ -192,11 +192,6 @@ def sitemap_internal(request):
_dynamic_cssmap = {
'base': ['media/css/main.css',
'media/css/normalize.css', ],
'docs': ['media/css/fontawesome.css',
'media/css/bootstrap.min.css',
'media/css/bootstrap.min.css.map',
'media/css/main.css',
'media/css/normalize.css', ],
}

View File

@ -30,7 +30,7 @@ admin.autodiscover()
urlpatterns = [
url(r'^$', pgweb.core.views.home),
url(r'^dyncss/(?P<css>base|docs).css$', pgweb.core.views.dynamic_css),
url(r'^dyncss/(?P<css>base).css$', pgweb.core.views.dynamic_css),
url(r'^about/$', pgweb.core.views.about),
url(r'^about/newsarchive/([^/]+/)?$', pgweb.news.views.archive),