100 Commits

Author SHA1 Message Date
Hugo Locurcio
37cf368f44 Clarify what is defined by the parent in Scene organization
"Parent-defined" could be understood as the method or signal from
the parent being called, but the parent defines just the name
of the method or signal, instead of the method body.
2025-12-10 19:58:13 +01:00
Nadav
21f4fb2b64 Add exclamation point to example (#11183)
* add exclamation point to example
2025-11-27 21:27:17 -05:00
Jamon Holmgren
0a776471f3 Logic Preferences: Clarifications and grammatical improvements
The [Logic Preferences](https://docs.godotengine.org/en/4.5/tutorials/best_practices/logic_preferences.html) doc is useful, but I noticed some grammatical issues and confusing phrasing (possibly from a non-native English speaker author). This is a small improvement to that doc.
2025-11-16 13:00:45 -08:00
Hugo Locurcio
b3cbe5f777 Remove old Godot version references to simplify documentation
This follows the documentation writing guidelines, specifically
the "When to refer to a specific Godot version" section.

This also removes warning blocks for a known issue that was resolved in Godot 4.5.
2025-10-07 19:01:12 +02:00
Hana - Piralein
cd3e94b4a1 add missing brackets in c sharp code 2025-07-14 20:29:57 +02:00
A Thousand Ships
92cd36b50e Various grammar and spelling fixes 2025-06-23 16:37:26 +02:00
brian ridley
8db6545d46 Fix type of 'what' parameter to _Notifications In C# usage example (#11008)
* Fix type of 'what' parameter to _Notifications In C# usage example
2025-06-15 10:01:24 -04:00
Jaime Crespo
06dbbeb15e Remove warning on build caused by non-existent pygment
At #10857 a gitignore codeblock was added. Addition seems correct,
but a pygment formatting was defined as:

.. code-block:: gitignore

No such a pygment exists, and although there is an aditional
package that could parse git-related files, we chose to
not add an extra package dependency for building the docs.

Fallback to unixconfig instead.

Closes #10989
2025-06-03 23:23:57 +02: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
Jayden Sipe
398a4dbee3 Add Git LFS section 2025-04-14 18:43:23 -04:00
Salty Grndpa
6f515e993b Update tutorials/best_practices/data_preferences.rst
remove unnecessary ';'

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
2025-03-27 13:48:12 +01:00
Salty Grndpa
a68d61590f Update data_preferences.rst
Change the `OrderedHashMap` to `HashMap` to remove potential confusion and keep docs in sync with the actual implementation
2025-03-27 13:05:06 +01:00
Max Hilbrunner
4b4e8518a7 Merge pull request #10370 from tetrapod00/standardize-header-the-rest
Standardize RST header syntax
2025-01-02 12:17:38 +01:00
Fabrizio Casati
c73a7ac670 Fix layout issue in godot_notifications.rst
There is a layout issue in `godot_notifications.rst`, due to inline code marker not working properly within bold text.
2024-12-30 00:32:32 +01:00
tetrapod00
c4d3aa134a Standardize RST header syntax 2024-12-29 13:44:09 -08:00
Raul Santos
cea78730d0 [.NET] Use collection expressions
As of C# 12 we can now use collection expressions to reduce some boilerplate when initializing collections.
2024-12-21 03:38:42 +01:00
tetrapod00
51a9199a92 Mention exception to setting values before adding to tree 2024-12-17 17:24:40 -08:00
Max Hilbrunner
d0d797ccbe Merge pull request #9837 from dementive/best-practices-cpp
Add GDExtension C++ snippets to tutorials/best_practices
2024-11-05 00:41:54 +01:00
tetrapod00
451649ddb6 Remove reference to 3.1 as a minimum version 2024-10-19 21:32:16 -07:00
dementive
de7b67de64 Add C++ snippets to tutorials/best_practices 2024-10-15 13:49:36 -04:00
Anaclecio Brederodes
c73450256a Correct "ConnectionCheck" return type
It was marked as "void" when it should be "bool".
2024-09-03 08:58:59 -03:00
Lukas Fletcher
118408e68d Update animations text in data_preferences.rst
Fix grammar in one sentence
Add reference to mentioned node
2024-08-25 18:28:39 +02:00
Lukas Fletcher
37e549eb3f remove article before plural noun from autoloads_versus_internal_nodes.rst autoloads_versus_internal_nodes.rst
remove 'a' from "share a variables"
2024-08-24 20:21:01 +02:00
Max Hilbrunner
2886f9b8b6 Merge pull request #9642 from Incognito357/Incognito357-update-docs-scene_organization
Update scene_organization.rst
2024-08-02 03:29:57 +02:00
skyace65
9050e076e7 Update docs for new TileMapLayer node 2024-08-01 07:06:12 -04:00
Jason
750879c632 Update scene_organization.rst
Rewrote to use active voice. Reworded some sections for grammar, clarity, or removal of banned words
2024-07-23 21:56:55 -04:00
Hana - Piralein
3e2a8f6f7c Update outdated annotation and setget syntax
Co-Authored-By: PoolloverNathan <24194027+PoolloverNathan@users.noreply.github.com>
Co-Authored-By: Solor Vox <1246172+solorvox@users.noreply.github.com>
2024-06-27 22:13:37 +02:00
TheCool
05efb4c9cf Update scene_organization.rst 2024-06-21 00:10:38 -07:00
Angelo Statescu
e4bd774db3 Fixed a typo in node_alternatives.rst
Fixed a small typo in best_practices/node_alternatives
2024-04-29 21:30:58 +03:00
melquiadess
dbe3a88377 Fix various minor typos 2024-04-20 16:41:23 +01:00
dawei-wang
1677faab23 Update Connect method example (#9202)
Update Connect method example
2024-04-10 14:04:35 +02:00
0WN463
76e76e2a25 Update data_preferences.rst
Correct dictionary re-allocation from "quadratic" to "exponential"
2024-02-15 23:58:28 +08:00
Hugo Locurcio
95fb178429 Add support for user-provided comments with Giscus
This allows users to leave comments on pages that don't have
`:allow_comments: False` somewhere in the page's source.
Both manual and class reference pages can receive comments.
Index pages cannot have comments, as discussion should occur on "leaf" pages.

GitHub Discussions is used as a backend on the same repository. This means
that Discussions *must* be enabled on godotengine/godot-docs before this
commit is merged to `master`. Users can choose to use the "Custom" watch
mode if they don't want to get notifications for discussion updates,
but still get notifications for issue and pull request updates.

User comments are intended to be used for the following purposes:

- Add a clarification or correct something in the documentation,
  without having to open a pull request. Contributors are encouraged to
  take a look at discussions from time to time, and see if there's information
  worth incorporating in the pages themselves. Don't forget to reply to
  the comment when doing so :)
- Mention a workaround for a common issue.
- Link to useful third-party resources that are relevant to the current page,
  such as tutorials or add-ons.

User comments should *not* be used for technical support. Other community
platforms should be used for that.

Page-to-discussion matching is done using the `pagename` Sphinx variable,
which is independent of the Godot version and documentation language.
Being independent of the Godot version allows keeping old comments
when the Godot version changes, while also allowing users from `/stable`
and `/4.1` to "see" each other in discussions.

See https://giscus.app for more information.
2024-01-11 17:51:53 +01:00
Lyric Moysey-Rubin
c08a1a89ac Fix export annotation being formatted as Godot 3.
While browsing the docs, I noticed that there was a bit of code obviously misformatted for Godot 4. Fixed it, hopefully.
2024-01-03 01:07:33 -08:00
Software2
59e0774454 Remove out of date warning from version_control_systems.rst
The plugin in mention has been updated to work with Godot 4.1 an later.
https://github.com/godotengine/godot-git-plugin/releases/tag/v3.1.0
2023-12-17 23:46:43 -08:00
Michael Gundlach
79863df05d Clarify explanation of property initialization.
The previous text implied (at least to me) that there was something
special in Godot called an "init assignment value", and that there was
special logic determining which kind of assignment was used.  In
reality, nothing special is happening: the property is initialized, then
the constructor may set the value, then exports may as well.

I also harmonized the Godot and C# code samples, rather than expecting
the user to read both in order.

Frankly I almost feel like this would be clearer if the entire section
were simply deleted, but I wasn't sure if that would be accepted.
2023-11-18 10:39:06 -05:00
Yuri Sizov
cd92be066d Update references to private class methods across the docs 2023-11-10 16:06:36 +01:00
kleonc
00a296a7f0 Fix incorrect C# example using _GetConfigurationWarnings 2023-11-02 00:53:32 +01:00
Robert Maguire
2976c1ff6f Document alternative dotfile method for Windows 2023-10-22 16:25:20 -05:00
HolonProduction
a0789aae63 Update code snippet to Godot 4 (#8114)
* Update code snippet to Godot 4

* Update tutorials/best_practices/godot_notifications.rst

---------

Co-authored-by: Max Hilbrunner <mhilbrunner@users.noreply.github.com>
2023-10-09 01:48:43 +02:00
Mark Wilson
147d2233c7 Improve C# GD.Load() examples
* Use typed version of GD.Load()
* Use absolute paths (i.e., prefixed with "res://")
* Use "Path/To/" intermediate path values on abstract examples, to
  illustrate that files can live in various directories
* Use PascalCase on files that are not GDScript or GLSL
2023-10-08 12:25:43 -04:00
skyace65
1ae0eff971 Fix Build issue 2023-10-02 21:19:42 -04:00
cabbagestole
66dbc98627 Update godot_interfaces.rst
One too many open curly bracket "{".

Wrong
        public void PrintMe() {

Correct
        public void PrintMe()
2023-09-24 17:55:09 +09:00
GamEsnitzhel
041ff3c28d Added missing C# example in tutorials -> best practices -> godot_notifications. (#7936)
* Added C# example

* Fixed C# example in godot_notifications
2023-09-18 07:48:33 +02:00
Hana - Piralein
e598653d4a add missing annotation prefix 2023-08-20 14:52:35 +02:00
Max Hilbrunner
c924ee8527 Merge pull request #7505 from raulsntos/dotnet/remove-funcref 2023-07-22 22:22:29 +02:00
Hugo Locurcio
dbcbceb4bc Update Best practices documentation for Godot 4.1
Note that the Data preferences page is still marked as outdated,
as the internal implementation of Dictionary/HashMap has changed
in Godot 4.0.
2023-07-20 17:42:15 +02:00
kastromatos
56ad07a857 Not relevant 'Known issues' section in 'Version Control Systems' best practices
Not relevant 'Known issues' section in 'Version Control Systems' best practices. For Godot 3.4 and above.
https://github.com/godotengine/godot/issues/20250
2023-07-11 11:57:18 +02:00
Raul Santos
3e514494b8 C#: Replace FuncRef with Callable in outdated example 2023-06-13 11:15:54 +02:00
Raul Santos
c457ab79ec Update some C# examples
- Rename members that have been renamed in Godot's C# API for 4.0.
- Change `delta` parameter type to `double`.
- Ensure parameters match base declaration.
- Follow our code style more closely.
- Other minor code fixes.
2023-05-18 13:14:05 +02:00