Skip to content

Conversation

@MatthewHawkins
Copy link
Member

No description provided.

Copy link
Member

@hyyan hyyan left a comment

Choose a reason for hiding this comment

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

@MatthewHawkins This doesn't really work for me. Also, in theory, that's exactly what the npm start command is already doing.

https://github.com/webforj/webforj-documentation/blob/main/docs/package.json#L7

apiKey: 'a69d79113b838bfc8490ffb56cef78f2',
indexName: 'umentation-webforj',
contextualSearch: true,
contextualSearch: process.env.NODE_ENV !== 'development',
Copy link
Member

Choose a reason for hiding this comment

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

@MatthewHawkins how does this affect anything

value: '<div class="separator" aria-hidden></div>',
},
{
...(process.env.NODE_ENV === 'development' ? [] : [{
Copy link
Member

Choose a reason for hiding this comment

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

@MatthewHawkins Same , why this change ?

@MatthewHawkins
Copy link
Member Author

@hyyan Agreed - but it seemed that the npm command wasn't respecting the single locale, so I tried this fix. It worked for me when I ran the dev server and let it sit for a few hours, but if it doesn't work for you, I'll go back to the drawing board.

@hyyan hyyan added the status: waiting-for-author Review is done. Waiting for the PR author to apply changes or respond. label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-author Review is done. Waiting for the PR author to apply changes or respond.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Language switches unintentionally when only building docs

3 participants