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

Docusaurus v3 #5685

Merged
merged 64 commits into from
Aug 7, 2024
Merged

Docusaurus v3 #5685

merged 64 commits into from
Aug 7, 2024

Conversation

JKarlavige
Copy link
Collaborator

@JKarlavige JKarlavige commented Jun 21, 2024

What are you changing in this pull request and why?

Upgrades Docusaurus to latest version (3.4.0). This PR includes:

  • Updating Docusaurus npm package and other required package updates
  • Refactoring markdown files to work with MDX v3
  • Reswizzling customized theme components to get latest versions of components
  • Adjust MDX components as needed

See full Docusaurus upgrade details here

Previews

Verify cards correctly show hoverSnippet frontmatter property if set, and that the full description shows on the card:

Verify page with details component loads without error:

Verify trusted adapters page matches live site after removing MSCallout component which does not exist. This was added in PR #4874:

Fix import for RowsAffected snippet:

Verify FAQs show at the bottom of this page:

Verify snippets still work (first paragraph on the following page):

Verify built-in partials still work:

TODO Before Merge

Notes

Removed the Snapshots/snapshot-target-schema faq from the following pages, as this faq does not exist and is empty on the live site:

With the upgrade, there are a number of warnings in the build logs for broken anchor links. MDX v3 improves the built-in linting. I sorted out all formatting errors causing build failures as part of this PR. I don't see these as a blocker to this PR, as they also exist on the live site. However, these warnings should still be cleaned up at some point. The docs team can now see these broken anchor links and sort out as needed. Example from the log below:

Broken anchor on source page path = /reference/resource-configs/spark-configs:
   -> linking to #databricks-setup (resolved as: /reference/resource-configs/spark-configs#databricks-setup)

Docusaurus provides a command to check for MDX formatting errors as well, which can help when writing content locally: npx docusaurus-mdx-checker

Removed the swizzled CodeBlock MDX component, which we customized (over 3 years ago) to support markdown links within code blocks.

Removed the FAQList custom component as it was causing errors and is not used anywhere on the site.

An additional benefit with the upgrade is it looks like the build times improved. They now take ~3.5-4 minutes to complete, rather than 7-8 minutes.

Copy link

vercel bot commented Jun 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs-getdbt-com ✅ Ready (Inspect) Visit Preview Aug 7, 2024 1:54pm

@wiz-inc-266a8a9c32
Copy link

wiz-inc-266a8a9c32 bot commented Jun 21, 2024

Wiz Scan Summary

IaC Misconfigurations 0C 0H 0M 0L 0I
Vulnerabilities 0C 4H 4M 3L 0I
Sensitive Data 0C 0H 0M 0L 0I
Total 0C 4H 4M 3L 0I
Secrets 0🔑

@github-actions github-actions bot added content Improvements or additions to content developer blog This content fits on the developer blog. guides Knowledge best suited for Guides size: large This change will more than a week to address and might require more than one person labels Jun 21, 2024
@john-rock
Copy link
Contributor

Minor callout, it looks like the blog post titles on the dev blog index have their font size increased from 2rem to 3rem.

Live site on the left, preview on the right.
Developer_Blog___dbt_Developer_Hub_and_Developer_Blog___dbt_Developer_Hub

@john-rock
Copy link
Contributor

The blog cards on the homepage look like they are missing their dates.
dbt_Developer_Hub

Copy link
Contributor

@john-rock john-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went through a ton of pages. All is looking good aside from the two items I called out in comments above. Let me know if you have any questions on those.

@JKarlavige
Copy link
Collaborator Author

@john-rock Nice finds, both of these should now be fixed.

@runleonarun Is there anything else you and the team would like to check with this upgrade before we go live? If not, we can likely go live by tomorrow.

@JKarlavige JKarlavige requested a review from john-rock August 6, 2024 15:23
@runleonarun
Copy link
Collaborator

@JKarlavige It looks good to me! I will approve once I check with the team real quick...

@mirnawong1
Copy link
Contributor

this looks good to me, thank you so very much @JKarlavige and @runleonarun !

Copy link
Collaborator

@runleonarun runleonarun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 it!

Copy link
Contributor

@john-rock john-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@JKarlavige
Copy link
Collaborator Author

Thanks everyone for the review! I will ship it first thing tomorrow morning 🚀

Copy link
Contributor

@nghi-ly nghi-ly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! tysm!! 🙇‍♀️

@JKarlavige JKarlavige merged commit 96f969e into current Aug 7, 2024
10 checks passed
@JKarlavige JKarlavige deleted the docusaurus-v3 branch August 7, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Improvements or additions to content developer blog This content fits on the developer blog. guides Knowledge best suited for Guides size: large This change will more than a week to address and might require more than one person
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants