aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/minimal.html.tmpl41
-rw-r--r--templates/minimal.rst.tmpl23
2 files changed, 64 insertions, 0 deletions
diff --git a/templates/minimal.html.tmpl b/templates/minimal.html.tmpl
new file mode 100644
index 0000000..98042ee
--- /dev/null
+++ b/templates/minimal.html.tmpl
@@ -0,0 +1,41 @@
+<html>
+<head><title>{{ name }} Memory Map Documentation</title>
+<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
+<style type="text/css">
+.error {padding: 15px; background-color: yellow; border: 4px solid orange; color:red;}
+table {border: 1px solid black; border-collapse: collapse; border-spacing:2px;}
+th, td {border-width: 1px; border-style: inset; border-color: gray; padding: 2px;}
+dt {font-weight: bold;}
+.code {color: white; background-color: black; border: 3px gray solid;
+ width: 640px; padding: 3px; margin-left: 10px;}
+</style>
+</head>
+<body style="margin: 25px; font-family: helvetica;">
+<a name="top"><h1 style="border-bottom: 2px solid; margin-bottom: 2px;">
+{{ name }} Memory Map Documentation</h1></a>
+<i style="font-size:smaller;">
+{% for section in sections.keys() %}
+<a href="#{{section}}">{{section}}</a> -
+{% endfor %}
+Last updated [{{ now }}] by {{ whoami }}
+</i><br>
+<p>
+
+{% for sec_name, sec_values in sections.iteritems() %}
+<a name="{{sec_name}}"><h2>{{ sec_name }}</h2></a>
+<table>
+ <tr><th>Memory Address
+ <th>Bits
+ <th>Mode
+ <th>Shortname
+ <th>What
+{% for val in sec_values %}
+ <tr><td>{{ val.addr_pp() }}
+ <td>{{ val.bits }}
+ <td>{{ val.mode }}
+ <td>{{ val.slug }}
+ <td>{{ val.description }}
+{% endfor %}
+</table>{% endfor %}
+
+</body></html>
diff --git a/templates/minimal.rst.tmpl b/templates/minimal.rst.tmpl
new file mode 100644
index 0000000..0ad74df
--- /dev/null
+++ b/templates/minimal.rst.tmpl
@@ -0,0 +1,23 @@
+=========================================================================
+{{name}} Memory Map
+=========================================================================
+
+{% for sec_name, sec_values in sections.iteritems() %}
+{{sec_name}}
+---------------------------------------------------------
+
+.. list-table::
+ :widths: 10 5 5 15 55
+ :header-rows: 1
+
+ * - Address
+ - Bits
+ - Mode
+ - Shortname
+ - What {% for val in sec_values %}
+ * - ``{{ val.addr_pp() }}``
+ - {{ val.bits }}
+ - ``{{ val.mode }}``
+ - {{ val.slug }}
+ - {{ val.description }} {% endfor %}
+{% endfor %}