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

Refactor markFallbackNavEntries dir #2256

Merged
merged 2 commits into from
Dec 30, 2022
Merged

Refactor markFallbackNavEntries dir #2256

merged 2 commits into from
Dec 30, 2022

Conversation

bluwy
Copy link
Member

@bluwy bluwy commented Dec 29, 2022

What kind of changes does this PR include?

  • Changes to the docs site code

Description

Refactor markFallbackNavEntries's way of deriving the lang directory. The assumption of the function being compiled into dist/entry.mjs isn't guaranteed, as it could also be chunked into the dist/chunks/ directory, making the path incorrect. The latter happens for Rollup 3.

This fixes to derive from process.cwd() instead. This unblocks withastro/astro#5685

@netlify
Copy link

netlify bot commented Dec 29, 2022

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 64e56ad
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/63adb791c29c4900085ed7a5
😎 Deploy Preview https://deploy-preview-2256--astro-docs-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

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

Tested the non-English sections of the preview deploy and fallback indicators are appearing as expected, so LGTM 👍

@bluwy bluwy merged commit 0afeded into main Dec 30, 2022
@bluwy bluwy deleted the fix-markdown-readdir branch December 30, 2022 03:38
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.

2 participants