From 94fc2efaa28ff5130c5ba63f536741306db3cc92 Mon Sep 17 00:00:00 2001 From: skyace65 Date: Sat, 19 Jul 2025 22:02:46 -0400 Subject: [PATCH] Fix spinbox formatting to fix linking --- doc/classes/SpinBox.xml | 2 +- doc/tools/make_rst.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/classes/SpinBox.xml b/doc/classes/SpinBox.xml index c5a39741c6..ff1bfe1cd8 100644 --- a/doc/classes/SpinBox.xml +++ b/doc/classes/SpinBox.xml @@ -51,7 +51,7 @@ If not [code]0[/code], sets the step when interacting with the arrow buttons of the [SpinBox]. - [b]Note:[/b] [member Range.value] will still be rounded to a multiple of [member step]. + [b]Note:[/b] [member Range.value] will still be rounded to a multiple of [member Range.step]. If [code]true[/code], the [SpinBox] will be editable. Otherwise, it will be read only. diff --git a/doc/tools/make_rst.py b/doc/tools/make_rst.py index 56fbfec592..1b2b3e2afa 100755 --- a/doc/tools/make_rst.py +++ b/doc/tools/make_rst.py @@ -2151,6 +2151,12 @@ def format_text_block( state, ) + elif class_def.properties[target_name].overrides is not None: + print_error( + f'{state.current_class}.xml: Invalid member reference "{link_target}" in {context_name}. The reference must point to the original definition, not to the override.', + state, + ) + elif tag_state.name == "signal" and target_name not in class_def.signals: print_error( f'{state.current_class}.xml: Unresolved signal reference "{link_target}" in {context_name}.',