-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[LHCI] [WIP] Migrate to MDX v2 and gatsby-plugin-mdx v4 to resolve mdx import app bundle issue #4426
Closed
Closed
[LHCI] [WIP] Migrate to MDX v2 and gatsby-plugin-mdx v4 to resolve mdx import app bundle issue #4426
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
46bba6c
added more shortcodes for mdx files to dry up code
randychilau f24179f
add ChapterStyle shortcode
randychilau c962364
removed imports that have become shortcodes
randychilau 44b2cb6
added gatsby-plugin-mdx v4 migration for mdx2
randychilau ba0c632
add __contentFilePath for mdx2 migration
randychilau bd8db40
updated gql query and added __contentFilePath
randychilau 66fbee7
mdx2 migration, replace html with excerpt for feed
randychilau 9b36fa1
mdx2 migrate update templates to use children
randychilau 155aece
mdx2 migration updated sections to use children
randychilau 9ffc774
mdx2 migration update file to be compatible
randychilau c6e6ed7
mdx2 migration - need to fix import SVG component
randychilau f20da84
mdx2: added "published: true" to include in query
randychilau 627d9f0
mdx2 - fixed misplaced slug query property
randychilau be1a997
mdx2 - empty tempate mdx file moved to discuss
randychilau c64319c
mdx2 - adding eslint for mdx files
randychilau 499c905
mdx2 - empty mdx file issue
randychilau 07acd07
mdx2 - update to clear react html errors
randychilau b0fdd64
mdx2-updated .mdx to be compatible g-mdx-plugin v4
randychilau 8d348d1
mdx2 - correct resourceswrapper tag
randychilau 8e08fde
lh updates to about page with loadable, useInView
randychilau c2babb1
lh changes to layout and navigation
randychilau 29a5e95
Merge branch 'master' into mdx-migrate1
randychilau d96f140
eslint corrections to files from merge conflicts
randychilau 3fe395b
added memory setting to CI build preview setting
randychilau f615976
update mdx page to resolve error
randychilau 4aa7062
resolve mdx file build issue with reverted version
randychilau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 18 additions & 25 deletions
43
...tering-service-meshes-for-developers/advance-concepts-of-service-mesh/index.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,28 @@ | ||
--- | ||
docType: "Course" | ||
title: "Course" | ||
description: "A course which teaches advanced concepts of service meshes and how to use them in an application effectively." | ||
courseTitle: "Advance Concepts of Service Meshes - Hands On" | ||
docType: Course | ||
title: Course | ||
description: A course which teaches advanced concepts of service meshes and how | ||
to use them in an application effectively. | ||
courseTitle: Advance Concepts of Service Meshes - Hands On | ||
themeColor: "#466BB0" | ||
order: 2 | ||
videos: 3 | ||
lectures: 8 | ||
cardImage: "../../../src/assets/images/service-mesh-icons/istio-white.svg" | ||
cardImage: ../../../src/assets/images/service-mesh-icons/istio-white.svg | ||
meshesYouLearn: | ||
[ | ||
{ | ||
imagepath: "../../../src/assets/images/service-mesh-icons/istio.svg", | ||
name: "Istio", | ||
}, | ||
{ | ||
imagepath: "../../../src/assets/images/service-mesh-icons/linkerd.webp", | ||
name: "Linkerd", | ||
} | ||
] | ||
- imagepath: ../../../src/assets/images/service-mesh-icons/istio.svg | ||
name: Istio | ||
- imagepath: ../../../src/assets/images/service-mesh-icons/linkerd.webp | ||
name: Linkerd | ||
toc: | ||
[ | ||
'getting-started', | ||
'deploy-an-application', | ||
'expose-services', | ||
'observability', | ||
'traffic-management', | ||
'service-security-capabilities', | ||
'webassembly-and-intelligent-data-planes', | ||
'conclusion', | ||
] | ||
- getting-started | ||
- deploy-an-application | ||
- expose-services | ||
- observability | ||
- traffic-management | ||
- service-security-capabilities | ||
- webassembly-and-intelligent-data-planes | ||
- conclusion | ||
--- | ||
|
||
Chapters available |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any specific reason for these overrides?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HI @Nikhil-Ladha,
I am not familiar with the interactions of eslint, vscode, and using multiple plugins.
I believe the MDX eslint plugin to be helpful in creating/updating mdx files to be compatible with MDX v2, but I was encountering an issue where it seemed like rules from other
extended
plugins, were not allowing commits/saves or were reformatting the mdx files on save (since I added the file type to thechecklint
command).Please let me know if there is an issue with the configuration or any other thoughts on how to have the .mdx files only get linted by the plugin.
Do .mdx files currently get linted or checked for MDX v1 compatibility in the current workflow?
Cheers,
Randy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, and I doubt that happens as of now.
While commenting, I didn't notice that the override was for
.md, .mdx
files only. So, this should be fine.However, we should enable some things in the lint like: