1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

docs: Move all CSS files to a subdirectory

This unclutters the top-level docs directory.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
Andrea Bolognani 2021-12-21 16:10:13 +01:00
parent 630f376bc0
commit 7163515aa9
7 changed files with 22 additions and 9 deletions

View File

@ -10,7 +10,7 @@
}
#home {
background-image: url(logos/logo-banner-light-256.png);
background-image: url(../logos/logo-banner-light-256.png);
background-repeat: no-repeat;
background-position: left center;
height: 100px;
@ -419,7 +419,7 @@ div.panel h2,
#index.document h1 {
border: 0px;
text-indent: 100%; white-space: nowrap; overflow: hidden;
background: url(logos/logo-banner-dark-800.png) no-repeat center center;
background: url(../logos/logo-banner-dark-800.png) no-repeat center center;
height: 300px;
}

View File

@ -1,4 +1,4 @@
@import url(fonts/stylesheet.css);
@import url(../fonts/stylesheet.css);
@import url(generic.css);
@import url(libvirt.css);
@import url(mobile.css);

16
docs/css/meson.build Normal file
View File

@ -0,0 +1,16 @@
docs_css_files = [
'generic.css',
'libvirt.css',
'main.css',
'mobile.css',
]
install_data(docs_css_files, install_dir: docs_html_dir / 'css')
foreach file : docs_css_files
# This hack enables us to view the web pages
# from within the uninstalled build tree
configure_file(input: file, output: file, copy: true)
install_web_files += '@0@:@1@'.format(meson.current_source_dir() / file, docs_html_dir / 'css')
endforeach

View File

@ -3,7 +3,7 @@
width: 100%;
display: block;
margin: 0px;
background: white url(logos/logo-banner-dark-256.png) no-repeat center center;
background: white url(../logos/logo-banner-dark-256.png) no-repeat center center;
height: 94px;
}
#home a {

View File

@ -13,11 +13,7 @@ docs_assets = [
'favicon.ico',
'favicon-16x16.png',
'favicon-32x32.png',
'generic.css',
'libvirt.css',
'main.css',
'manifest.json',
'mobile.css',
'mstile-150x150.png',
]
@ -288,6 +284,7 @@ html_xslt_gen = []
# --- end of XSLT processing ---
subdir('css')
subdir('fonts')
subdir('go')
subdir('html')

View File

@ -91,7 +91,7 @@
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="{$href_base}main.css"/>
<link rel="stylesheet" type="text/css" href="{$href_base}css/main.css"/>
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png"/>
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"/>
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"/>