🐙 Templated web page generator for your git repositories
git clone https://github.com/m-col/gitja
Files | Refs | Readme | License

Commit dacb13073d21f021b3d4e3b358dad574e62593bc
Parent: 3dfb0991b63f62ce6d5bb1f064a5c03612f67e75
Author: mcol <mcol@posteo.net>
Date: 2021-11-28 12:44:46 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2021-11-28 12:44:46 +0000

some docs formatting changes

templates/docs/template.html.include Modified

@@ -19,13 +19,16 @@
 
     <div id="nav">
       {% set url = concat("https://github.com/m-col/", name) -%}
-      <p id="url">git clone <a href="{{ url }}">{{ url }}</a></p>
+      <span id="url">git clone <a href="{{ url }}">{{ url }}</a></span>
 
-      <a href="{{ host }}">Home</a> |
-      <a href="{{ host }}/{{ name }}/tree.html">Files</a> |
-      <a href="{{ host }}/{{ name }}/refs.html">Refs</a> |
-      <a href="{{ host }}/{{ name }}/file/{{ readme.href }}">Readme</a> |
-      <a href="{{ host }}/{{ name }}/file/{{ license.href }}">License</a>
+      <span id="links">
+        <a href="{{ host }}">Home</a> |
+        <a href="{{ host }}/{{ name }}/log.html">Log</a> |
+        <a href="{{ host }}/{{ name }}/tree.html">Files</a> |
+        <a href="{{ host }}/{{ name }}/refs.html">Refs</a> |
+        <a href="{{ host }}/{{ name }}/file/{{ readme.href }}">Readme</a> |
+        <a href="{{ host }}/{{ name }}/file/{{ license.href }}">License</a>
+      </span>
     </div>
 
     <div id="content">

templates/docs/style.css Modified

@@ -44,7 +44,11 @@
 }
 
 #nav {
-    padding: 0 20px;
+    padding: 10px 20px 0;
+}
+
+#links {
+    float: right;
 }
 
 #docs h2 {
@@ -84,9 +88,27 @@
 }
 
 table {
+    margin: 3em auto;
+    width: 90%;
     border-collapse: collapse;
 }
 
+
+th {
+    background-color: #fcfaff;
+    text-decoration: underline #aaa;
+}
+
 tr:nth-child(even) {
     background-color: #fcfaff;
 }
+
+.line {
+    text-decoration: none;
+    color: #5d479d50;
+}
+
+.line:hover {
+    background-color: #5d479d50;
+    color: #333;
+}

templates/docs/repo/file.html Modified

@@ -26,7 +26,7 @@
 {% else %}
   <pre id="blob">
 {% for line in split(file.contents, '\n') %}
-<a href="#l{{ loop.index }}" class="line" id="l{{ loop.index }}">{{ printf("%7v", loop.index) }}</a> {{ line }}
+<a href="#l{{ loop.index }}" class="line" id="l{{ loop.index }}">{{ printf("%5v", loop.index) }}</a>  {{ line }}
 {% endfor %}
 {% endif %}
 </pre>