Remove dynamic "docs" stylesheet
authorMagnus Hagander <magnus@hagander.net>
Sat, 12 Sep 2020 10:31:18 +0000 (12:31 +0200)
committerMagnus Hagander <magnus@hagander.net>
Sat, 12 Sep 2020 10:48:58 +0000 (12:48 +0200)
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.

pgweb/core/views.py
pgweb/urls.py

index 1ddc0a4158f64a91303c02b2261efeb31ab99b5b..c52825ad782fb2cdd8f1292f6594ab67cb9d7520 100644 (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', ],
 }
 
 
index 1f119a62a6c7ab42a2851ebf4bc052b1e72d2167..b5a5755d5b3de1852960a92acdf1c54719a43a77 100644 (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),