Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add support for RSS feed #2003

Merged
merged 1 commit into from
Apr 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/document/docs/en/community/releases/v0-1.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2023-11-22 08:00:00
---

# Announcing Rsbuild v0.1

> November 22, 2023
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/en/community/releases/v0-2.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2023-12-11 08:00:00
---

# Announcing Rsbuild v0.2

> December 11, 2023
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/en/community/releases/v0-3.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2024-01-10 08:00:00
---

# Announcing Rsbuild v0.3

> January 10, 2024
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/en/community/releases/v0-4.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2024-02-06 08:00:00
---

# Announcing Rsbuild v0.4

> February 06, 2024
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/en/community/releases/v0-5.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2024-03-19 08:00:00
---

# Announcing Rsbuild v0.5

> March 19, 2024
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/zh/community/releases/v0-1.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2023-11-22 08:00:00
---

# Rsbuild v0.1 发布

> November 22, 2023
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/zh/community/releases/v0-2.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2023-12-11 08:00:00
---

# Rsbuild v0.2 发布

> December 11, 2023
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/zh/community/releases/v0-3.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2024-01-10 08:00:00
---

# Rsbuild v0.3 发布

> January 10, 2024
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/zh/community/releases/v0-4.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2024-02-06 08:00:00
---

# Rsbuild v0.4 发布

> February 06, 2024
Expand Down
4 changes: 4 additions & 0 deletions packages/document/docs/zh/community/releases/v0-5.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
---
published_at: 2024-03-19 08:00:00
---

# Rsbuild v0.5 发布

> March 19, 2024
Expand Down
8 changes: 5 additions & 3 deletions packages/document/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,18 @@
},
"devDependencies": {
"@rsbuild/core": "workspace:*",
"@rspress/plugin-rss": "^1.17.0",
"@rspress/runtime": "^1.17.0",
"@types/node": "16.x",
"@types/react": "^18.2.71",
"@types/react-dom": "^18.2.22",
"fast-glob": "^3.3.2",
"rsbuild-plugin-google-analytics": "1.0.0",
"rsbuild-plugin-open-graph": "1.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"rsbuild-plugin-google-analytics": "1.0.0",
"rsbuild-plugin-open-graph": "1.0.0",
"rsfamily-nav-icon": "^1.0.2",
"rspress": "^1.16.1",
"rspress": "^1.17.0",
"rspress-plugin-font-open-sans": "1.0.0"
},
"publishConfig": {
Expand Down
22 changes: 21 additions & 1 deletion packages/document/rspress.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,32 @@
import path from 'node:path';
import { defineConfig } from 'rspress/config';
import { rsbuildPluginOverview } from './src/rsbuildPluginOverview';
import { pluginRss } from '@rspress/plugin-rss';
import { pluginFontOpenSans } from 'rspress-plugin-font-open-sans';
import { pluginOpenGraph } from 'rsbuild-plugin-open-graph';
import { pluginGoogleAnalytics } from 'rsbuild-plugin-google-analytics';

export default defineConfig({
plugins: [pluginFontOpenSans()],
plugins: [
pluginFontOpenSans(),
pluginRss({
siteUrl: 'https://rsbuild.dev',
feed: [
{
id: 'releases',
test: '/community/releases/v',
title: 'Rsbuild Releases',
language: 'en-US',
},
{
id: 'releases-zh',
test: '/zh/community/releases/v',
title: 'Rsbuild Releases',
language: 'zh-CN',
},
],
}),
],
root: path.join(__dirname, 'docs'),
lang: 'en',
base: '/',
Expand Down
117 changes: 80 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.