From 606f0e496ec51932e12a9e8f512cced5365d66b9 Mon Sep 17 00:00:00 2001 From: Krzysztof Wolicki Date: Sun, 22 Oct 2023 16:15:00 +0200 Subject: [PATCH] autodoc: Display type kinds for containers (#17667) --- lib/docs/main.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/docs/main.js b/lib/docs/main.js index 8932674f8d..e0f9b93ed9 100644 --- a/lib/docs/main.js +++ b/lib/docs/main.js @@ -3539,6 +3539,13 @@ Happy writing! } domSectTests.classList.remove("hidden"); } + + if (container.kind !== typeKinds.Struct || containerNode.fields.length > 0) { + domHdrName.innerHTML = "
" +
+        zigAnalysis.typeKinds[container.kind] +
+        "
"; + domHdrName.classList.remove("hidden"); + } } function operatorCompare(a, b) {