]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
docs: Move all CSS files to a subdirectory
authorAndrea Bolognani <abologna@redhat.com>
Tue, 21 Dec 2021 15:10:13 +0000 (16:10 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 4 Jan 2022 14:47:27 +0000 (15:47 +0100)
This unclutters the top-level docs directory.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
docs/css/generic.css [moved from docs/generic.css with 100% similarity]
docs/css/libvirt.css [moved from docs/libvirt.css with 98% similarity]
docs/css/main.css [moved from docs/main.css with 66% similarity]
docs/css/meson.build [new file with mode: 0644]
docs/css/mobile.css [moved from docs/mobile.css with 95% similarity]
docs/meson.build
docs/page.xsl

similarity index 100%
rename from docs/generic.css
rename to docs/css/generic.css
similarity index 98%
rename from docs/libvirt.css
rename to docs/css/libvirt.css
index 5195588a8f840eae984fa42df25af081caee9a70..b08271ea4dd9f02dfed816a7c07aa431ea01c2e1 100644 (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;
 }
 
similarity index 66%
rename from docs/main.css
rename to docs/css/main.css
index 71f7b7a6a0d3728bde3dfa365994caa59fb0cd08..8961f1a4b4ec31e976f5790156dbc58847faba8a 100644 (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);
diff --git a/docs/css/meson.build b/docs/css/meson.build
new file mode 100644 (file)
index 0000000..35e5634
--- /dev/null
@@ -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
similarity index 95%
rename from docs/mobile.css
rename to docs/css/mobile.css
index 366d0f1a5d36175ea2a6a431d6d3a219dbf3e1d1..ae833b6eea46b75c5e2fec7438e989be45631d4a 100644 (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 {
index 6f1ca5c6ff6e12c742f48d79080e64550e51d957..3e912f21ad521d66d8248a0a881b351d36ff8c2a 100644 (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')
index 580387ac594f49f13baadbb8833ee365d32a89a3..fd67918d3b08f7cb227098f76ee9b17fa61e3c54 100644 (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"/>