Skip to content

Commit 254e963

Browse files
authored
fix(build): fix cxm top bar menu (#5149)
* fix(build): fix cxm top bar menu * fix(build): fix cxm top bar menu
1 parent 3153dfe commit 254e963

8 files changed

Lines changed: 34 additions & 34 deletions

File tree

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ Please include a short summary of the changes and what is the purpose of the PR.
1010
- [ ] 26.10.x
1111
- [ ] Cloud
1212
- [ ] Monitoring Connectors
13-
- [ ] DEM
13+
- [ ] Experience Monitoring
1414
- [ ] Log Management

.github/workflows/documentation.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
build_next_version: ${{ steps.filters.outputs.build_next_version }}
2828
build_pp: ${{ steps.filters.outputs.build_pp }}
2929
build_cloud: ${{ steps.filters.outputs.build_cloud }}
30-
build_dem: ${{ steps.filters.outputs.build_dem }}
30+
build_cxm: ${{ steps.filters.outputs.build_cxm }}
3131
build_logmanagement: ${{ steps.filters.outputs.build_logmanagement }}
3232

3333
steps:
@@ -55,9 +55,9 @@ jobs:
5555
cloud:
5656
- 'cloud/**'
5757
- 'i18n/**/docusaurus-plugin-content-docs-cloud/**'
58-
dem:
59-
- 'dem/**'
60-
- 'i18n/**/docusaurus-plugin-content-docs-dem/**'
58+
cxm:
59+
- 'cxm/**'
60+
- 'i18n/**/docusaurus-plugin-content-docs-cxm/**'
6161
logmanagement:
6262
- 'logmanagement/**'
6363
- 'i18n/**/docusaurus-plugin-content-docs-logmanagement/**'
@@ -82,7 +82,7 @@ jobs:
8282
}
8383
let build_pp = '1';
8484
let build_cloud = '1';
85-
let build_dem = '1';
85+
let build_cxm = '1';
8686
let build_logmanagement = '1';
8787
8888
if ('${{ github.event_name }}' === 'pull_request' && ${{ steps.changes.outputs.global }} === false) {
@@ -94,8 +94,8 @@ jobs:
9494
build_cloud = '0';
9595
}
9696
97-
if (${{ steps.changes.outputs.versions }} === false && ${{ steps.changes.outputs.dem }} === false) {
98-
build_dem = '0';
97+
if (${{ steps.changes.outputs.versions }} === false && ${{ steps.changes.outputs.cxm }} === false) {
98+
build_cxm = '0';
9999
}
100100
101101
if (${{ steps.changes.outputs.versions }} === false && ${{ steps.changes.outputs.logmanagement }} === false) {
@@ -121,7 +121,7 @@ jobs:
121121
122122
if (
123123
build_versions.length === 0 &&
124-
(build_pp === '1' || build_cloud === '1' || build_dem === '1' || build_logmanagement === '1')
124+
(build_pp === '1' || build_cloud === '1' || build_cxm === '1' || build_logmanagement === '1')
125125
) {
126126
build_versions.push(available_versions[0]);
127127
}
@@ -131,7 +131,7 @@ jobs:
131131
console.log(`next version will${build_next_version === null ? ' not' : ''} be built`);
132132
console.log(`pp section will${build_pp === '0' ? ' not' : ''} be built`);
133133
console.log(`cloud section will${build_cloud === '0' ? ' not' : ''} be built`);
134-
console.log(`dem section will${build_dem === '0' ? ' not' : ''} be built`);
134+
console.log(`cxm section will${build_cxm === '0' ? ' not' : ''} be built`);
135135
console.log(`logmanagement section will${build_logmanagement === '0' ? ' not' : ''} be built`);
136136
137137
const build_environments = [];
@@ -147,7 +147,7 @@ jobs:
147147
core.exportVariable('build_next_version', build_next_version);
148148
core.exportVariable('build_pp', build_pp);
149149
core.exportVariable('build_cloud', build_cloud);
150-
core.exportVariable('build_dem', build_dem);
150+
core.exportVariable('build_cxm', build_cxm);
151151
core.exportVariable('build_logmanagement', build_logmanagement);
152152
153153
- name: Manage versions to build
@@ -167,7 +167,7 @@ jobs:
167167
core.exportVariable('build_next_version', require('./nextVersion.json').version);
168168
core.exportVariable('build_pp', '1');
169169
core.exportVariable('build_cloud', '1');
170-
core.exportVariable('build_dem', '1');
170+
core.exportVariable('build_cxm', '1');
171171
core.exportVariable('build_logmanagement', '1');
172172
173173
- name: Manage versions to build
@@ -180,7 +180,7 @@ jobs:
180180
core.setOutput('build_next_version', '${{ env.build_next_version }}');
181181
core.setOutput('build_pp', '${{ env.build_pp }}');
182182
core.setOutput('build_cloud', '${{ env.build_cloud }}');
183-
core.setOutput('build_dem', '${{ env.build_dem }}');
183+
core.setOutput('build_cxm', '${{ env.build_cxm }}');
184184
core.setOutput('build_logmanagement', '${{ env.build_logmanagement }}');
185185
186186
build:
@@ -197,7 +197,7 @@ jobs:
197197
next_version: ${{ needs.get-versions.outputs.build_next_version }}
198198
pp: ${{ needs.get-versions.outputs.build_pp }}
199199
cloud: ${{ needs.get-versions.outputs.build_cloud }}
200-
dem: ${{ needs.get-versions.outputs.build_dem }}
200+
cxm: ${{ needs.get-versions.outputs.build_cxm }}
201201
logmanagement: ${{ needs.get-versions.outputs.build_logmanagement }}
202202

203203
name: Build ${{ matrix.environment }}
@@ -231,7 +231,7 @@ jobs:
231231
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
232232
PP: ${{ matrix.pp }}
233233
CLOUD: ${{ matrix.cloud }}
234-
DEM: ${{ matrix.dem }}
234+
CXM: ${{ matrix.cxm }}
235235
LOGMANAGEMENT: ${{ matrix.logmanagement }}
236236
VERSIONS: ${{ matrix.environment == 'staging' && matrix.versions || matrix.next_version }}
237237
BASE_URL: ${{ github.event_name == 'pull_request' && format('/previews/pr-{0}/{1}', github.event.pull_request.number, matrix.environment) || '' }}
File renamed without changes.

docusaurus.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const cxm = (() => {
4343
if (archivedVersion) {
4444
return false;
4545
}
46-
if (process.env.DEM !== undefined && process.env.DEM === '0') {
46+
if (process.env.CXM !== undefined && process.env.CXM === '0') {
4747
return false;
4848
}
4949
return true;
@@ -280,7 +280,7 @@ const config = {
280280
id: 'cxm',
281281
path: 'cxm',
282282
routeBasePath: 'cxm',
283-
sidebarPath: './cxm/sidebarsDem.js',
283+
sidebarPath: './cxm/sidebarsCxm.js',
284284
breadcrumbs: true,
285285
editUrl: 'https://github.com/centreon/centreon-documentation/edit/staging/',
286286
editLocalizedFiles: true,

i18n/fr/docusaurus-plugin-content-pages/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const links = {
3131

3232
const cards = [
3333
{
34-
title: "Centreon Infra Monitoring",
34+
title: "Infra Monitoring",
3535
href: "docs/getting-started/welcome/",
3636
links: [
3737
{
@@ -49,32 +49,32 @@ const cards = [
4949
],
5050
},
5151
{
52-
title: "Centreon Experience Monitoring",
53-
href: "dem/getting-started/welcome/",
52+
title: "Experience Monitoring",
53+
href: "cxm/getting-started/welcome/",
5454
links: [
5555
{
5656
label: "Démarrer avec Centreon Digital Experience Monitoring",
57-
href: "dem/getting-started/welcome/",
57+
href: "cxm/getting-started/welcome/",
5858
},
5959
{
6060
label: "Le Monitoring Synthétique (STM)",
61-
href: "dem/getting-started/synthetic-monitoring/",
61+
href: "cxm/getting-started/synthetic-monitoring/",
6262
},
6363
{
6464
label: "Le Real User Monitoring (RUM)",
65-
href: "dem/getting-started/real-user-monitoring/",
65+
href: "cxm/getting-started/real-user-monitoring/",
6666
},
6767
{
6868
label: "Sobriété numérique",
69-
href: "dem/category/digital-sobriety/"
69+
href: "cxm/category/digital-sobriety/"
7070
},{
71-
label: "Notes de release DEM",
72-
href: "dem/release-notes/"
71+
label: "Notes de release CXM",
72+
href: "cxm/release-notes/"
7373
},
7474
],
7575
},
7676
{
77-
title: "Centreon Log Management",
77+
title: "Log Management",
7878
href: "logmanagement/getting-started/welcome/",
7979
links: [
8080
{

src/theme/DocBreadcrumbs/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ export default function DocBreadcrumbs() {
7777
} else if (docSection === 'cloud') {
7878
homePath = '/cloud/getting-started/welcome';
7979
homeLabel = 'Infra Monitoring Cloud';
80-
} else if (docSection === 'dem') {
81-
homePath = '/dem/getting-started/welcome';
82-
homeLabel = 'Centreon DEM';
80+
} else if (docSection === 'cxm') {
81+
homePath = '/cxm/getting-started/welcome';
82+
homeLabel = 'Centreon Experience Monitoring';
8383
} else if (docSection === 'logmanagement') {
8484
homePath = '/logmanagement/getting-started/welcome';
8585
homeLabel = 'Centreon Log Management BETA';

src/theme/Navbar/Content/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export default function NavbarContent(): ReactNode {
8282
|| ('to' in item && item.to && (item.to.includes('pp') || item.to.includes('cloud')))
8383
);
8484
}
85-
if (pluginId === 'dem') {
86-
return 'to' in item && item.to && item.to.includes('dem');
85+
if (pluginId === 'cxm') {
86+
return 'to' in item && item.to && item.to.includes('cxm');
8787
}
8888
if (pluginId === 'logmanagement') {
8989
return 'to' in item && item.to && item.to.includes('log');

src/theme/NavbarItem/DocsDropdownNavbarItem/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ export default function DocsDropdownNavbarItem({items, ...props}: {items: Navbar
2424
initials: 'LM',
2525
color: '#611485ff'
2626
});
27-
} else if ('to' in item && item.to && item.to.includes('dem')) {
27+
} else if ('to' in item && item.to && item.to.includes('cxm')) {
2828
sections.push({
2929
...item,
30-
label: 'Digital Experience Monitoring',
30+
label: 'Experience Monitoring',
3131
initials: 'DM',
3232
color: '#259788ff'
3333
});

0 commit comments

Comments
 (0)