Skip to content

Commit 24b5640

Browse files
devvaannshabose
authored andcommitted
Fix: NotificationUi file broken areas
1 parent 11fa1d0 commit 24b5640

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

build/api-docs-generator.js

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -516,34 +516,6 @@ generateMdxFiles();
516516

517517
console.log("Redundant files generated for conversion process are removed!");
518518

519-
const notificationUIPath = './build/api/widgets/NotificationUI.mdx';
520-
521-
/**
522-
* fix notification UI broken areas
523-
* NotificationUI file has some issues and mdx is not being rendered properly. Fixing it.
524-
* Removing a line where docusaurus throws error
525-
* Removing </br> tag that's within div tag. Only two instances of this in whole project, so fixing it by searching for the exact line instead of writing a logic (as the logic may disturb content from other files)
526-
* @param {string} filePath
527-
*/
528-
function fixNotificationUiFile(filePath) {
529-
try {
530-
// Read the file synchronously
531-
let content = fs.readFileSync(filePath, 'utf8');
532-
533-
// Fix notification UI broken areas
534-
content = content.replace('ame="badge badge--info margin-left--sm">static</span><br/><a href="#done">done</a><span className="badge badge--info margin-left--sm">static</span></div></div>\n</div>', '');
535-
536-
// Write the file synchronously
537-
fs.writeFileSync(filePath, content, 'utf8');
538-
539-
console.log("Successfully fixed the issues inside notificationUI file");
540-
} catch (err) {
541-
console.error('Error while fixing notificationUI file', err);
542-
}
543-
}
544-
545-
fixNotificationUiFile(notificationUIPath);
546-
547519

548520
/**
549521
* Moves all MDX files and subfolders to a specified destination folder.

src/widgets/NotificationUI.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ define(function (require, exports, module) {
9494
* This is an instance of the notification returned by the `createFromTemplate` call. The object can be used to
9595
* control the created notification. See Notification docs below.
9696
* @type {Object}
97-
* @name Notification
9897
*/
9998

10099
/**

0 commit comments

Comments
 (0)