Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const config = {
trailingSlash: false,
i18n: {
defaultLocale: 'en',
locales: ['en', 'es', 'de', 'fr', 'nl', 'fi', 'zh'],
locales: process.env.NODE_ENV === 'development' ? ['en'] : ['en', 'es', 'de', 'fr', 'nl', 'fi', 'zh'],
localeConfigs: {
en: {
label: 'English',
Expand Down Expand Up @@ -139,7 +139,7 @@ const config = {
appId: '826LUKOV8E',
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

externalUrlRegex: '.*', // disables version filtering
},
announcementBar: {
Expand Down Expand Up @@ -260,10 +260,10 @@ const config = {
position: 'right',
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 ?

type: 'localeDropdown',
position: 'right',
},
}]),
{
href: 'https://github.com/webforj',
position: 'right',
Expand Down