[gegl] docs: update gegl.css handling - gegl.css is included in asciidoc generated files and does not need



commit d6446bbbbfe7dac5bcabc85600b980b9f28e444e
Author: John <jtm home gmail com>
Date:   Thu Feb 18 17:04:45 2021 +0000

    docs: update gegl.css handling
     - gegl.css is included in asciidoc generated files and does not need to
       need to be copied with htmlfiles.
     - add formatting elements for literalblock and listingblock classes.

 docs/gegl.css            | 17 ++++++++++++-----
 docs/meson.build         |  8 +-------
 docs/website/meson.build |  8 +++-----
 3 files changed, 16 insertions(+), 17 deletions(-)
---
diff --git a/docs/gegl.css b/docs/gegl.css
index 0dd29b610..82dffd59d 100644
--- a/docs/gegl.css
+++ b/docs/gegl.css
@@ -56,7 +56,7 @@
       /*
       div.expander_title {
         border-bottom: 0px solid #aaa;
-      } 
+      }
       */
       div.expander_content {
         margin-left: 2em;
@@ -276,7 +276,7 @@
            * this issue is fixed in the latest gecko
            */
           padding-right: 3em;
-          padding-left: 1em;  
+          padding-left: 1em;
         }
         a {
           text-decoration: none;
@@ -371,8 +371,15 @@
         }
       }
 
-      a{color:#44f;}
-      a:visited{color:#44f;}
-
+      .literalblock {
+        padding: 0em;
+        font-size: 90%;
+        width: 50em;
+      }
 
+      .listingblock {
+        padding: 0em;
+      }
 
+      a{color:#44f;}
+      a:visited{color:#44f;}
diff --git a/docs/meson.build b/docs/meson.build
index 410e95df0..685c6d27f 100644
--- a/docs/meson.build
+++ b/docs/meson.build
@@ -25,14 +25,8 @@ images = files(
 
 # stylesheets
 stylesheets = files(
-  'gegl.css',
   'devhelp.css'
 )
-configure_file(
-  input : files('gegl.css'),
-  output : '@PLAINNAME@',
-  copy: true,
-)
 
 # stand-alone asciidoc files - not part of website
 asciidoc_files = files(
@@ -61,7 +55,7 @@ foreach _file: asciidoc_files
       '--unsafe',
       '-o', '@OUTPUT@',
       '-a', 'stylesheet=@0@'.format(
-        meson.current_build_dir() / 'gegl.css'
+        project_source_root / 'docs' / 'gegl.css'
       ),
       '-a', 'quirks!',
       '@INPUT@',
diff --git a/docs/website/meson.build b/docs/website/meson.build
index 77dc3ae23..69aca5382 100644
--- a/docs/website/meson.build
+++ b/docs/website/meson.build
@@ -39,7 +39,7 @@ foreach _file: website_asciidoc_files
       '-o', '@OUTPUT@',
       '-a', 'gegl_usage=@0@'.format(gegl_usage.full_path()),
       '-a', 'stylesheet=@0@'.format(
-        meson.current_build_dir() / 'gegl.css'
+        project_source_root / 'docs' / 'gegl.css'
       ),
       '-a', 'highlight=@0@'.format(source_highlight.found()),
       '-a', 'quirks!',
@@ -55,8 +55,6 @@ index_html = _tgt[0]
 src_gegl = project_source_root / 'gegl'
 src_gegl_operation =  src_gegl / 'operation'
 source_files = {
-  'gegl.h' : src_gegl,
-  'gegl-plugin.h' : src_gegl,
   'gegl-operation.h' : src_gegl_operation,
   'gegl-operation-composer.h' : src_gegl_operation,
   'gegl-operation-area-filter.h' : src_gegl_operation,
@@ -83,11 +81,11 @@ foreach _file, _path : source_files
       '--unsafe',
       '-o', '@OUTPUT@',
       '-a', 'stylesheet=@0@'.format(
-        meson.current_build_dir() / 'gegl.css'
+        project_source_root / 'docs' / 'gegl.css'
       ),
+      '-a', 'highlight=@0@'.format(source_highlight.found()),
       '-a', 'name=@0@'.format(_file),
       '-a', 'full_path=@0@'.format(_path / _file),
-      '-a', 'highlight=@0@'.format(source_highlight.found()),
       '-a', 'quirks!',
       '@INPUT@',
     ],


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]