Skip to content

Conversation

mark-wiemer
Copy link
Member

@mark-wiemer mark-wiemer commented May 12, 2025

PR Checklist

Overview

  • Adds build-with-old to the new site and build-new to the old site to merge the two seamlessly. Also adds http-server for the new docs:preview command that allows devs to test the old site, especially alongside the new site.

  • Pins Node to v20 for LTS support in netlify.toml. Default was v16 for some reason after unpinning entirely. v16 is not supported by Astro.

  • Unpins Ruby versions for the site builder. Ruby was pinned in 2020 but I don't think we need to pin it anymore. It's likely not being used at all as our only Netlify steps are npm scripts.

  • Does not add any sort of banner or link between the two sites, users will have to manually type in mochajs.org/next to see the new site. Ref 📝 Docs: Add a banner/notice to the current site linking to the new site #5304 for that work.

  • Does not remove the netlify.toml or "unused" npm scripts in the docs-next folder. That will be done in a cleanup PR once we're certain those resources are not needed any more.

@mark-wiemer mark-wiemer changed the title docs: Document yml connection to netlify.toml docs: Deploy new site alongside old one May 12, 2025
@mark-wiemer mark-wiemer marked this pull request as draft May 12, 2025 02:54
@mark-wiemer
Copy link
Member Author

Got some problems to solve :)

https://deploy-preview-5360--mocha.netlify.app/next/

image

Only applies to Netlify builds, it looks like
@mark-wiemer
Copy link
Member Author

mark-wiemer commented May 12, 2025

Excellent!

@mark-wiemer mark-wiemer marked this pull request as ready for review May 12, 2025 03:04
@mark-wiemer mark-wiemer requested review from JoshuaKGoldberg and a team May 12, 2025 03:04
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

👏 Yes! Awesome!

I tried this out locally and it works perfectly. Not to jinx it but this might be the first time I can remember side-by-side sites working this well together 😂.

Co-authored-by: Josh Goldberg ✨ <git@joshuakgoldberg.com>
@mark-wiemer mark-wiemer merged commit 6c96545 into mochajs:main May 15, 2025
75 checks passed
@mark-wiemer mark-wiemer deleted the new-site branch May 15, 2025 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🛠 Repo: New site isn't deployed to mochajs.org/next
2 participants