Skip to content

Commit

Permalink
enum is nested
Browse files Browse the repository at this point in the history
  • Loading branch information
sator-imaging authored Jan 13, 2024
1 parent 7ba98f0 commit 8491d08
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .docfx/template/ManagedReference.extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,18 @@ function updateTypeModelData(model) {
}

// enum
if (model.isEnum && model.isDeprecated && model.syntax?.content) {
for (const content of model.syntax.content) {
content.value = content.value.replaceAll(/\][\s\r\n\\rn]*/, '<br />');
content.value = 'DEBUG: ' + content.value;
if (model.isEnum && model.isDeprecated && model.children) {
for (const child in model.children) {
if (!child.children)
continue;
for (const grand of child.children) {
if (!grand.syntax?.content)
continue;
for (const content of grand.syntax.content) {
content.value = content.value.replaceAll(/\][\s\r\n\\rn]*/, '<br />');
content.value = 'DEBUG: ' + content.value;
}
}
}
}

Expand Down

0 comments on commit 8491d08

Please sign in to comment.