]> jfr.im git - irc/quakenet/qwebirc.git/blobdiff - bin/pagegen.py
tidy up autobahn support -- now requires 0.17.2
[irc/quakenet/qwebirc.git] / bin / pagegen.py
index 7509d2565dfcc43491ff752708e0cb14bb763dcc..b05cd6ec52218f61f1d32a98bfb9a7fa04e490e7 100755 (executable)
@@ -20,10 +20,13 @@ def csslist(name, debug, gen=False):
   nocss = ui.get("nocss")
   if not debug:
     return ["css/%s-%s.css" % (name, getgitid())]
-  css = pages.flatten([ui.get("extracss", []), "colours", "dialogs"])
+  css = list(pages.flatten([ui.get("extracss", []), "colours", "dialogs"]))
   if not nocss:
-    css = list(css) + [name]
-  return list("css/%s%s.css" % ("debug/" if gen else "", x) for x in css)
+    css+=[name]
+  css = ["%s.css" % x for x in css]
+  if hasattr(config, "CUSTOM_CSS"):
+    css+=[config.CUSTOM_CSS]
+  return list("css/%s%s" % ("debug/" if gen else "", x) for x in css)
 
 def _getgitid():
   try: