add mdbook example

This commit is contained in:
Trevor Bentley
2023-01-15 18:27:18 +01:00
parent 88e76d788c
commit a5e01d22f5
9 changed files with 106 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
# {{name}} -- Branches
| Branch | Hash | Summary |
| --- | --- | --- |
{% for entry in branches | sort(attribute="ts_utc") | reverse -%}
| {{entry.ref_name}} | {{entry.short_hash}} | ({{entry.summary}}) |
{% endfor -%}
+7
View File
@@ -0,0 +1,7 @@
# {{name}} -- Commits
| Hash | Summary |
| --- | --- |
{% for entry in history -%}
| {{entry.short_hash}} | ({{entry.summary}}) |
{% endfor -%}
+11
View File
@@ -0,0 +1,11 @@
# {{name}} -- Overview
{{metadata.description}}
## Recent commits (10 of {{history | length}})
{% for entry in history -%}
{% if loop.index0 < 10 -%}
- {{entry.short_hash}}: {{entry.summary}}
{% endif -%}
{% endfor -%}
+10
View File
@@ -0,0 +1,10 @@
# Summary
# Git Repositories
{% for repo in repos | sort(attribute="name") | reverse -%}
- [{{repo.name}}]({{repo.name}}/about.md)
- [history]({{repo.name}}/history.md)
- [branches]({{repo.name}}/branches.md)
- [tags]({{repo.name}}/tags.md)
{% endfor -%}
+7
View File
@@ -0,0 +1,7 @@
# {{name}} -- Tags
| Tag | Hash | Summary |
| --- | --- | --- |
{% for entry in tags | sort(attribute="ts_utc") | reverse -%}
| {{entry.ref_name}} | {{entry.short_hash}} | ({{entry.summary}}) |
{% endfor -%}