Update dynamic CSS generation for "docs.css"
authorJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 12 Feb 2020 13:02:59 +0000 (08:02 -0500)
committerJonathan S. Katz <jonathan.katz@excoventures.com>
Wed, 12 Feb 2020 13:10:49 +0000 (08:10 -0500)
This is primarily to enable the "make STYLE=website html" build
option of the PostgreSQL docs, as the pgweb docs page uses
the "base.css" file to render the documentation. By updating the
dynamic doc.css generation file, we can allow the builders of the
documentation to better preview what their documentation will look
like when it is loaded onto the website.

Presently, the dynamic "docs.css" is unused in pgweb or the core
project, and as those are the two biggest consumers of the
documentation styles, this is an apparent safe vector to make this
change.

pgweb/core/views.py

index 4e9499fa2e4c3a6e9951330e20c76dff6d97d069..39253c9557f7ac5650e542598211712faa9af5d5 100644 (file)
@@ -201,10 +201,11 @@ def sitemap_internal(request):
 _dynamic_cssmap = {
     'base': ['media/css/main.css',
              'media/css/normalize.css', ],
-    'docs': ['media/css/global.css',
-             'media/css/table.css',
-             'media/css/text.css',
-             'media/css/docs.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',],
 }