From 7ce7b6326f6677204bfd2e64617418e83dd913fa Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 6 Jul 2025 04:59:57 -0700 Subject: [PATCH 1/2] use required properties in intro --- src/guide/introduction.mdx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/guide/introduction.mdx b/src/guide/introduction.mdx index 305e76c..77b6654 100644 --- a/src/guide/introduction.mdx +++ b/src/guide/introduction.mdx @@ -213,7 +213,7 @@ import QtQuick @@Quickshell.PanelWindow { // the screen from the screens list will be injected into this // property - property var modelData + required property var modelData // we can then set the window's screen to the injected property screen: modelData @@ -280,7 +280,7 @@ import QtQuick delegate: @@QtQml.Component { @@Quickshell.PanelWindow { - property var modelData + required property var modelData screen: modelData anchors { @@ -359,7 +359,7 @@ import QtQuick delegate: @@QtQml.Component { @@Quickshell.PanelWindow { - property var modelData + required property var modelData screen: modelData anchors { @@ -429,7 +429,7 @@ import QtQuick model: Quickshell.screens @@Quickshell.PanelWindow { - property var modelData + required property var modelData screen: modelData anchors { @@ -496,7 +496,7 @@ import QtQuick model: Quickshell.screens @@Quickshell.PanelWindow { - property var modelData + required property var modelData screen: modelData anchors { @@ -574,7 +574,7 @@ import QtQuick model: Quickshell.screens @@Quickshell.PanelWindow { - property var modelData + required property var modelData screen: modelData anchors { @@ -658,7 +658,7 @@ import Quickshell model: Quickshell.screens @@Quickshell.PanelWindow { - property var modelData + required property var modelData screen: modelData anchors { @@ -745,7 +745,7 @@ import Quickshell model: Quickshell.screens @@Quickshell.PanelWindow { - property var modelData + required property var modelData screen: modelData anchors { From c41e51e0f3fc620a15be9d236a8e3720969f4d08 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sun, 6 Jul 2025 05:00:11 -0700 Subject: [PATCH 2/2] add language reference headers to type pages for members --- src/pages/docs/types/[type]/[name].astro | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/pages/docs/types/[type]/[name].astro b/src/pages/docs/types/[type]/[name].astro index 97c656f..99a50b4 100644 --- a/src/pages/docs/types/[type]/[name].astro +++ b/src/pages/docs/types/[type]/[name].astro @@ -83,29 +83,33 @@ const details = data.details {details ? : ({data.description})} - { data.properties && propsKeys ? ( + { data.properties && propsKeys && propsKeys.length > 0 && ( +

Properties [?]

- ): null} - { data.functions && data.functions.length > 0 ? ( + )} + { data.functions && data.functions.length > 0 && ( +

Functions [?]

- ): null} - { data.signals && signalKeys ? ( + )} + { data.signals && signalKeys && signalKeys.length > 0 && ( +

Signals [?]

- ):null} - { data.variants && variantKeys ? ( + )} + { data.variants && variantKeys && variantKeys.length > 0 && ( +

Variants

- ):null} + )} ) : null }