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

[i18nIgnore] really fix rss feed #2099 #2103

Merged
merged 6 commits into from
May 1, 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
2 changes: 1 addition & 1 deletion src/pages/feed.xml.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This RSS includes all pages in root locale, excluding releases
// This RSS includes all pages in root locale, excluding releases and references
import config from 'virtual:starlight/user-config';
import { getNewestCommitDate } from 'node_modules/@astrojs/starlight/utils/git';
import { getCollection } from 'astro:content';
Expand Down
4 changes: 2 additions & 2 deletions src/pages/pages.xml.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This RSS includes only docs pages in root locale
// This RSS includes only docs pages in root locale, excluding releases, blog and references
import config from 'virtual:starlight/user-config';
import { getNewestCommitDate } from 'node_modules/@astrojs/starlight/utils/git';
import { getCollection } from 'astro:content';
Expand All @@ -8,7 +8,7 @@ import rss from '@astrojs/rss';

// Ternary is just so typescript won't complain
const exclude = config.isMultilingual
? Object.keys(config.locales).concat('blog', 'references', 'rss')
? Object.keys(config.locales).concat('blog', 'references', 'rss', 'releases')
: [];

// https://docs.astro.build/en/reference/api-reference/#endpoint-context
Expand Down
Loading