Commit Graph

13 Commits

Author SHA1 Message Date
Hugo Locurcio
bf89af481a Update links to source code files in core/
`core/` was reorganized in the `master` branch by
127458ed175c5aeac8dee7f09d23fae4c8928eb7.
2020-11-14 05:40:48 +01:00
Rémi Verschelde
11b4a4a91a Fix code errors and style issues after #2750 2020-03-13 16:29:45 +01:00
Hugo Locurcio
63bea370f4 Fix invalid JSON in Custom resource format loaders (#3236)
Comments aren't allowed in JSON, so the note must be put outside
the example.
2020-03-10 10:37:58 +01:00
99alfie
6349d303af replaced erroneous sourcecode parts, added resource saver (#2750)
* replaced erroneous sourcecode parts, added resource saver

* changed spaces to tabs

* changed tabs to 4space+tab(s)

* Update development/cpp/custom_resource_format_loaders.rst

Co-Authored-By: Hugo Locurcio <hugo.locurcio@hugo.pro>

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
2020-03-02 13:53:07 +01:00
asynts
53f878bdaf Replace 'code' directives with 'code-block' directives.
The `code` directive highlights all sources as GDScript. Other languages are
highlighted incorrectly at the moment, even if `.. code:: [language]` is
specified.

It does, however, work with the `code-block` directive. The reason seems to be
that this directive is Sphinx specific.
2020-01-13 18:45:39 +01:00
asynts
3dede275f4 Use literal blocks for code samples with GDScript.
GDScript is already the default, it's redundant to specify it explicitly.
A [literal block][1] is already enough.

  [1]: https://www.sphinx-doc.org/en/1.8/usage/restructuredtext/basics.html#rst-literal-blocks
2020-01-13 18:45:39 +01:00
asynts
faf9472dda Use the correct language in code blocks.
There are a few places where no language is specified for a code block and
the default is incorrect.

There are a few places where pseudo code is treated as C++.
2020-01-13 18:45:39 +01:00
Rémi Verschelde
a0e32ac017 Fix mixed use of tabs and spaces in indented blocks
4-space is our convention for indented blocks and should be used consistently.
The only exception is for C++ code which is tab-indented, as the engine code.
2018-11-20 11:02:11 +01:00
Hugo Locurcio
adf3cb915a Capitalize all instances of Godot (except the binary name) 2018-10-27 21:01:11 +02:00
Rémi Verschelde
e29dc58cbb Heading capitalization fixes + misc edits 2018-08-23 10:57:22 +02:00
cheeseburger
144249d942 Fixed hyperlinks
pervious commits were missing a _doc header

:ref: doc_guide instead of guide
2018-04-30 16:26:50 -07:00
Poommetee Ketson
2cf560bc8a Fix typos with codespell 2018-03-29 12:38:45 +07:00
hungrymonkey
3c747d963b Added custom format loader guide (#1193) 2018-03-03 02:46:45 +01:00