[gtk-doc] mkhtml2: add chunk converter for sect1
- From: Stefan Sauer <stefkost src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-doc] mkhtml2: add chunk converter for sect1
- Date: Fri, 30 Mar 2018 21:32:03 +0000 (UTC)
commit 4ddc6a1291567a862f9a29a935f580ae71c5bb94
Author: Stefan Sauer <ensonic users sf net>
Date: Fri Mar 30 23:31:14 2018 +0200
mkhtml2: add chunk converter for sect1
gtkdoc/mkhtml2.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gtkdoc/mkhtml2.py b/gtkdoc/mkhtml2.py
index 19ef8b0..56c7c8c 100644
--- a/gtkdoc/mkhtml2.py
+++ b/gtkdoc/mkhtml2.py
@@ -1168,6 +1168,10 @@ def convert_refentry(ctx):
return result
+def convert_sect1(ctx):
+ return convert_chunk_with_toc(ctx, 'sect1', 'h2')
+
+
# TODO(ensonic): turn into class with converters as functions and ctx as self
convert_chunks = {
'book': convert_book,
@@ -1178,6 +1182,7 @@ convert_chunks = {
'preface': convert_preface,
'reference': convert_reference,
'refentry': convert_refentry,
+ 'sect1': convert_sect1,
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]