Ben Holmes
67bb22e5a1
[ci] format
2024-10-15 15:14:01 +00:00
Ben Holmes
925cff31bc
Improved rss readme ( #12157 )
...
* docs: improved rss readme
* chore: changeset
* fix: remove empty title
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
* edit: slash wording
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: installation and use
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: see the guide
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: remove confusing guide link
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: clarify what enclosure is used for
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
* edit: remove description vs. content blurb
* new: expand xmlns guide to explain usage
---------
Co-authored-by: Armand Philippot <git@armand.philippot.eu>
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-10-15 11:13:09 -04:00
Armand Philippot
50dd88bc66
fix(@astrojs/rss): prevent an error when pubDate
is missing ( #12137 )
...
* fix(rss): prevent error when `pubDate` is missing
* docs(rss): switch some RSS items to optional
2024-10-07 11:42:19 -04:00
Armand Philippot
a46839a5c8
docs: update Vite links to use their new domain ( #12117 )
...
* docs: update Vite links to use their new domain
See https://github.com/withastro/docs/issues/9548
* update other links with the new Vite domain
* Create strange-cats-notice.md
---------
Co-authored-by: Erika <3019731+Princesseuh@users.noreply.github.com>
2024-10-03 23:29:52 +02:00
Bjorn Lu
153a5abb90
Remove deprecated features from Astro 3.0 ( #9168 )
2023-11-28 00:44:20 +08:00
Sarah Rainsberger
46d3043a3f
[docs] remove outdated anchor links ( #8941 )
2023-10-28 11:44:09 -03:00
Bjorn Lu
ec7f531682
Fix examples smoke test fail ( #8923 )
2023-10-26 19:13:43 +08:00
Bjorn Lu
cb95aa5f8e
Update rss package to return a response ( #8198 )
2023-08-23 21:09:11 +08:00
Bjorn Lu
732111cdce
Deprecate drafts feature ( #8099 )
...
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2023-08-22 16:11:59 +08:00
Bjorn Lu
8e3cb20b5c
Format markdown files ( #7439 )
...
Co-authored-by: Chris Swithinbank <swithinbank@gmail.com>
2023-06-26 11:34:13 +08:00
Phil Nash
4ea716e569
Adds extra elements to RSS items. ( #6707 )
2023-04-26 13:58:53 +01:00
Tc001
67d3d1d65a
Replace tabs with double spaces ( #6562 )
2023-03-16 15:46:31 +02: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
Ben Smith
081e0a9d20
feat(astro-rss): generate post content in feed ( #5366 )
2022-12-06 18:19:55 -05: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
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