Skip to content

Commit f4e7598

Browse files
committed
Update dynamic CSS generation for "docs.css"
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.
1 parent 212d3e9 commit f4e7598

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pgweb/core/views.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,11 @@ def sitemap_internal(request):
201201
_dynamic_cssmap = {
202202
'base': ['media/css/main.css',
203203
'media/css/normalize.css', ],
204-
'docs': ['media/css/global.css',
205-
'media/css/table.css',
206-
'media/css/text.css',
207-
'media/css/docs.css'],
204+
'docs': ['media/css/fontawesome.css',
205+
'media/css/bootstrap.min.css',
206+
'media/css/bootstrap.min.css.map',
207+
'media/css/main.css',
208+
'media/css/normalize.css',],
208209
}
209210

210211

0 commit comments

Comments
 (0)