Flatten version of documentation

This commit is contained in:
Ilya Kuznetsov 2025-02-03 18:02:25 +01:00
parent 2eb9abb5ee
commit 15110753dd
No known key found for this signature in database
GPG Key ID: 91F3DDCF5D21CDDF
4 changed files with 3490 additions and 7216 deletions

View File

@ -15,7 +15,8 @@ func buildMarkdown(nodes []rootNode, outputFile, header string) error {
if node.TopLevel {
m = m.H2(node.Title)
} else {
m = m.H3(node.Title)
// m = m.H3(node.Title)
m = m.H2(node.Title)
}
m = m.LF()

View File

@ -169,7 +169,8 @@ func getAttributes(props, refs map[string]*jsonschema.Schema, ownFields map[stri
}
var reference string
if isReferenceType(v, refs, ownFields) && !circular {
reference = prefix + "." + k
// reference = prefix + "." + k
reference = k
}
attributes = append(attributes, attributeNode{
Title: k,
@ -209,7 +210,8 @@ func extractNodes(prefix string, props, refs map[string]*jsonschema.Schema, ownF
}
v = resolveRefs(v, refs)
if v.Type == "object" || v.Type == "array" {
nodes = append(nodes, rootProp{prefix + "." + k, v, false, isCycleField(k)})
// nodes = append(nodes, rootProp{prefix + "." + k, v, false, isCycleField(k)})
nodes = append(nodes, rootProp{k, v, false, isCycleField(k)})
}
}
return nodes

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff