Add link to release in RSS.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Previously releases had no own page. Now they have.
This commit is contained in:
parent
0bcad56590
commit
089534e07d
|
@ -2,7 +2,7 @@
|
||||||
:doctype: manpage
|
:doctype: manpage
|
||||||
:Author: tastytea
|
:Author: tastytea
|
||||||
:Email: tastytea@tastytea.de
|
:Email: tastytea@tastytea.de
|
||||||
:Date: 2020-10-24
|
:Date: 2020-10-27
|
||||||
:Revision: 0.0.0
|
:Revision: 0.0.0
|
||||||
:man source: gitea2rss
|
:man source: gitea2rss
|
||||||
:man version: {revision}
|
:man version: {revision}
|
||||||
|
@ -33,9 +33,7 @@ _https://rss.example.com/?repo=alice/cooltool&type=tags_.
|
||||||
|
|
||||||
The generated RSS feed contains the *channel* elements _title_, _link_,
|
The generated RSS feed contains the *channel* elements _title_, _link_,
|
||||||
_description_, _generator_ and _lastBuildDate_ and the *item* elements _title_,
|
_description_, _generator_ and _lastBuildDate_ and the *item* elements _title_,
|
||||||
_link_, _guid_, _pubDate_ and _description_. Since Gitea has no individual pages
|
_link_, _guid_, _pubDate_ and _description_.
|
||||||
for each release, _link_ elements in *item* are set to the overview page for
|
|
||||||
releases.
|
|
||||||
|
|
||||||
== GITEA INTEGRATION
|
== GITEA INTEGRATION
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,9 @@ uint8_t write_releases(const string &url)
|
||||||
cout << " <item>\n";
|
cout << " <item>\n";
|
||||||
write_line(6, "title",
|
write_line(6, "title",
|
||||||
get_project(url) + ": " + release["name"].asString());
|
get_project(url) + ": " + release["name"].asString());
|
||||||
write_line(6, "link", (baseurl + "/" += repo) += "/releases");
|
write_line(6, "link",
|
||||||
|
((baseurl + "/" += repo) += "/releases/tag/") +=
|
||||||
|
release["tag_name"].asString());
|
||||||
write_line(6, "guid isPermaLink=\"false\"",
|
write_line(6, "guid isPermaLink=\"false\"",
|
||||||
get_domain(url) + " release " + release["id"].asString());
|
get_domain(url) + " release " + release["id"].asString());
|
||||||
write_line(6, "pubDate", strtime(release["published_at"].asString()));
|
write_line(6, "pubDate", strtime(release["published_at"].asString()));
|
||||||
|
|
Loading…
Reference in New Issue