[pango/gi-docs: 26/50] Add metadata to markdown files




commit 93d2ba1fa41c5cdb5ccdb8cdd0af3608e4355473
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Feb 8 12:44:29 2021 -0500

    Add metadata to markdown files
    
    Add titles in metadata at the top of .md files,
    and remove the titles from the content_files list
    in the config files.

 docs/pango.toml         | 18 +++++++++---------
 docs/pango_bidi.md      |  4 ++++
 docs/pango_cairo.md     |  5 ++++-
 docs/pango_fonts.md     |  6 ++++++
 docs/pango_markup.md    |  4 ++++
 docs/pango_rendering.md |  6 ++++++
 docs/pangocairo.toml    |  4 ++--
 7 files changed, 35 insertions(+), 12 deletions(-)
---
diff --git a/docs/pango.toml b/docs/pango.toml
index bb916203..d972381b 100644
--- a/docs/pango.toml
+++ b/docs/pango.toml
@@ -55,15 +55,15 @@ base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/";
 
 [extra]
 content_files = [
-  [ "pango_rendering.md", "The Rendering Pipeline" ],
-  [ "pango_fonts.md", "Fonts and Glyphs" ],
-  [ "pango_markup.md", "Text Attributes and Markup" ],
-  [ "pango_bidi.md", "Bidirectional and Vertical Text" ],
+  "pango_rendering.md",
+  "pango_fonts.md",
+  "pango_markup.md",
+  "pango_bidi.md",
 ]
 content_images = [
-  'layout.png',
-  'pipeline.png',
-  'rects1.png',
-  'rects2.png',
-  'rects3.png'
+  "layout.png",
+  "pipeline.png",
+  "rects1.png",
+  "rects2.png",
+  "rects3.png",
 ]
diff --git a/docs/pango_bidi.md b/docs/pango_bidi.md
index cc97f350..bb330d12 100644
--- a/docs/pango_bidi.md
+++ b/docs/pango_bidi.md
@@ -1,3 +1,7 @@
+---
+Title: Bidirectional and Vertical Text
+---
+
 # Bidirectional Text
 
 Pango supports bidirectional text (like Arabic and Hebrew) automatically.
diff --git a/docs/pango_cairo.md b/docs/pango_cairo.md
index 895c85a0..42e93b94 100644
--- a/docs/pango_cairo.md
+++ b/docs/pango_cairo.md
@@ -1,5 +1,8 @@
+---
+Title: Rendering with Cairo
+---
 
-# Font handling and rendering with Cairo
+# Rendering with Cairo
 
 The Cairo library is a vector graphics library with a powerful rendering
 model. It has such features as anti-aliased primitives, alpha-compositing,
diff --git a/docs/pango_fonts.md b/docs/pango_fonts.md
index 023be36b..72651fdf 100644
--- a/docs/pango_fonts.md
+++ b/docs/pango_fonts.md
@@ -1,3 +1,9 @@
+---
+Title: Fonts and Glyphs
+---
+
+# Fonts
+
 Pango supports a flexible architecture where a particular rendering architecture
 can supply an implementation of fonts. The PangoFont structure represents an
 abstract rendering-system-independent font. Pango provides routines to list
diff --git a/docs/pango_markup.md b/docs/pango_markup.md
index 5b330f37..d009673a 100644
--- a/docs/pango_markup.md
+++ b/docs/pango_markup.md
@@ -1,3 +1,7 @@
+---
+Title: Text Attributes and Markup
+---
+
 # Text Attributes
 
 Attributed text is used in a number of places in Pango. It is used as
diff --git a/docs/pango_rendering.md b/docs/pango_rendering.md
index f609f061..6be4e8ad 100644
--- a/docs/pango_rendering.md
+++ b/docs/pango_rendering.md
@@ -1,3 +1,9 @@
+---
+Title: The Rendering Pipeline
+---
+
+# The Rendering Pipeline
+
 The Pango rendering pipeline takes a string of Unicode characters, converts them
 it into glyphs, and renders them on some output medium. This section describes the
 various stages of this pipeline and the APIs that implement them.
diff --git a/docs/pangocairo.toml b/docs/pangocairo.toml
index 31cf9eba..5b8b311a 100644
--- a/docs/pangocairo.toml
+++ b/docs/pangocairo.toml
@@ -28,8 +28,8 @@ base_url = "https://gitlab.gnome.org/GNOME/pango/-/blob/master/";
 
 [extra]
 content_files = [
-  [ "pango_cairo.md", "Rendering with Cairo" ]
+  "pango_cairo.md",
 ]
 content_images = [
-  'rotated-text.png'
+  "rotated-text.png"
 ]


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