9 Commits

Author SHA1 Message Date
Danil Alexeev
3946ede7aa Replace remaining uses of shorthand codeblock syntax, add CI check 2025-07-25 16:20:16 -04:00
Hugo Locurcio
8a6ad4c926 Replace uses of shorthand codeblock syntax to avoid issues with localization
Previously, many paragraphs in the documentation used `::` at the end of a line
as a replacement for a single colon (and `::` on the following line).
Due to this, the `::` was part of the extracted string for localization.
Weblate also showed a warning about the trailing `::`, as it's not
normally expected to be there.

This change requires translators to revalidate all modified strings.
However, considering many of those have broken code blocks due to translators
replacing `::` with `:`, it can be a good idea.

This also adds documentation writing guidelines for code blocks and admonitions.
This commit does not modify existing admonitions in any way (as this would
lead to a much larger diff, and require more localizable text to be revalidated
by translators).
2025-05-30 02:02:30 +02:00
Vojtech Krajnansky
404a2bc96e Document logical operator support in Expression 2025-02-04 15:36:49 +01:00
Qwertystop
8d1bff6aea Document behavior of modulo operator (#9358)
Different languages and contexts have different default behaviors for modulo
where one or both operands are negative. "The remainder of an integer division"
is underspecified. As such, clarification is in order.

Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2024-07-30 07:38:27 +02:00
A Thousand Ships
bd6cc665a7 Fix incorrect uses of a/an 2024-03-29 15:14:27 +01:00
aXu-AP
81b2cf3563 Point to GlobalScope from Evaluating Expressions tut
Update to 4.x since functions were moved from GDScript to GlobalScope.

Co-Authored-By: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2023-08-24 21:54:18 +03:00
Jcrespo
6865811c81 Update usages of obsolete rad2deg() and deg2rad() in docs
There were 4 pages documentation pages still using deg2rad(),
which have been substituted by deg_to_rad() and the examples
tested against 4.0.X.

There was 1 usage of C# Deg2Rad(), now DegToRad().

Some dependent comments and output have been updated accordingly:
(deg_to_rad() is implemented in the Math core functions, not in
the Expressions class), plus some float precission fixes, at
least on my architecture.

Only one mention of rad2deg() was found in all docs.

Fixes #7247
2023-05-01 12:24:15 +02:00
itsadrago
e9c31d9104 Fix incorrect explanation of successful evaluation in Evaluating expressions (#5424) 2021-12-02 16:56:03 +01:00
Hugo Locurcio
7c2b78e38b Add a page on evaluating expressions using the Expression class 2020-11-25 16:27:41 +01:00