Skip to content

Commit 0f24fb4

Browse files
enum deprecated style
1 parent 41c9924 commit 0f24fb4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.docfx/template/ManagedReference.extension.js

+10
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,16 @@ function updateTypeModelData(model) {
5858
if (attr.type == 'System.ObsoleteAttribute') {
5959
model.isDeprecated = true;
6060
}
61+
62+
if (model.isEnum && model.syntax?.content) {
63+
for (const content of model.syntax.content) {
64+
let value = new String(content.value);
65+
if (!value || value.search(/\[[\s\r\n]*Obsolete/) < 0)
66+
continue;
67+
68+
content.value = value.replaceAll(/\][\s\r\n]*/, '<br />');
69+
}
70+
}
6171
}
6272
}
6373
}

0 commit comments

Comments
 (0)