Fix the class docs for the rst-syntax errors.
- Generate a correkt rst-syntax for the [/code] inline markup. (http://www.sphinx-doc.org/en/1.6.5/rest.html#inline-markup) - Fix xml souce bugs for the sphinx's rst syntax werrors: class_area.rst:319: WARNING: Inline literal start-string without end-string. class_area2d.rst:287: WARNING: Inline literal start-string without end-string. class_audioserver.rst:287: WARNING: Inline literal start-string without end-string. class_control.rst:509: WARNING: Inline literal start-string without end-string. class_image.rst:422: WARNING: Inline literal start-string without end-string. class_image.rst:434: WARNING: Inline literal start-string without end-string. class_inputevent.rst:74: WARNING: Inline literal start-string without end-string. class_inputeventaction.rst:45: WARNING: Inline literal start-string without end-string. class_inputmap.rst:47: WARNING: Inline literal start-string without end-string. class_kinematicbody.rst:80: WARNING: Inline interpreted text or phrase reference start-string without end-string. class_kinematicbody2d.rst:80: WARNING: Inline interpreted text or phrase reference start-string without end-string. class_line2d.rst:182: WARNING: Inline literal start-string without end-string. class_thread.rst:51: WARNING: Inline literal start-string without end-string. class_treeitem.rst:160: WARNING: Inline literal start-string without end-string.
This commit is contained in:
parent
249c11784a
commit
7c3ba6f72b
10 changed files with 11 additions and 10 deletions
|
@ -287,7 +287,7 @@
|
||||||
<argument index="1" name="send" type="String">
|
<argument index="1" name="send" type="String">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Connects the output of the bus at [code]bus_idx[/code] to the bus named [code]send[/send].
|
Connects the output of the bus at [code]bus_idx[/code] to the bus named [code]send[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_bus_solo">
|
<method name="set_bus_solo">
|
||||||
|
|
|
@ -60,7 +60,7 @@
|
||||||
<argument index="1" name="constant" type="int">
|
<argument index="1" name="constant" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Overrides an integer constant in the [theme] resource the node uses. If the [code]constant[code] is invalid, Godot clears the override. See [member Theme.INVALID_CONSTANT] for more information.
|
Overrides an integer constant in the [Theme] resource the node uses. If the [code]constant[/code] is invalid, Godot clears the override. See [member Theme.INVALID_CONSTANT] for more information.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="add_font_override">
|
<method name="add_font_override">
|
||||||
|
|
|
@ -377,13 +377,13 @@
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Sets the [Color] of the pixel at [code](x, y)[/code] if the image is unlocked. Example:
|
Sets the [Color] of the pixel at [code](x, y)[/code] if the image is unlocked. Example:
|
||||||
[code]
|
[codeblock]
|
||||||
var img = Image.new()
|
var img = Image.new()
|
||||||
img.lock()
|
img.lock()
|
||||||
img.set_pixel(x, y, color) # Does not have an effect
|
img.set_pixel(x, y, color) # Does not have an effect
|
||||||
img.unlock()
|
img.unlock()
|
||||||
img.set_pixel(x, y, color) # Works
|
img.set_pixel(x, y, color) # Works
|
||||||
[/code].
|
[/codeblock]
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="shrink_x2">
|
<method name="shrink_x2">
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<argument index="0" name="event" type="InputEvent">
|
<argument index="0" name="event" type="InputEvent">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns [code]true[/code] if this event matches [code]event[event].
|
Returns [code]true[/code] if this event matches [code]event[/code].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="as_text" qualifiers="const">
|
<method name="as_text" qualifiers="const">
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Input event type for actions.
|
Input event type for actions.
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Contains a generic action which can be targeted from several type of inputs. Actions can be created from the project settings menu [code]Project > Project Settings > Input Map[/Code]. See [method Node._input].
|
Contains a generic action which can be targeted from several type of inputs. Actions can be created from the project settings menu [code]Project > Project Settings > Input Map[/code]. See [method Node._input].
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
http://docs.godotengine.org/en/stable/learning/features/inputs/inputevent.html#actions
|
http://docs.godotengine.org/en/stable/learning/features/inputs/inputevent.html#actions
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
Singleton that manages [InputEventAction].
|
Singleton that manages [InputEventAction].
|
||||||
</brief_description>
|
</brief_description>
|
||||||
<description>
|
<description>
|
||||||
Manages all [InputEventAction] which can be created/modified from the project settings menu [code]Project > Project Settings > Input Map[/Code] or in code with [method add_action] and [method action_add_event]. See [method Node._input].
|
Manages all [InputEventAction] which can be created/modified from the project settings menu [code]Project > Project Settings > Input Map[/code] or in code with [method add_action] and [method action_add_event]. See [method Node._input].
|
||||||
</description>
|
</description>
|
||||||
<tutorials>
|
<tutorials>
|
||||||
http://docs.godotengine.org/en/stable/learning/features/inputs/inputevent.html#inputmap
|
http://docs.godotengine.org/en/stable/learning/features/inputs/inputevent.html#inputmap
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<argument index="0" name="slide_idx" type="int">
|
<argument index="0" name="slide_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns a [KinematicCollision], which contains information about a collision that occured during the last [method move_and_slide] call. Since the body can collide several times in a single call to [method move_and_slide], you must specify the index of the collision in the range 0 to ([method get_slide_count]()-1).
|
Returns a [KinematicCollision], which contains information about a collision that occured during the last [method move_and_slide] call. Since the body can collide several times in a single call to [method move_and_slide], you must specify the index of the collision in the range 0 to ([method get_slide_count] - 1).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_slide_count" qualifiers="const">
|
<method name="get_slide_count" qualifiers="const">
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
<argument index="0" name="slide_idx" type="int">
|
<argument index="0" name="slide_idx" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns a [KinematicCollision2D], which contains information about a collision that occured during the last [method move_and_slide] call. Since the body can collide several times in a single call to [method move_and_slide], you must specify the index of the collision in the range 0 to ([method get_slide_count]()-1).
|
Returns a [KinematicCollision2D], which contains information about a collision that occured during the last [method move_and_slide] call. Since the body can collide several times in a single call to [method move_and_slide], you must specify the index of the collision in the range 0 to ([method get_slide_count] - 1).
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_slide_count" qualifiers="const">
|
<method name="get_slide_count" qualifiers="const">
|
||||||
|
|
|
@ -63,7 +63,7 @@
|
||||||
<argument index="0" name="i" type="int">
|
<argument index="0" name="i" type="int">
|
||||||
</argument>
|
</argument>
|
||||||
<description>
|
<description>
|
||||||
Returns point [code]i[code]'s position.
|
Returns point [code]i[/code]'s position.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_points" qualifiers="const">
|
<method name="get_points" qualifiers="const">
|
||||||
|
|
|
@ -207,6 +207,7 @@ def rstize_text(text, cclass):
|
||||||
elif cmd == '/code':
|
elif cmd == '/code':
|
||||||
tag_text = '``'
|
tag_text = '``'
|
||||||
inside_code = False
|
inside_code = False
|
||||||
|
escape_post = True
|
||||||
elif inside_code:
|
elif inside_code:
|
||||||
tag_text = '[' + tag_text + ']'
|
tag_text = '[' + tag_text + ']'
|
||||||
elif cmd.find('html') == 0:
|
elif cmd.find('html') == 0:
|
||||||
|
|
Loading…
Reference in a new issue