Skip to content

Commit 497d27f

Browse files
committed
enable news component and set up redirects
1 parent 86f9bb6 commit 497d27f

File tree

4 files changed

+26
-17
lines changed

4 files changed

+26
-17
lines changed

docusaurus.config.js

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -78,18 +78,19 @@ const config = {
7878
// breadcrumbs: false,
7979
// }),
8080
// ],
81-
// [
82-
// "content-blog",
83-
// /** @type {import('@docusaurus/plugin-content-blog').Options} */
84-
// ({
85-
// id: "news",
86-
// path: "news",
87-
// routeBasePath: "/docs/user/announcements.html",
88-
// showReadingTime: false,
89-
// blogSidebarTitle: "Latest news",
90-
// blogSidebarCount: 20,
91-
// }),
92-
// ],
81+
[
82+
"content-blog",
83+
/** @type {import('@docusaurus/plugin-content-blog').Options} */
84+
{
85+
id: "news",
86+
path: "./news",
87+
routeBasePath: "news",
88+
showReadingTime: false,
89+
blogSidebarTitle: "Latest announcements",
90+
blogSidebarCount: 10, /* This can be set to 'ALL' if needed */
91+
postsPerPage: 10, /* This can be set to 'ALL' if needed */
92+
},
93+
],
9394
[
9495
"@docusaurus/plugin-client-redirects",
9596
{
@@ -187,6 +188,14 @@ const config = {
187188
from: "/blog/posts/2023-07-13-installer-security-fixes/",
188189
to: "/blog/2023/07/13/installer-security-fixes/",
189190
},
191+
{
192+
from: "/docs/user/announcements.html",
193+
to: "/news/",
194+
},
195+
{
196+
from: "/docs/news.rss",
197+
to: "/news/rss.xml",
198+
},
190199
],
191200
},
192201
],
@@ -208,7 +217,7 @@ const config = {
208217
position: "left",
209218
},
210219
{
211-
to: "pathname:///docs/user/announcements.html",
220+
to: "/news/",
212221
label: "News",
213222
position: "left",
214223
},
@@ -305,7 +314,7 @@ const config = {
305314
items: [
306315
{
307316
label: "News",
308-
to: "pathname:///docs/user/announcements.html",
317+
to: "/news/",
309318
},
310319
{
311320
label: "Blog",

sphinx/feedstock_outputs.html.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
<a href="https://conda-forge.org/feedstock-outputs">Packages</a>
6666
</li>
6767
<li>
68-
<a href="https://conda-forge.org/docs/user/announcements.html#announcements">News</a>
68+
<a href="https://conda-forge.org/news">News</a>
6969
</li>
7070
<li>
7171
<a href="https://conda-forge.org/status">Status</a>

sphinx/src/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Table of Contents
4848
.. feed::
4949
:rss: news.rss
5050
:title: conda-forge news & announcements
51-
:link: https://conda-forge.org/docs/user/announcements.html
51+
:link: https://conda-forge.org/news
5252
:description: News and announcements for the conda-forge ecosystem and channel.
5353

5454
user/announcements

sphinx/src/orga/getting-in-touch.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ Staying Up-to-date
6363
There are several sources that have the latest conda-forge information.
6464

6565
* `Blog <https://conda-forge.org/blog>`__: We blog about big feature enhancements and other items. Our blog has an Atom `feed <https://conda-forge.org/blog/atom.xml>`__.
66-
* `News <https://conda-forge.org/docs/user/announcements.html#announcements>`__: Our :ref:`announcements <news>` page has periodic notices about technical changes to our infrastructure. It is also served as an RSS `feed <https://conda-forge.org/docs/news.rss>`__.
66+
* `News <https://conda-forge.org/news>`__: Our news page has periodic notices about technical changes to our infrastructure. It is also served as an RSS `feed <https://conda-forge.org/docs/news.rss>`__.

0 commit comments

Comments
 (0)