grim/hgkeeper-theme

add the atom and rss templates
draft
2020-03-22, Gary Kramlich
167bcc8633fe
Parents 370c28e46baf
Children 15aa4b1f3868
add the atom and rss templates
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/bookmarkentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,8 @@
+ <entry>
+ <title>{bookmark|escape}</title>
+ <link rel="alternate" href="{urlbase}{url|urlescape}rev/{node|short}"/>
+ <id>{urlbase}{url|urlescape}#bookmark-{node}</id>
+ <updated>{date|rfc3339date}</updated>
+ <published>{date|rfc3339date}</published>
+ <content type="text">{bookmark|strip|escape}</content>
+ </entry>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/bookmarks.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,11 @@
+{header}
+ <id>{urlbase}{url|urlescape}</id>
+ <link rel="self" href="{urlbase}{url|urlescape}atom-bookmarks"/>
+ <link rel="alternate" href="{urlbase}{url|urlescape}bookmarks"/>
+ <title>{repo|escape}: bookmarks</title>
+ <summary>{repo|escape} bookmark history</summary>
+ <author><name>Mercurial SCM</name></author>
+ {lastchange%feedupdated}
+
+{entries%bookmarkentry}
+</feed>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/branchentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,8 @@
+ <entry>
+ <title>{branch|escape}</title>
+ <link rel="alternate" href="{urlbase}{url|urlescape}rev/{node|short}"/>
+ <id>{urlbase}{url|urlescape}#branch-{node}</id>
+ <updated>{date|rfc3339date}</updated>
+ <published>{date|rfc3339date}</published>
+ <content type="text">{branch|strip|escape}</content>
+ </entry>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/branches.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,11 @@
+{header}
+ <id>{urlbase}{url|urlescape}</id>
+ <link rel="self" href="{urlbase}{url|urlescape}atom-branches"/>
+ <link rel="alternate" href="{urlbase}{url|urlescape}branches"/>
+ <title>{repo|escape}: branches</title>
+ <summary>{repo|escape} branch history</summary>
+ <author><name>Mercurial SCM</name></author>
+ {latestentry%feedupdated}
+
+ {entries%branchentry}
+</feed>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/changelog.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,10 @@
+{header}
+ <!-- Changelog -->
+ <id>{urlbase}{url|urlescape}</id>
+ <link rel="self" href="{urlbase}{url|urlescape}atom-log"/>
+ <link rel="alternate" href="{urlbase}{url|urlescape}"/>
+ <title>{repo|escape} Changelog</title>
+ {latestentry%feedupdated}
+
+{entries%changelogentry}
+</feed>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/changelogentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,43 @@
+ <entry>
+ <title>{inbranch%"{if(name, '[{name|escape}] ')}"}{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape|nonempty}</title>
+ <id>{urlbase}{url|urlescape}#changeset-{node}</id>
+ <link href="{urlbase}{url|urlescape}rev/{node|short}"/>
+ <author>
+ <name>{author|person|escape}</name>
+ <email>{author|email|obfuscate}</email>
+ </author>
+ <updated>{date|rfc3339date}</updated>
+ <published>{date|rfc3339date}</published>
+ <content type="xhtml">
+ <table xmlns="http://www.w3.org/1999/xhtml">
+ <tr>
+ <th style="text-align:left;">changeset</th>
+ <td>{node|short}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;">branch</th>
+ <td>{inbranch%"{name|escape}"}{branches%"{name|escape}"}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;">bookmark</th>
+ <td>{bookmarks%"{name|escape}"}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;">tag</th>
+ <td>{tags%"{name|escape}"}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;">user</th>
+ <td>{author|obfuscate}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;vertical-align:top;">description</th>
+ <td>{desc|strip|escape|websub|addbreaks|nonempty}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;vertical-align:top;">files</th>
+ <td>{files}</td>
+ </tr>
+ </table>
+ </content>
+ </entry>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/error.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,17 @@
+{header}
+ <!-- Error -->
+ <id>{urlbase}{url|urlescape}</id>
+ <link rel="self" href="{urlbase}{url|urlescape}atom-log"/>
+ <link rel="alternate" href="{urlbase}{url|urlescape}"/>
+ <title>Error</title>
+ <updated>1970-01-01T00:00:00+00:00</updated>
+ <entry>
+ <title>Error</title>
+ <id>https://mercurial-scm.org/#error</id>
+ <author>
+ <name>mercurial</name>
+ </author>
+ <updated>1970-01-01T00:00:00+00:00</updated>
+ <content type="text">{error|escape}</content>
+ </entry>
+</feed>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/filelog.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,8 @@
+{header}
+ <id>{urlbase}{url|urlescape}atom-log/tip/{file|escape}</id>
+ <link rel="self" href="{urlbase}{url|urlescape}atom-log/tip/{file|urlescape}"/>
+ <title>{repo|escape}: {file|escape} history</title>
+ {latestentry%feedupdated}
+
+{entries%changelogentry}
+</feed>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/header.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="{encoding}"?>
+<feed xmlns="http://www.w3.org/2005/Atom">
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/map Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,18 @@
+default = 'changelog'
+feedupdated = '<updated>{date|rfc3339date}</updated>'
+mimetype = 'application/atom+xml; charset={encoding}'
+header = header.tmpl
+changelog = changelog.tmpl
+changelogentry = changelogentry.tmpl
+filelog = filelog.tmpl
+tags = tags.tmpl
+tagentry = tagentry.tmpl
+bookmarks = bookmarks.tmpl
+bookmarkentry = bookmarkentry.tmpl
+branches = branches.tmpl
+branchentry = branchentry.tmpl
+error = error.tmpl
+filedifflink = '{file|escape}<br />'
+fileellipses = '{file|escape}<br />'
+filenodelink = '{file|escape}<br />'
+filenolink = '{file|escape}<br />'
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/tagentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,8 @@
+ <entry>
+ <title>{tag|escape}</title>
+ <link rel="alternate" href="{urlbase}{url|urlescape}rev/{node|short}"/>
+ <id>{urlbase}{url|urlescape}#tag-{node}</id>
+ <updated>{date|rfc3339date}</updated>
+ <published>{date|rfc3339date}</published>
+ <content type="text">{tag|strip|escape}</content>
+ </entry>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/atom/tags.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,11 @@
+{header}
+ <id>{urlbase}{url|urlescape}</id>
+ <link rel="self" href="{urlbase}{url|urlescape}atom-tags"/>
+ <link rel="alternate" href="{urlbase}{url|urlescape}tags"/>
+ <title>{repo|escape}: tags</title>
+ <summary>{repo|escape} tag history</summary>
+ <author><name>Mercurial SCM</name></author>
+ {latestentry%feedupdated}
+
+{entriesnotip%tagentry}
+</feed>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/bookmarkentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,6 @@
+<item>
+ <title>{bookmark|escape}</title>
+ <link>{urlbase}{url|urlescape}rev/{node|short}</link>
+ <description><![CDATA[{bookmark|strip|escape|addbreaks}]]></description>
+ <pubDate>{date|rfc822date}</pubDate>
+</item>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/bookmarks.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,6 @@
+{header}
+ <title>{repo|escape}: bookmarks</title>
+ <description>{repo|escape} bookmark history</description>
+ {entries%bookmarkentry}
+ </channel>
+</rss>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/branchentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,6 @@
+<item>
+ <title>{branch|escape}</title>
+ <link>{urlbase}{url|urlescape}rev/{node|short}</link>
+ <description><![CDATA[{branch|strip|escape|addbreaks}]]></description>
+ <pubDate>{date|rfc822date}</pubDate>
+</item>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/branches.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,6 @@
+{header}
+ <title>{repo|escape}: branches</title>
+ <description>{repo|escape} branch history</description>
+ {entries%branchentry}
+ </channel>
+</rss>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/changelog.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,6 @@
+{header}
+ <title>{repo|escape} Changelog</title>
+ <description>{repo|escape} Changelog</description>
+ {entries%changelogentry}
+ </channel>
+</rss>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/changelogentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,41 @@
+<item>
+ <title>{inbranch%"{if(name, '[{name|escape}] ')}"}{branches%"{if(name, '[{name|escape}] ')}"}{desc|strip|firstline|strip|escape}</title>
+ <guid isPermaLink="true">{urlbase}{url|urlescape}rev/{node|short}</guid>
+ <link>{urlbase}{url|urlescape}rev/{node|short}</link>
+ <description>
+ <![CDATA[
+ <table>
+ <tr>
+ <th style="text-align:left;">changeset</th>
+ <td>{node|short}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;">branch</th>
+ <td>{inbranch%"{name|escape}"}{branches%"{name|escape}"}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;">bookmark</th>
+ <td>{bookmarks%"{name|escape}"}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;">tag</th>
+ <td>{tags%"{name|escape}"}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;vertical-align:top;">user</th>
+ <td>{author|obfuscate}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;vertical-align:top;">description</th>
+ <td>{desc|strip|escape|websub|addbreaks|nonempty}</td>
+ </tr>
+ <tr>
+ <th style="text-align:left;vertical-align:top;">files</th>
+ <td>{files}</td>
+ </tr>
+ </table>
+ ]]>
+ </description>
+ <author>{author|obfuscate}</author>
+ <pubDate>{date|rfc822date}</pubDate>
+</item>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/error.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,10 @@
+{header}
+ <title>Error</title>
+ <description>Error</description>
+ <item>
+ <title>Error</title>
+ <description>{error|escape}</description>
+ <guid>https://mercurial-scm.org/#error</guid>
+ </item>
+ </channel>
+</rss>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/filelog.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,6 @@
+{header}
+ <title>{repo|escape}: {file|escape} history</title>
+ <description>{file|escape} revision history</description>
+ {entries%filelogentry}
+ </channel>
+</rss>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/filelogentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,7 @@
+<item>
+ <title>{desc|strip|firstline|strip|escape}</title>
+ <link>{urlbase}{url|urlescape}log/{node|short}/{file|urlescape}</link>
+ <description><![CDATA[{desc|strip|escape|websub|addbreaks|nonempty}]]></description>
+ <author>{author|obfuscate}</author>
+ <pubDate>{date|rfc822date}</pubDate>
+</item>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/header.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="{encoding}"?>
+<rss version="2.0">
+ <channel>
+ <link>{urlbase}{url|urlescape}</link>
+ <language>en-us</language>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/map Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,18 @@
+default = 'changelog'
+mimetype = 'text/xml; charset={encoding}'
+header = header.tmpl
+changelog = changelog.tmpl
+changelogentry = changelogentry.tmpl
+filelog = filelog.tmpl
+filelogentry = filelogentry.tmpl
+tags = tags.tmpl
+tagentry = tagentry.tmpl
+bookmarks = bookmarks.tmpl
+bookmarkentry = bookmarkentry.tmpl
+branches = branches.tmpl
+branchentry = branchentry.tmpl
+error = error.tmpl
+filedifflink = '{file|escape}<br />'
+fileellipses = '{file|escape}<br />'
+filenodelink = '{file|escape}<br />'
+filenolink = '{file|escape}<br />'
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/tagentry.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,6 @@
+<item>
+ <title>{tag|escape}</title>
+ <link>{urlbase}{url|urlescape}rev/{node|short}</link>
+ <description><![CDATA[{tag|strip|escape|addbreaks}]]></description>
+ <pubDate>{date|rfc822date}</pubDate>
+</item>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/rss/tags.tmpl Sun Mar 22 06:31:04 2020 -0500
@@ -0,0 +1,6 @@
+{header}
+ <title>{repo|escape}: tags</title>
+ <description>{repo|escape} tag history</description>
+ {entriesnotip%tagentry}
+ </channel>
+</rss>