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

fixed->issue:147 search bar missing, reason:themes:[ Array ] in confi… #151

Merged
merged 1 commit into from
Aug 21, 2023
Merged

fixed->issue:147 search bar missing, reason:themes:[ Array ] in confi… #151

merged 1 commit into from
Aug 21, 2023

Conversation

masterghost2002
Copy link
Contributor

fixed->issue:147 search bar missing, reason:themes:[ Array ] in config consisting of localsearch is over written by themes [Array] in extendedConfig

Explanation

All the changes are done in docusaurus.config.js

The reason for the search bar is not visible the, themes array [line no 62] in the config object which again consist a array of "@easyops-cn/docusaurus-search-local" the extension which is responsible for the search bar, is being overwritten by the array in extendedConfig object.

Related issue

fixes#147

What type of PR is this

/fixes
/feature-required

Proposed Changes

Merge the themes array present in the extendedConfig object which overwrites the themes array present in config object.

Live link for testing

Live Testing Link

ScreenShot

Screenshot from 2023-08-18 09-58-41

…g consisting of localsearch is over written by themes [Array] in extendedConfig

Signed-off-by: Rakesh Dhariwal <[email protected]>
Copy link
Collaborator

alabulei1 commented Aug 19, 2023

Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR.


Commit 98e068a473f43added2315205fbced0682e442f8

Key changes:

  • Added the '@docusaurus/theme-mermaid' theme to the 'themes' array in the config.
  • Removed the 'themes' array in the extendedConfig object and added '@docusaurus/theme-mermaid' theme to the 'themes' array in the config.

Potential problems:

  • The patch does not address the issue described in the commit message ("issue:147 search bar missing"). It only adds a theme to the configuration. There might be a misunderstanding or miscommunication regarding the actual problem or solution.
  • The removal of the 'themes' array in the extendedConfig object seems unnecessary and may cause unintended consequences if there are other configurations dependent on it. This change should be reviewed thoroughly to ensure it does not introduce any regressions or unexpected behavior.

@alabulei1
Copy link
Collaborator

Hi @masterghost2002

Thank you for your contributions. Did the themes cause this problem?

@masterghost2002
Copy link
Contributor Author

not actually the theme, in docusaurus.config.js, there is a config object which consist of themes array the place where code for @easyops-cn/docusaurus-search-local is defined, which result in the visibility of search box.

But, when we come down, to the extendedConfig object, it consist of three things, spread config object, the place where our themes (which consist the code for search) array is defined.
a markdown key, and again a themes array which consist of @docusaurus/theme-mermaid, as we are using spread operator on your config object, it placed the themes array in the extendedConfig object, which is later being replaced by the themes array which consist of docusaurus themes

@alabulei1 alabulei1 merged commit b297fb4 into WasmEdge:main Aug 21, 2023
6 checks passed
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