Skip to content

Commit

Permalink
fix: 3rd object support for docs gen
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Jul 22, 2024
1 parent 9fedaca commit 5875cae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion fuji-fabric.wiki
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ private void walk(StringBuilder sb, int level, JsonObject node) {

/* process normal json-element */
if (value.isJsonObject()) {
// note: skip walk
if (keys.contains(key + SKIP_WALK)) {
processJsonPair(sb, node, key, level);
continue;
}

// class documentation
sb.append(getIndent(level + 1)).append("**%s**".formatted(key)).append(System.lineSeparator());
boolean isModule = value.getAsJsonObject().has("enable");
Expand All @@ -130,11 +136,6 @@ private void walk(StringBuilder sb, int level, JsonObject node) {
}
sb.append(getIndent(level + 1)).append(System.lineSeparator());

// note: skip walk
if (keys.contains(key + SKIP_WALK)) {
processJsonPair(sb, node, key, level);
continue;
}

walk(sb, level + 1, (JsonObject) value);
} else {
Expand Down

0 comments on commit 5875cae

Please sign in to comment.