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

[Lexical][Meta] Add meta intern static docs config #6302

Merged
merged 7 commits into from
Jun 13, 2024

Conversation

Sahejkm
Copy link
Contributor

@Sahejkm Sahejkm commented Jun 12, 2024

WHAT

  • Add meta intern static docs config
  • Fix broken JSX rendering in MD files caused due to preprocessor added for markdown validations

WHY

  • needed to sync and build intern static docs in meta for lexical

Copy link

vercel bot commented Jun 12, 2024

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

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2024 4:06am
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2024 4:06am

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 12, 2024
Copy link

github-actions bot commented Jun 12, 2024

size-limit report 📦

Path Size
lexical - cjs 28.31 KB (0%)
lexical - esm 28.13 KB (0%)
@lexical/rich-text - cjs 36.71 KB (0%)
@lexical/rich-text - esm 28.09 KB (0%)
@lexical/plain-text - cjs 35.4 KB (0%)
@lexical/plain-text - esm 25.33 KB (0%)
@lexical/react - cjs 38.59 KB (0%)
@lexical/react - esm 29.14 KB (0%)

Comment on lines 228 to 236
markdown: {
format: 'md',
preprocessor: ({fileContent}) =>
fileContent.replaceAll(
'https://stackblitz.com/github/facebook/lexical/tree/main/',
STACKBLITZ_PREFIX,
),
},

Copy link
Contributor Author

@Sahejkm Sahejkm Jun 12, 2024

Choose a reason for hiding this comment

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

this recent change is breaking JSX rendering in MD files and should be revisited later.

Copy link
Collaborator

Choose a reason for hiding this comment

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

have you tried just removing the format: 'md',?

Comment on lines 228 to 236
markdown: {
format: 'md',
preprocessor: ({fileContent}) =>
fileContent.replaceAll(
'https://stackblitz.com/github/facebook/lexical/tree/main/',
STACKBLITZ_PREFIX,
),
},

Copy link
Collaborator

Choose a reason for hiding this comment

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

it looks like this update to docusaurus-plugin-internaldocs-fb is switching from a markdown to mdx, so removing that configuration override should resolve the problem without throwing away the preprocessor which is useful for testing new examples in preview environments.

  markdown: {
    preprocessor: ({fileContent}) =>
      fileContent.replaceAll(
        'https://stackblitz.com/github/facebook/lexical/tree/main/',
        STACKBLITZ_PREFIX,
      ),
  },

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this does the job indeed. Thanks @etrepum Bob!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants