public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH,WWWDOCS] htdocs: add an Atom feed for GCC news
@ 2022-12-23  9:50 Jose E. Marchesi
  2023-01-11 22:11 ` Thomas Schwinge
  2023-01-17  9:41 ` Gerald Pfeifer
  0 siblings, 2 replies; 8+ messages in thread
From: Jose E. Marchesi @ 2022-12-23  9:50 UTC (permalink / raw)
  To: gcc-patches

This patch adds an Atom feed for GCC news, which can then be easily
aggregated in other sites, such as the GNU planet
(https://planet.gnu.org).

The feed lives in a file news.xml, and this patch initializes it with
the latest entry in News as an example.
---
 htdocs/index.html |  9 ++++++++-
 htdocs/news.xml   | 28 ++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 1 deletion(-)
 create mode 100644 htdocs/news.xml

diff --git a/htdocs/index.html b/htdocs/index.html
index e91fadf1..2ddee6f6 100644
--- a/htdocs/index.html
+++ b/htdocs/index.html
@@ -6,6 +6,9 @@
 <meta name="google-site-verification" content="FUv_3eEIkimd6LAoWned4TPMqmKKQmw3aA2_PBJ5SAY">
 <title>GCC, the GNU Compiler Collection</title>
 <link rel="stylesheet" type="text/css" href="https://gcc.gnu.org/gcc.css">
+<link rel="alternate" type="application/rss+xml"
+      title="News about the GNU Compiler Collection"
+      href="news.xml"/>
 </head>
 
 <set-var navigation>
@@ -48,7 +51,11 @@ mission statement</a>.</p>
 
 <!-- Note: We usually want to rotate news to the "old news" page when
      it's more than 12 months old or the News pane on this page has
-     become longer than the parallel one, whatever happens first. 
+     become longer than the parallel one, whatever happens first.
+
+     Note: There is an Atom feed in news.xml, which is aggregated by
+     some news aggregators and "planets".  It is likely you want to
+     add a new item there with the good news.
 -->
 
 <td class="news border0">
diff --git a/htdocs/news.xml b/htdocs/news.xml
new file mode 100644
index 00000000..bebcaa66
--- /dev/null
+++ b/htdocs/news.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<rss version="2.0">
+  <channel>
+    <title>News about the GNU Compiler Collection</title>
+    <link>https://gcc.gnu.org</link>
+    <description>
+      The GNU Compiler Collection includes front ends for C, C++,
+      Objective-C, Fortran, Ada, Go, and D, as well as libraries for
+      these languages (libstdc++,...). GCC was originally written as
+      the compiler for the GNU operating system. The GNU system was
+      developed to be 100% free software, free in the sense that it
+      respects the user's freedom.
+    </description>
+
+    <item>
+      <title>GCC BPF in Compiler Explorer</title>
+      <link>https://godbolt.org</link>
+      <description>
+        Support for a nightly build of the bpf-unknown-none-gcc
+        compiler has been contributed to Compiler Explorer (aka
+        godbolt.org) by Marc Poulhiès
+      </description>
+      <pubDate>Fri, 23 December 2022 11:00:00 CET</pubDate>
+    </item>
+
+  </channel>
+</rss>
-- 
2.30.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-01-17 14:17 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-23  9:50 [PATCH,WWWDOCS] htdocs: add an Atom feed for GCC news Jose E. Marchesi
2023-01-11 22:11 ` Thomas Schwinge
2023-01-11 23:50   ` Jose E. Marchesi
2023-01-11 23:59     ` Jose E. Marchesi
2023-01-17  9:31     ` Gerald Pfeifer
2023-01-17 10:11       ` Jose E. Marchesi
2023-01-17 14:03         ` Arsen Arsenović
2023-01-17  9:41 ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).