[gtk-doc] db2html: more planning for the refentry title



commit bc78a2854bf0d7850d60e37f7dc9b0e49978e620
Author: Stefan Sauer <ensonic users sf net>
Date:   Sun Dec 17 15:58:17 2017 +0100

    db2html: more planning for the refentry title
    
    Add the refentry title to the template and some todos to the code.

 tools/db2html.py              |    1 +
 tools/templates/refentry.html |    9 +++++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/tools/db2html.py b/tools/db2html.py
index 1e817ad..f60e3ab 100644
--- a/tools/db2html.py
+++ b/tools/db2html.py
@@ -27,6 +27,7 @@ like the xsl-stylesheets would do. For that it resolves all the xml-includes.
 TODO: convert the docbook-xml to html
 - more templates
 - refentry/index nav headers
+- for refsec, we need a 'long-title' that also contains refpurpose
 
 Requirements:
 sudo pip3 install anytree jinja2 lxml
diff --git a/tools/templates/refentry.html b/tools/templates/refentry.html
index 77fd6c2..ca0609b 100644
--- a/tools/templates/refentry.html
+++ b/tools/templates/refentry.html
@@ -10,6 +10,15 @@
 <body>
 {{ navigation_ref(nav_home, nav_up, nav_prev, nav_next) }}
 <div class="refentry">
+<div class="refnamediv">
+  <table width="100%"><tr>
+    <td valign="top">
+      <h2><span class="refentrytitle"><a name="tester-GtkdocTester.top_of_page"></a>{{ title }}</span></h2>
+      <p>{{ title }} — module for gtk-doc unit test</p>
+    </td>
+    <td class="gallery_image" valign="top" align="right"></td>
+  </tr></table>
+</div>
 </div>
 </body>
 </html>
\ No newline at end of file


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