Class reference writing guidelines ================================== This page explains how to write the class reference. You will learn where to write new descriptions for the classes, methods, and properties for Godot's built-in node types. .. seealso:: To learn to submit your changes to the Godot project using the Git version control system, see `doc_updating_the_class_reference`. The reference for each class is contained in an XML file like the one below: .. code-block:: xml A 2D game object, inherited by all 2D-related nodes. Has a position, rotation, scale, and Z index. A 2D game object, with a transform (position, rotation, and scale). All 2D nodes, including physics objects and sprites, inherit from Node2D. Use Node2D as a parent node to move, scale and rotate children in a 2D project. Also gives control of the node's render order. https://docs.godotengine.org/en/latest/tutorials/2d/custom_drawing_in_2d.html https://github.com/godotengine/godot-demo-projects/tree/master/2d Multiplies the current scale by the [code]ratio[/code] vector. [...] Translates the node by the given [code]offset[/code] in local coordinates. Global position. [...] Z index. Controls the order in which the nodes render. A node with a higher Z index will display in front of others. It starts with brief and long descriptions. In the generated docs, the brief description is always at the top of the page, while the long description lies below the list of methods, variables, and constants. You can find methods, member variables, constants, and signals in separate XML nodes. For each, you want to learn how they work in Godot's source code. Then, fill their documentation by completing or improving the text in these tags: - `/doc_classes/` directory instead. Edit it using your favorite text editor. If you use a code editor, make sure that it doesn't change the indent style: you should use tabs for the XML and four spaces inside BBCode-style blocks. More on that below. To check that the modifications you've made are correct in the generated documentation, navigate to the `doc/` folder and run the command `make rst`. This will convert the XML files to the online documentation's format and output errors if anything's wrong. Alternatively, you can build Godot and open the modified page in the built-in code reference. To learn how to compile the engine, read the `compilation guide