summaryrefslogtreecommitdiffstats
path: root/editor/doc_tools.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add an XML schema for documentationHugo Locurcio2022-02-151-1/+6
| | | | | | | | This makes it easier to spot syntax errors when editing the class reference. The schema is referenced locally so validation can still work offline. Each class XML's schema conformance is also checked on GitHub Actions.
* Vectors: Use clear() and has().Anilforextra2022-02-021-2/+2
| | | | | | Use clear() instead of resize(0). Use has() instead of "find(p_val) != -1".
* Merge pull request #56920 from pycbouh/docs-sort-class-propertiesRémi Verschelde2022-01-181-2/+5
|\
| * Sort class properties in the built-in docsYuri Sizov2022-01-191-2/+5
| |
* | Dictionary: Serialize empty dict as `{}` instead of `{\n}`Rémi Verschelde2022-01-181-7/+7
|/ | | | | Also make sure to always convert multiline dictionaries to a single line for its EditorHelp representation, as multiline values break formatting.
* Update copyright statements to 2022Rémi Verschelde2022-01-031-2/+2
| | | | Happy new year to the wonderful Godot community!
* Make `--doctool` locale awareHaoyu Qiu2021-12-161-6/+36
| | | | | | | | | | | | | | | | * Adds `indent(str)` to `String`: * Indent the (multiline) string with the given indentation. * This method is added in order to keep the translated XML correctly indented. * Moves the loading of tool/doc translation into `editor/editor_translation.{h,cpp}`. * This will be used from both `EditorSettings` and the doc tool from `main`. * Makes use of doc translation when generating XML class references, and setup the translation locale based on `-l LOCALE` CLI parameter. The XML class reference won't be translated if `-l LOCALE` parameter is not given, or when it's `-l en`.
* Replace String comparisons with "", String() to is_empty()Nathan Franke2021-12-091-25/+25
| | | | | | Also: - Adds two stress tests to test_string.h - Changes to .empty() on std::strings
* Make overridden properties link to parent definitionYuri Sizov2021-12-031-3/+9
| | | | Co-authored-by: Josh DeGraw <joshmdegraw@gmail.com>
* Sort and group theme properties in docs, improve formatting for theme and enumsYuri Sizov2021-12-011-0/+2
|
* Modules: Make sure to include modules_enabled.gen.h where neededRémi Verschelde2021-11-121-1/+1
|
* Move the docs for constructors and operators out of methods sectionAaron Franke2021-10-291-21/+90
|
* Use range iterators for `Map`Lightning_A2021-09-301-7/+7
|
* Don't generate empty doc sections and reduce code duplicationAaron Franke2021-09-201-91/+76
|
* Implement properties arrays in the Inspector.Gilles Roudière2021-09-071-1/+1
|
* Implement error return documetationreduz2021-08-241-0/+20
| | | | | | | | | | | | | | Adds ability to add error return documetation to the binder and class reference. Usage example: ```C++ void MyClass::_bind_method() { [..] BIND_METHOD_ERR_RETURN_DOC("load", ERR_FILE_CANT_OPEN, ERR_FILE_UNRECOGNIZED); } ``` One function of ConfigFile was changed as example.
* Fix doctool merges when method signatures don't matchreduz2021-08-221-25/+32
| | | | | | | | | | If methods signature did not match, documentation is not merged. This is a considerable source of annoyance for contributors and it happened as a result of #4533, otherwise the documentation for constructors would not be properly merged. This PR modifies the logic introduced to only do the signature test on constructors and operators (which are the only types of members that can repeat).
* Remove underscore hacksMax Hilbrunner2021-08-171-6/+0
| | | | | | Way less cruft. :) Co-authored-by: Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com>
* Add theme item descriptions to the online documentationYuri Sizov2021-08-041-43/+54
|
* doc: Use self-closing tags for `return` and `argument`Rémi Verschelde2021-07-301-8/+4
| | | | | | | | For the time being we don't support writing a description for those, preferring having all details in the method's description. Using self-closing tags saves half the lines, and prevents contributors from thinking that they should write the argument or return documentation there.
* Use const references where possible for List range iteratorsRémi Verschelde2021-07-251-16/+16
|
* Use C++ iterators for Lists in many situationsAaron Franke2021-07-231-71/+67
|
* Rename `instance()`->`instantiate()` when it's a verbLightning_A2021-06-191-3/+3
|
* Core: Move DirAccess and FileAccess to `core/io`Rémi Verschelde2021-06-111-1/+1
| | | | | File handling APIs are typically considered part of I/O, and we did have most `FileAccess` implementations in `core/io` already.
* Add static method support to core Variant typesreduz2021-03-161-1/+24
| | | | | | * Properly exposed, including validated and variant call * Bound static functions in String and Color * Did not add support for scripting languages, will have to be added manually.
* Update copyright statements to 2021Rémi Verschelde2021-01-011-2/+2
| | | | | | | | | | | | | | Happy new year to the wonderful Godot community! 2020 has been a tough year for most of us personally, but a good year for Godot development nonetheless with a huge amount of work done towards Godot 4.0 and great improvements backported to the long-lived 3.2 branch. We've had close to 400 contributors to engine code this year, authoring near 7,000 commit! (And that's only for the `master` branch and for the engine code, there's a lot more when counting docs, demos and other first-party repos.) Here's to a great year 2021 for all Godot users 🎆
* Rename empty() to is_empty()Marcel Admiraal2020-12-281-2/+2
|
* Refactor DocData into core and editor (DocTools) partsThakee Nathees2020-12-021-0/+1336