From 6e5e71882d9d9969e0ffe3013e656cac8fa4f115 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 13 Apr 2019 00:36:45 +0200 Subject: Replace commit feed aggregation with manual import This is the starting point for extending _Overview_ to support various types of recent updates (i.e. not just blog articles and commits over a certain message size). While direct fetching and rendering of markdown-formatted Git commit messages is an attractive concept, this new approach should be much more flexible. As a side benefit commit entries can now be edited and expanded compared to their fixed Git reference. e.g. retroactively expanding upon older commits or adding example media that doesn't strictly belong inside the actual commit message. --- source/99_result/overview.xsl | 52 +++++++++++++------------------------------ source/99_result/timeline.xsl | 35 +++++++++-------------------- 2 files changed, 25 insertions(+), 62 deletions(-) (limited to 'source/99_result') diff --git a/source/99_result/overview.xsl b/source/99_result/overview.xsl index a21aa8a..5a319b8 100644 --- a/source/99_result/overview.xsl +++ b/source/99_result/overview.xsl @@ -21,63 +21,41 @@ - - - - - - - - - - +

» - - + +

- + at - + | - - + + | - - + + | - + - -
- - - - - - + @@ -113,8 +91,8 @@ - - + + @@ -170,7 +148,7 @@ <div class="normal menuhead"> <h2> - <a href="https://code.kummerlaender.eu"> + <a href="{$root/meta/repository_base}"> <xsl:text>Selected commits</xsl:text> </a> </h2> @@ -187,7 +165,7 @@ </ul> </div> - <xsl:apply-templates select="timeline/commit[position() <= $root/meta/overview/commit_count]"/> + <xsl:apply-templates select="timeline/entry[position() <= $root/meta/overview/commit_count]"/> </div> </body> </html> diff --git a/source/99_result/timeline.xsl b/source/99_result/timeline.xsl index de0c6e4..5c4630c 100644 --- a/source/99_result/timeline.xsl +++ b/source/99_result/timeline.xsl @@ -16,31 +16,27 @@ <xsl:variable name="meta"> <datasource type="main" mode="full" source="03_merge/timeline.xml" target="timeline"/> - <datasource type="support" mode="full" source="02_augment/commits.xml" target="repositories"/> <datasource type="support" mode="full" source="00_content/meta.xml" target="meta"/> <target mode="plain" value="timeline.xml"/> </xsl:variable> <xsl:variable name="root" select="/datasource"/> <xsl:variable name="url" select="concat($root/meta/url, '/timeline.xml')"/> -<xsl:variable name="latest" select="$root/repositories/entry[ - @handle = $root/timeline/commit[1]/@repository -]/commit[ - @hash = $root/timeline/commit[1]/@hash -]"/> -<xsl:template match="repositories/entry/commit"> +<xsl:template match="timeline/entry"> + <xsl:variable name="link" select="concat($root/meta/repository_base, '/', @repo, '/commits/?id=', @hash)"/> + <entry xmlns="http://www.w3.org/2005/Atom"> <id> - <xsl:value-of select="link"/> + <xsl:value-of select="$link"/> </id> <title> <xsl:value-of select="title"/> - + - + @@ -51,7 +47,7 @@
- +
@@ -69,25 +65,14 @@ - + T - + :00+02:00 - +
- - - - - - - -- cgit v1.2.3