You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@naymurdev
I initially planned to normalize and update docsJson, but it turned out that docsJson was not needed at all.
While strengthening typing, I introduced a COMPONENT_KEY constant for componentName. However, due to serialization issues, I had to use JSON.parse(JSON.stringify()) as a workaround. This issue will be addressed in the next PR.
Ah, and additionally, I noticed that SpecialComponents and MainComponents are not actually merged into AllComponents.
This is also something I plan to improve. From what I’ve seen so far, aside from the sidebar structure, it should be fine to merge both into AllComponents.
@Yeom-JinHo thanks man, I really want to remove everything and want to have only one component for getting preview, code and also want to use in search, not-found reference
lemme review ur PR
This file contains hidden or 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
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.
#57
Description
This PR migrates the component data source from
dataArraytoAllComponentsto fix consistency issues and centralize configuration.Changes
dataArrayimports withAllComponentsfrom the docs config.code-preview,drawer-code-preview, andiframe-component-previewnow read from a single, unified data source.next.config.tsaccordingly.Motivation