Skip to content

Commit b1840fd

Browse files
Add RSS feed to the website.
1 parent 05e013c commit b1840fd

File tree

11 files changed

+2985
-56
lines changed

11 files changed

+2985
-56
lines changed

docusaurus.config.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const config: Config = {
2020
organizationName: "/HaudinFlorence/", // Usually your GitHub org/user name.
2121
projectName: "quantstack.github.io", // Usually your repo name.
2222

23-
onBrokenLinks: "throw",
23+
onBrokenLinks: "warn",
2424
onBrokenMarkdownLinks: "warn",
2525
staticDirectories: ["static"],
2626

@@ -52,6 +52,7 @@ const config: Config = {
5252
},
5353
theme: {
5454
customCss: "./src/css/custom.css",
55+
5556
},
5657
} satisfies Preset.Options,
5758
],
@@ -61,6 +62,17 @@ const config: Config = {
6162
// Replace with your project's social card
6263
//image: 'img/docusaurus-social-card.jpg',
6364
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
65+
headTags: [
66+
{
67+
tagName: 'link',
68+
attributes: {
69+
rel: 'alternate',
70+
type: 'application/rss+xml',
71+
title: 'RSS Feed',
72+
href: '/rss.xml',
73+
},
74+
},
75+
],
6476
navbar: {
6577
title: "",
6678
logo: {
@@ -105,7 +117,6 @@ const config: Config = {
105117
position: "right",
106118
className: "contact",
107119
},
108-
109120
{
110121
to: "https://github.com/QuantStack",
111122
title: "GitHub",
@@ -136,6 +147,14 @@ const config: Config = {
136147
target: "_blank",
137148
className: "mastodon-icon",
138149
},
150+
151+
{
152+
to: "rss.xml",
153+
title: "RSS",
154+
position: "right",
155+
target: "_blank",
156+
className: "rss-circle-icon",
157+
},
139158
],
140159
},
141160

package-lock.json

Lines changed: 98 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
},
1010
"scripts": {
1111
"docusaurus": "docusaurus",
12-
"prestart": "node scripts/resize-images.js",
13-
"prebuild": "node scripts/resize-images.js",
12+
"prestart": "node scripts/resize-images.js && node scripts/generate-rss-feed.js",
13+
"prebuild": "node scripts/resize-images.js && node scripts/generate-rss-feed.js",
1414
"start": "docusaurus start",
1515
"build": "docusaurus build",
1616
"swizzle": "docusaurus swizzle",
@@ -50,6 +50,7 @@
5050
"react-slick": "^0.30.2",
5151
"reactjs-popup": "^2.0.6",
5252
"request": "^2.88.2",
53+
"rss": "^1.2.2",
5354
"sharp": "^0.34.2",
5455
"slick-carousel": "^1.8.1"
5556
},
@@ -58,7 +59,9 @@
5859
"@docusaurus/tsconfig": "3.8.1",
5960
"@docusaurus/types": "3.8.1",
6061
"@types/node": "^20.12.12",
61-
"typescript": "~5.2.2"
62+
"@types/react": "^19.1.8",
63+
"@types/react-dom": "^19.1.6",
64+
"typescript": "^5.8.3"
6265
},
6366
"browserslist": {
6467
"production": [
@@ -75,4 +78,4 @@
7578
"engines": {
7679
"node": "18.x"
7780
}
78-
}
81+
}

0 commit comments

Comments
 (0)