From 89057599f4791f03c1ee5de836fbe2b5ea434aa9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 11:35:12 +0200 Subject: Adding debian version 2.6.12-1+deb12u1. Signed-off-by: Daniel Baumann --- debian/dconv/templates/parser/arguments.tpl | 9 + debian/dconv/templates/parser/example.tpl | 12 ++ debian/dconv/templates/parser/example/comment.tpl | 1 + debian/dconv/templates/parser/seealso.tpl | 1 + debian/dconv/templates/parser/table.tpl | 11 + debian/dconv/templates/parser/table/header.tpl | 6 + debian/dconv/templates/parser/table/row.tpl | 36 ++++ debian/dconv/templates/parser/underline.tpl | 1 + debian/dconv/templates/summary.html | 43 ++++ debian/dconv/templates/template.html | 238 ++++++++++++++++++++++ 10 files changed, 358 insertions(+) create mode 100644 debian/dconv/templates/parser/arguments.tpl create mode 100644 debian/dconv/templates/parser/example.tpl create mode 100644 debian/dconv/templates/parser/example/comment.tpl create mode 100644 debian/dconv/templates/parser/seealso.tpl create mode 100644 debian/dconv/templates/parser/table.tpl create mode 100644 debian/dconv/templates/parser/table/header.tpl create mode 100644 debian/dconv/templates/parser/table/row.tpl create mode 100644 debian/dconv/templates/parser/underline.tpl create mode 100644 debian/dconv/templates/summary.html create mode 100644 debian/dconv/templates/template.html (limited to 'debian/dconv/templates') diff --git a/debian/dconv/templates/parser/arguments.tpl b/debian/dconv/templates/parser/arguments.tpl new file mode 100644 index 0000000..b5f91e9 --- /dev/null +++ b/debian/dconv/templates/parser/arguments.tpl @@ -0,0 +1,9 @@ +
+${label}\ +% if desc: + ${desc} +% endif +% if content: +
${"\n".join(content)}
+% endif +
diff --git a/debian/dconv/templates/parser/example.tpl b/debian/dconv/templates/parser/example.tpl new file mode 100644 index 0000000..184b6dd --- /dev/null +++ b/debian/dconv/templates/parser/example.tpl @@ -0,0 +1,12 @@ +
+${label} +
+% if desc:
+
${desc}
\ +% endif +\ +% for line in content: +${line} +% endfor +
+
\ No newline at end of file diff --git a/debian/dconv/templates/parser/example/comment.tpl b/debian/dconv/templates/parser/example/comment.tpl new file mode 100644 index 0000000..b51ec2d --- /dev/null +++ b/debian/dconv/templates/parser/example/comment.tpl @@ -0,0 +1 @@ +\1 \ No newline at end of file diff --git a/debian/dconv/templates/parser/seealso.tpl b/debian/dconv/templates/parser/seealso.tpl new file mode 100644 index 0000000..72cf5f9 --- /dev/null +++ b/debian/dconv/templates/parser/seealso.tpl @@ -0,0 +1 @@ + diff --git a/debian/dconv/templates/parser/table.tpl b/debian/dconv/templates/parser/table.tpl new file mode 100644 index 0000000..0119176 --- /dev/null +++ b/debian/dconv/templates/parser/table.tpl @@ -0,0 +1,11 @@ +% if title: +

${title} :

\ +% endif + +% for row in rows: +${row} +% endfor +
\ +% if title: +
+% endif \ No newline at end of file diff --git a/debian/dconv/templates/parser/table/header.tpl b/debian/dconv/templates/parser/table/header.tpl new file mode 100644 index 0000000..e84b47f --- /dev/null +++ b/debian/dconv/templates/parser/table/header.tpl @@ -0,0 +1,6 @@ +\ +% for col in columns: +<% data = col['data'] %>\ +${data}\ +% endfor + diff --git a/debian/dconv/templates/parser/table/row.tpl b/debian/dconv/templates/parser/table/row.tpl new file mode 100644 index 0000000..e4f2bef --- /dev/null +++ b/debian/dconv/templates/parser/table/row.tpl @@ -0,0 +1,36 @@ +<% from urllib.parse import quote %> +<% base = pctxt.context['base'] %> +\ +% for col in columns: +<% data = col['data'] %>\ +<% + if data in ['yes']: + style = "class=\"alert-success pagination-centered\"" + data = 'yes
yes' % base + elif data in ['no']: + style = "class=\"alert-error pagination-centered\"" + data = 'no
no' % base + elif data in ['X']: + style = "class=\"pagination-centered\"" + data = 'X' % base + elif data in ['-']: + style = "class=\"pagination-centered\"" + data = ' ' + elif data in ['*']: + style = "class=\"pagination-centered\"" + else: + style = None +%>\ +\ +% if "keyword" in col: +\ +% for extra in col['extra']: +${extra}\ +% endfor +${data}\ +% else: +${data}\ +% endif +\ +% endfor + diff --git a/debian/dconv/templates/parser/underline.tpl b/debian/dconv/templates/parser/underline.tpl new file mode 100644 index 0000000..4f35f7e --- /dev/null +++ b/debian/dconv/templates/parser/underline.tpl @@ -0,0 +1 @@ +
${data}
diff --git a/debian/dconv/templates/summary.html b/debian/dconv/templates/summary.html new file mode 100644 index 0000000..87c6414 --- /dev/null +++ b/debian/dconv/templates/summary.html @@ -0,0 +1,43 @@ + + +
+
+ <% previousLevel = None %> + % for k in chapterIndexes: + <% chapter = chapters[k] %> + % if chapter['title']: + <% + if chapter['level'] == 1: + otag = "" + etag = "" + else: + otag = etag = "" + %> + % if chapter['chapter'] == '7': + ## Quick and dirty hack to split the summary in 2 columns + ## TODO : implement a generic way split the summary +
+ <% previousLevel = None %> + % endif + % if otag and previousLevel: +
+ % endif +
+
${otag}${chapter['chapter']}.${etag}
+
+ % for tab in range(1, chapter['level']): +
+ % endfor + ${otag}${chapter['title']}${etag} + % for tab in range(1, chapter['level']): +
+ % endfor +
+
+ <% previousLevel = chapter['level'] %> + % endif + % endfor +
+
diff --git a/debian/dconv/templates/template.html b/debian/dconv/templates/template.html new file mode 100644 index 0000000..c72b355 --- /dev/null +++ b/debian/dconv/templates/template.html @@ -0,0 +1,238 @@ + + + + + ${headers['title']} ${headers['version']} - ${headers['subtitle']} + + + + + + + +
+ + + + +
+
+
+
+

${headers['title']}

+

${headers['subtitle']}

+

${headers['version']}

+

+
+ ${headers['author']}
+ ${headers['date']} +

+
+ + ${document} +
+
+
+ ${headers['title']} ${headers['version'].replace("version ", "")} – ${headers['subtitle']}
+ ${headers['date']}, ${headers['author']} +
+
+ +
+ +
+
    + + +
+
+
+ + +
+ + + + + + + ${footer} + + + -- cgit v1.2.3