Commit 26730cb7 authored by Hans-Peter Deifel's avatar Hans-Peter Deifel

Make theme selection site local

- Remove the very host specific configuration from config/__init__.py
  and replace it by generic default values (no URL specific themes;
  'fsi_inf' as default theme)

- Add documentation for the two variables 'default_theme' and
  'themes_by_url' so that site admins can overwrite them in their local
  config.
parent 9922ce0b
......@@ -26,27 +26,9 @@ sendmails = True
pdf2txt = "pdf2txt"
## config for by-url theme-selection
themes_by_url = [ ("eva.fsi.informatik.uni-erlangen.de", "fsi_inf")
, ("www.eva.fsi.informatik.uni-erlangen.de", "fsi_inf")
, ("eva.fsi.cs.fau.de", "fsi_inf")
, ("www.eva.fsi.cs.fau.de", "fsi_inf")
, ("eva.fsi.mb.fau.de", "fsi_mb")
, ("www.eva.fsi.mb.fau.de", "fsi_mb")
, ("eva.fsi.mb.uni-erlangen.de", "fsi_mb")
, ("www.eva.fsi.mb.uni-erlangen.de", "fsi_mb")
, ("eva.mb.fsi.fau.de", "fsi_mb")
, ("www.eva.mb.fsi.fau.de", "fsi_mb")
, ("eva.mb.fsi.uni-erlangen.de", "fsi_mb")
, ("www.eva.mb.fsi.uni-erlangen.de", "fsi_mb")
, ("eva.fachschaft.techfak.fau.de", "fsv_tech")
, ("www.eva.fachschaft.techfak.fau.de", "fsv_tech")
, ("eva.fachschaft.techfak.uni-erlangen.de", "fsv_tech")
, ("www.eva.fachschaft.techfak.uni-erlangen.de", "fsv_tech")
]
# default configuration for themes
themes_by_url = []
default_theme = "fsi_inf"
from config.local import *
......@@ -41,6 +41,12 @@
the config.
- delurl :: Base URL of the trashbin
- pdf2txt :: Path to pdf2txt executable (default: "pdf2txt")
- default_theme :: The name of the theme to use if the hostname of a request
is not matched by ~themes_by_url~. (type: String)
- themes_by_url :: A list of tuples (hostname, theme) that specifies which
theme to use for request to a given hostname. This
overwrites ~default_theme~. See also [[file:themes.txt]].
(type: [(String, String)])
Note, that the various *url config options are acutal URLs, while the *dir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment