Reuben Tier
a37e67b520
RSS: Fix string validation of pubDate ( #7066 )
2023-05-15 14:10:32 +08:00
Phil Nash
4ea716e569
Adds extra elements to RSS items. ( #6707 )
2023-04-26 13:58:53 +01:00
Ben Holmes
400ef26c99
[RSS] Fix: Preserve self-closing tags in customData
( #6538 )
...
* fix: preserve self-closing tags in customData
* test: self-closing tags preserved
* chore: changeset
2023-03-13 17:34:23 -04:00
Emanuele Stoppa
2e362042c2
feat(rss): add option to remove the trailing slash ( #6453 )
...
* feat(rss): add option to remove the trailing slash
* Apply suggestions from code review
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* suggestions
---------
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-03-09 07:57:03 +00:00
Ben Holmes
81dce94f2a
[RSS] Get ready for content collections ( #5851 )
...
* chore: strictNullChecks for zod
* feat: expose `rssSchema` helper
* refactor: align types with schema types
* feat: break glob handler to globToRssItems util
* refactor: RSS options validation to Zod
* refactor: avoid intermediate type
* fix: allow numbers and dates in pubDate
* test: update glob and error tests
* feat: add rss to with-content starter
* fix: move globToRssItems back to internal behavior
* chore: JSON.stringify
* Revert "fix: move globToRssItems back to internal behavior"
This reverts commit 85305075e6444907455541b24bccbccd5016951a.
* test: missing url
* docs: `import.meta.env.SITE` -> `context.site`
* docs: update README to content collections example
* fix: url -> link
* docs: add `rssSchema` to README
* chore: consistent formatting
* docs: add `pagesGlobToRssItems()` reference
* chore: globToRssItems -> pagesGlobToRssItems
* chore: changeset
* fix: bad docs line highlighting
* fix: add collections export to example
* nit: remove "our"
* fix: are -> all
* fix: more README edits
* deps: kleur
* chore: add back import.meta.glob handling as deprecated
* docs: bump down to `minor`, update headline to be less content collections-y
* typo: suggest adding
* chore: support URL object on `site`
* docs: add await to pagesGlob ex
* docs: tighten `rssSchema` explainer
* docs: tighten pagesGlobToRssItems section
* docs: add content to README
* docs: replace examples with docs link
* docs: re-we
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-01-19 11:24:55 -05:00
Leontopodium pusillum
68c20be66b
fix: filter out draft item from glob result ( #5612 )
...
* fix: filter out draft item from glob result
* test: rss should ignore draft
* build: add changeset
* build: major version
* feat: add `drafts` option
* Add README docs
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2022-12-27 10:50:11 -05:00
Frode Flaten
c4155daeab
fix missing type-attribute for xsl stylesheets ( #5600 )
2022-12-14 08:39:48 -05:00
matthewp
7de9259d81
[ci] format
2022-12-13 13:47:16 +00:00
Matt Stein
c76e1c8102
Fix missing RSS item customData
( #5591 )
...
* Add failing test.
* Fix it.
* Add changeset.
2022-12-13 08:45:35 -05:00
Anders Kaseorg
fe0da0185a
astro-rss: Generate feed with proper XML escaping ( #5550 )
...
* test(astro-rss): Compare XML using chai-xml
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
* fix(astro-rss): Generate feed with proper XML escaping
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-12-08 08:10:36 -05:00
Ben Smith
081e0a9d20
feat(astro-rss): generate post content in feed ( #5366 )
2022-12-06 18:19:55 -05:00
Happydev
4a8a346ca9
feat: add support for other markdown file extensions ( #5164 )
...
* fix: add `.markdown ` file extension support
adds `.markdown` file extension support for markdown files
* test: add test case
* chore: adds changeset
* test: move test and fixture to relevant locations
* test: update test
* feat: add multiple markdown file extension support
* feat: add module declaration for different markdown file extensions
* refactor: markdown module declarations
for ease of TS refactoring
* fix: add .js extension to module imports
* test: update test
* chore: update changeset
* chore: update changeset
* test: add new test cases
* test: update tests
* fix: correct typo
2022-10-26 10:18:49 -04:00
Ben Holmes
6e1d62fe22
[RSS] Fix failure when globbing index route ( #4701 )
...
* fix: [rss] throw on undefined urls only
* test: "" url, passing glob outside pages/
* chore: changeset
2022-09-12 15:05:57 -04:00
FredKSchott
39c864773b
[ci] format
2022-07-18 22:02:35 +00:00
Vlad Esafev
57e529e4c1
Throw the error when site
option is missing ( #3956 )
...
* Throw the error when site option is missing
* Update index.ts
* Update index.ts
* Update rss.test.js
* Update index.ts
Co-authored-by: Fred K. Schott <fkschott@gmail.com>
2022-07-18 15:01:04 -07:00
matthewp
fa8ec57f16
[ci] format
2022-07-13 20:39:29 +00:00
Matthew Phillips
cd2dbfedb1
Provide a better error message for when RSS is missing link
field ( #3913 )
...
* Provide a better error message for when RSS is missing `link` field
* Adds a changeset
2022-07-13 16:37:17 -04:00
Ben Holmes
0efaf110fc
Fix: make RSS canonicalUrl required ( #3301 )
...
* chore: make canonicalUrl required
* docs: explain env variable on required canonicalUrl
* refactor: rename "canonicalUrl" to "site"
* chore: changeset
2022-05-05 18:03:25 -04:00
bholmesdev
204ff2c223
[ci] format
2022-05-03 22:27:01 +00:00
Ben Holmes
fbfb6190ab
Feat: @astrojs/rss
package! ( #3271 )
...
* feat: introduce @astrojs/rss package!
* feat: add config "site" to env variable
* docs: add @astrojs/rss readme
* chore: changeset
* fix: testing script
* deps: add mocha, chai, chai-promises
* tests: add rss test!
* feat: add canonicalUrl arg
* chore: remove console.log
* fix: remove null check on env (breaks build)
* docs: stray `
* chore: update error message to doc link
* chore: remove getStylesheet
* docs: update stylesheet reference
2022-05-03 18:26:13 -04:00