Skip to content

fix(content-blog): temporarily swallow feed mdxToHtml errors + feed refactor - #5753

Merged
slorber merged 4 commits into
mainfrom
slorber/fix-blog-rss-feed-failures
Oct 21, 2021
Merged

slorber merged 4 commits into
mainfrom
slorber/fix-blog-rss-feed-failures

Conversation

@slorber

@slorber slorber commented Oct 20, 2021

Copy link
Copy Markdown
Collaborator

Motivation

Quick hacky fix for site builds failing due to unability to transform mdx blog posts to RSS/Atom feed HTML content.

The problem is explained here, and not simple to solve properly: #5664

Note:

  • We try to generate full HTML content when possible, but fail-safe when we fail: the feed entry remains available, it's just that RSS readers won't display the real blog post content. It was the behavior before and is not a big deal
  • We swallow the error on purpose: I didn't want to introduce a warning nor a plugin option until we understand better how to fix this problem properly => we may add a warning/plugin option later if it is clear we need this

Also, refactor the feed code a bit to make it easier to understand.

Have you read the Contributing Guidelines on pull requests?

yes

Test Plan

tests + preview / dogfood

Related PRs

PR for blog full feed:

#4330

@slorber
slorber requested a review from lex111 as a code owner October 20, 2021 17:28
@facebook-github-bot facebook-github-bot added the CLA Signed Signed Facebook CLA label Oct 20, 2021
@slorber slorber changed the title fix: extract blog feed-related code to feed.ts fix: temporarily swallow feed mdxToHtml errors + feed refactor Oct 20, 2021
@slorber slorber changed the title fix: temporarily swallow feed mdxToHtml errors + feed refactor fix(content-blog): temporarily swallow feed mdxToHtml errors + feed refactor Oct 20, 2021
@slorber slorber added the pr: documentation This PR works on the website or other text documents in the repo. label Oct 20, 2021
@netlify

netlify Bot commented Oct 20, 2021 •

Copy link
Copy Markdown

@github-actions

github-actions Bot commented Oct 20, 2021 •

Copy link
Copy Markdown

⚡️ Lighthouse report for the changes in this PR:

Category Score
🟠 Performance 71
🟢 Accessibility 98
🟢 Best practices 100
🟢 SEO 100
🟢 PWA 95

Lighthouse ran on https://deploy-preview-5753--docusaurus-2.netlify.app/

@github-actions

github-actions Bot commented Oct 20, 2021 •

Copy link
Copy Markdown

Size Change: +707 B (0%)

Total Size: 844 kB

Filename Size Change
website/build/assets/js/main.********.js 425 kB +701 B (0%)
ℹ️ View Unchanged
Filename Size Change
website/.docusaurus/globalData.json 38.1 kB 0 B
website/build/assets/css/styles.********.css 93.8 kB 0 B
website/build/blog/2017/12/14/introducing-docusaurus/index.html 67.7 kB 0 B
website/build/blog/index.html 38.5 kB 0 B
website/build/docs/index.html 45.7 kB +3 B (0%)
website/build/docs/installation/index.html 53.4 kB +3 B (0%)
website/build/index.html 31.2 kB 0 B
website/build/tests/docs/index.html 26.6 kB 0 B
website/build/tests/docs/standalone/index.html 23.3 kB 0 B

compressed-size-action

@slorber
slorber merged commit 29d1335 into main Oct 21, 2021
@slorber
slorber deleted the slorber/fix-blog-rss-feed-failures branch October 21, 2021 09:57
mrizwanashiq pushed a commit to mrizwanashiq/docusaurus that referenced this pull request Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: documentation This PR works on the website or other text documents in the repo.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error reported by "useBaseUrl" during construction Site fails to build production site with blog post that uses require after upgrading to beta 7

2 participants