Skip to content

Commit

Permalink
feat: rename Atom feed to releases.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
fguillot committed Dec 20, 2024
1 parent b85f3c5 commit c1e68e6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/generate-website.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
<link rel="apple-touch-icon" sizes="72x72" href="/assets/img/touch-icon-ipad.png">
<link rel="apple-touch-icon" sizes="114x114" href="/assets/img/touch-icon-iphone-retina.png">
<link rel="apple-touch-icon" sizes="144x144" href="/assets/img/touch-icon-ipad-retina.png">
<link rel="alternate" type="application/atom+xml" title="Kanboard Releases" href="/feed.xml">
<link rel="alternate" type="application/atom+xml" title="Kanboard Releases" href="/releases.xml">
<title>{title}</title>
<style>{stylesheet}</style>
</head>
Expand All @@ -188,7 +188,7 @@
<a href="https://docs.kanboard.org/">Docs</a>
<a href="https://kanboard.discourse.group/" title="Discourse Forum"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Discourse</title><path d="M12.103 0C18.666 0 24 5.485 24 11.997c0 6.51-5.33 11.99-11.9 11.99L0 24V11.79C0 5.28 5.532 0 12.103 0zm.116 4.563c-2.593-.003-4.996 1.352-6.337 3.57-1.33 2.208-1.387 4.957-.148 7.22L4.4 19.61l4.794-1.074c2.745 1.225 5.965.676 8.136-1.39 2.17-2.054 2.86-5.228 1.737-7.997-1.135-2.778-3.84-4.59-6.84-4.585h-.008z"/></svg></a>
<a href="https://mastodon.social/@kanboard" title="@[email protected]"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Mastodon</title><path d="M23.268 5.313c-.35-2.578-2.617-4.61-5.304-5.004C17.51.242 15.792 0 11.813 0h-.03c-3.98 0-4.835.242-5.288.309C3.882.692 1.496 2.518.917 5.127.64 6.412.61 7.837.661 9.143c.074 1.874.088 3.745.26 5.611.118 1.24.325 2.47.62 3.68.55 2.237 2.777 4.098 4.96 4.857 2.336.792 4.849.923 7.256.38.265-.061.527-.132.786-.213.585-.184 1.27-.39 1.774-.753a.057.057 0 0 0 .023-.043v-1.809a.052.052 0 0 0-.02-.041.053.053 0 0 0-.046-.01 20.282 20.282 0 0 1-4.709.545c-2.73 0-3.463-1.284-3.674-1.818a5.593 5.593 0 0 1-.319-1.433.053.053 0 0 1 .066-.054c1.517.363 3.072.546 4.632.546.376 0 .75 0 1.125-.01 1.57-.044 3.224-.124 4.768-.422.038-.008.077-.015.11-.024 2.435-.464 4.753-1.92 4.989-5.604.008-.145.03-1.52.03-1.67.002-.512.167-3.63-.024-5.545zm-3.748 9.195h-2.561V8.29c0-1.309-.55-1.976-1.67-1.976-1.23 0-1.846.79-1.846 2.35v3.403h-2.546V8.663c0-1.56-.617-2.35-1.848-2.35-1.112 0-1.668.668-1.67 1.977v6.218H4.822V8.102c0-1.31.337-2.35 1.011-3.12.696-.77 1.608-1.164 2.74-1.164 1.311 0 2.302.5 2.962 1.498l.638 1.06.638-1.06c.66-.999 1.65-1.498 2.96-1.498 1.13 0 2.043.395 2.74 1.164.675.77 1.012 1.81 1.012 3.12z"/></svg></a>
<a href="/feed.xml" title="RSS feed"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>RSS</title><path d="M19.199 24C19.199 13.467 10.533 4.8 0 4.8V0c13.165 0 24 10.835 24 24h-4.801zM3.291 17.415c1.814 0 3.293 1.479 3.293 3.295 0 1.813-1.485 3.29-3.301 3.29C1.47 24 0 22.526 0 20.71s1.475-3.294 3.291-3.295zM15.909 24h-4.665c0-6.169-5.075-11.245-11.244-11.245V8.09c8.727 0 15.909 7.184 15.909 15.91z"/></svg></a>
<a href="/releases.xml" title="RSS feed"><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>RSS</title><path d="M19.199 24C19.199 13.467 10.533 4.8 0 4.8V0c13.165 0 24 10.835 24 24h-4.801zM3.291 17.415c1.814 0 3.293 1.479 3.293 3.295 0 1.813-1.485 3.29-3.301 3.29C1.47 24 0 22.526 0 20.71s1.475-3.294 3.291-3.295zM15.909 24h-4.665c0-6.169-5.075-11.245-11.244-11.245V8.09c8.727 0 15.909 7.184 15.909 15.91z"/></svg></a>
</nav>
</header>
<main>
Expand Down Expand Up @@ -263,7 +263,7 @@
<id>{id}</id>
<updated>{updated}</updated>
<link type="text/html" rel="alternate" href="https://kanboard.org/releases.html"/>
<link type="application/atom+xml" rel="self" href="https://kanboard.org/feed.xml"/>
<link type="application/atom+xml" rel="self" href="https://kanboard.org/releases.xml"/>
{entries}
</feed>
"""
Expand Down Expand Up @@ -537,7 +537,7 @@ def generate_release_documents(content_dir: str, output_dir: str) -> None:
.strftime("%Y-%m-%dT%H:%M:%SZ"),
entries="\n".join(entries),
).strip()
with open(f"{output_dir}/feed.xml", "w", encoding="utf-8") as f:
with open(f"{output_dir}/releases.xml", "w", encoding="utf-8") as f:
f.write(feed)


Expand Down

0 comments on commit c1e68e6

Please sign in to comment.