Verified Commit 7fe09fa9 authored by Max Rees's avatar Max Rees

Move style.css into its own /static/ path

Makes it easier to add more static files in the future
parent 748534c9
......@@ -34,26 +34,28 @@ for traditional CGI usage under the URL ``/pkg``::
$HTTP["url"] =~ "^/pkg(/|$)" {
alias.url += (
"/pkg/style.css" => "/path/to/apkvitrine/style.css",
"/pkg" => "/path/to/apkvitrine/cgi.py",
"/pkg/static" => "/usr/share/webapps/apkvitrine/static",
"/pkg" => "/usr/share/webapps/apkvitrine/apkvitrine.cgi",
)
cgi.assign = (".py" => "/path/to/apkvitrine/cgi.py")
cgi.assign = ("apkvitrine.cgi" => "")
}
Here's FastCGI::
var.apkvitrine_dir = "/usr/share/webapps/apkvitrine/"
$HTTP["url"] =~ "^/pkg(/|$)" {
alias.url += (
"/pkg/style.css" => "/path/to/apkvitrine/style.css",
"/pkg" => "/path/to/apkvitrine/cgi.py",
"/pkg/static" => var.apkvitrine_dir + "static",
"/pkg" => var.apkvitrine_dir + "apkvitrine.cgi",
)
fastcgi.server += ( ".py" => ( "apkvitrine" => (
fastcgi.server += ( "apkvitrine.cgi" => ( "apkvitrine" => (
"docroot" => var.apkvitrine_dir,
# Replace var.run_dir with wherever lighttpd can make a
# socket.
"socket" => var.run_dir + "apkvitrine.sock",
"bin-path" => "/path/to/apkvitrine/cgi.py",
"bin-path" => var.apkvitrine_dir + "apkvitrine.cgi",
# Tune to your requirements.
"max-procs" => 5,
) ) )
......
......@@ -87,7 +87,7 @@
<link rel="stylesheet" href="//static.adelielinux.org/css/bulma.min.css" type="text/css"/>
<link rel="stylesheet" href="//static.adelielinux.org/css/adelie-nouveau.css" type="text/css"/>
<link rel="stylesheet" href="//static.adelielinux.org/font/font-amal.css" type="text/css"/>
<link rel="stylesheet" href="{{ base }}/style.css" type="text/css">
<link rel="stylesheet" href="{{ base }}/static/style.css" type="text/css">
</head>
<body>
<nav class="navbar is-dark" aria-label="Main menu">
......
......@@ -52,8 +52,8 @@ distutils.core.setup(
["config.ini.in"],
),
(
str(webdir),
glob.glob("webapp/style.css"),
str(webdir / "static"),
glob.glob("webapp/static/*"),
),
],
)
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