Commit Graph

3450 Commits

Author SHA1 Message Date
Rémi Verschelde
2b4319bc29 Sync classref with current source
Changes order of brief/long descriptions and removes category
as per godotengine/godot#35132.
2020-01-15 00:51:47 +01:00
Nathan Lovato
251518c54d Merge pull request #3064 from YeldhamDev/fix_styleguide_broken_ref
Fix nonexistent reference in the "GDScript style guide" page
2020-01-14 23:04:22 +01:00
Michael Alexsander
83511dc224 Fix nonexistent reference in the "GDScript style guide" page 2020-01-14 18:26:02 -03:00
Nathan Lovato
9a64d9a5c5 GDScript style guide: add suggested code order (#3022)
* GDScript style guide: add suggested code order

Following the discussion in #2997

* Update the code order example in the GDScript style guide
2020-01-14 18:23:24 +01:00
Nathan Lovato
22c16e0f94 Merge pull request #3056 from Calinou/add-dark-theme
Add a dark theme using the `prefers-color-scheme` CSS media query
2020-01-14 18:09:36 +01:00
Nathan Lovato
f9694a8ee4 Merge pull request #3063 from asynts/asynts.archlinux-one-liner
Don't reinstall dependencies if they are already installed.
2020-01-14 15:00:56 +01:00
Michael Alexsander
8298dc47b9 Merge pull request #3051 from YeldhamDev/translation_table_fix
Fix malformed table in "Inporting translations" page
2020-01-14 07:44:22 -03:00
asynts
c2c07158e2 Don't reinstall dependencies if they are already installed.
Arch Linux's `pacman -S` reinstalls packages that are already installed,
unless the option `--needed` is provided.

A user that wants to build godot probably doesn't want to reinstall their
GCC compiler and all the other stuff listed in the command.
2020-01-14 11:25:55 +01:00
Hugo Locurcio
b8c0f6e19d Update some exporting images and move a line (#3060)
Update some exporting images and move a line
2020-01-13 21:47:55 +01:00
skyace65
b24fc423f4 Update some exporting images and move a line 2020-01-13 15:27:57 -05:00
Hugo Locurcio
24aa74eb89 Merge pull request #3058 from igorashs/patch-1
Fix typo in Vector2 description
2020-01-13 11:58:30 +01:00
Nathan Lovato
23130deb2d Edit real-world examples in docs_writing_guidelines.rst
I added missing hyphens, like in made-up, used direct voice, and used a grammar
checker to tweak a paragraph.
2020-01-13 09:55:22 +01:00
Nathan Lovato
e0421ece68 Merge pull request #3053 from Feniks-Gaming/patch-2
Expanded guidance about avoiding made up names
2020-01-13 09:49:08 +01:00
Maciej
ade2a6a260 Expanded guidance about avoiding made up names
As we discussed here https://github.com/godotengine/godot-docs/pull/3045#discussion_r365111553 I have expanded guidance to mention that we should avoid using made up names and use real world working code examples where practically possible. And where not possible still use a code that at least resembles something you could see in a project.
Update docs_writing_guidelines.rst
2020-01-13 08:30:59 +00:00
Igor
088279f8e2 Fix typo in Vector2 description 2020-01-13 09:34:48 +02:00
Clemens Tolboom
692584e321 Update compiling_for_osx.rst (#3055)
* Update compiling_for_osx.rst

No sure 8 jobs is best for everyone but it boost compiling

* Update compiling_for_osx.rst

Use suggestion by @Calinou

* Remove terminal prefix.
2020-01-12 17:59:29 +01:00
Hugo Locurcio
9e8fb108cc Add a dark theme using the prefers-color-scheme CSS media query
This also includes tweaks to the syntax highlighting theme
which were necessary to support switching the theme using CSS
variables. Some token colors in the light syntax theme have been
swapped around for consistency.

This closes #3041.
2020-01-12 03:45:05 +01:00
Nathan Lovato
9302b01152 Edit Dynamic vs static typing in docs_writing_guidelines.rst 2020-01-10 19:56:00 +01:00
Feniks
9d452eb42f Added changes about use of Dynamic Typing (#3045)
* Added changes about use of Dynamic Typing

I have added an explanation directing doc contributors to only use Dynamic typed GDScript in their examples unless they are specifically discussing issues related to static typing.
2020-01-10 19:42:27 +01:00
Michael Alexsander
a33d2e7d88 Fix malformed table in "Inporting translations" page 2020-01-10 10:31:58 -03:00
Tim Krief
5fb68f9943 Adding information and guidelines about how to properly create a standard CSV translation file (#3048)
* Adding guidlines for escaping double quotes

RFC-4180: "If double-quotes are used to enclose fields, then a double-quote appearing inside a field must be escaped by preceding it with another double quote."
I tried to escape it with backslash without knowing the special standards of CSV, it didn't work and I opened an issue for nothing. I think it might be right to explain that directly in the docs so that no ones lack this information and ask for help about that again.

* Adding more info about the CSV standard

Some information from the CSV standard were lacking, most importantly, how to escape double quotes in a string. An example with escaped double quotes has been added to the existing example table. (Thanks to the discord for the translation)
2020-01-10 13:27:56 +01:00
Hugo Locurcio
b0724a214d Merge pull request #3046 from aaronfranke/main-screen-sizeflag
Mention size flag in main screen plugin tutorial
2020-01-09 21:34:35 +01:00
Flo
d24bbdfc2a Reinsert clamp in exporting docs (#3032)
Before this change clamping the players position got removed with the following explanation:
"We don't need to clamp the player's position because you can't click outside the screen."

While it is true that the player cannot click outside the window, the player can still click outside the playable area. Because we set Aspect to "keep" in the Project Settings, Godot will create Black borders if the window (or phone screen) doesn't match the desired aspect ratio. A player can now click on either of the borders and because clamp got removed the Player node will move out of the playable area and hide in the black border.

This is why the clamp should not be removed.
2020-01-09 21:08:38 +01:00
Aaron Franke
0b1acc49a2 Mention size flag in main screen plugin tutorial
Also re-flow some of the text over lines and mention adding a Label.
2020-01-09 13:21:46 -05:00
Nathan Lovato
81dff876dd Edit the latest contribution to 2d_skeletons.rst and format the document 2020-01-08 14:46:24 +01:00
Nathan Lovato
681555ce9b Merge pull request #3044 from Sousio/patch-1
Update 2d_skeletons.rst
2020-01-08 14:39:39 +01:00
Sousio
665ab26c1c Update 2d_skeletons.rst 2020-01-08 16:57:55 +03:30
Nathan Lovato
dcb9cb43e8 Tweak GDScript and C# Style guides
Rename code structure -> formatting
Add a heading Encoding and special characters for the corresponding section
Add missing Indentation heading that was gone
2020-01-06 13:55:46 +01:00
Nathan Lovato
dad0fd647c Merge pull request #3030 from aaronfranke/formatting
Add file formatting to GDScript style guide
2020-01-06 13:46:53 +01:00
Hugo Locurcio
1f1a934eec Merge pull request #3042 from skyace65/scene_tree
Updates scene tree image for Godot 3.2
2020-01-06 12:09:25 +01:00
skyace65
89c9877cb4 Update scene tree image 2020-01-05 21:47:13 -05:00
Sousio
0a0a9e1b19 Update 2d_skeletons.rst
Just one clarification about Move Polygon operation, and some Punctuation correction.
2020-01-06 00:14:58 +03:30
Aaron Franke
766e4687e5 Add file formatting to GDScript style guide
Recommend LF, newline at end of file, UTF-8, no BOM, and tabs. The displayed size of tabs does not matter as it does not affect the saved files, so don't mention it. Also slightly change the C# style guide for consistency.
2020-01-04 16:59:52 -05:00
Hugo Locurcio
cba5770d19 Merge pull request #3036 from flofriday/fix-orientation-handheld
Fix Orientation on Android
2020-01-04 00:00:13 +01:00
Flo
17881b330b Merge branch 'master' into fix-orientation-handheld 2020-01-03 22:53:14 +01:00
Hugo Locurcio
529004eec2 Merge pull request #3005 from van800/master
"Profiling your C# code" in c_sharp_basics.rst
2020-01-03 22:42:23 +01:00
flofriday
7c079bf721 Fix Orientation on Android
Following the Android instructions for exporting, results in an rotatet
build. By specifying the Orientation option in the "Project Settings"
solves this bug.
2020-01-03 22:05:50 +01:00
Hugo Locurcio
3a6a1586c9 Merge pull request #3011 from DesiQuintans/patch-1
Clarify touch-input-from-mouse
2020-01-03 21:46:24 +01:00
Hugo Locurcio
efd4cb31c7 Merge pull request #3034 from YeldhamDev/builtin_type_refs
Add references for the built-in type pages in GDScript basics
2020-01-03 21:45:23 +01:00
Michael Alexsander
f7505fdf79 Add references for the built-in type pages in GDScript basics 2020-01-03 14:52:48 -03:00
Hugo Locurcio
dd1e849d86 Merge pull request #3033 from skyace65/multimeshCSharp
Add C# code to multimesh page
2020-01-03 18:42:50 +01:00
skyace65
29e1623902 Add C# code to multimesh page 2020-01-03 12:17:44 -05:00
Hugo Locurcio
198ddc7dc8 Merge pull request #3028 from vintprox/patch-2
Changled link to Shadertoy (mirror #3026)
2020-01-03 00:20:33 +01:00
Hugo Locurcio
a978a750de Remove outdated info from intro to animation editor page (#3029)
Remove outdated info from intro to animation editor page
2020-01-03 00:03:02 +01:00
skyace65
1e93828fff Remove outdated info from intro to animation editor page 2020-01-02 16:04:27 -05:00
Nathan Lovato
f56dee8d22 Change phrasing of the line length gdscript guideline. 2020-01-02 20:26:43 +01:00
Nathan Lovato
373f662571 Merge pull request #2994 from Calinou/add-gdscript-line-length-guideline
Add a line length guideline to the GDScript style guide
2020-01-02 20:08:58 +01:00
Rodion Borisov
58af172899 Changled link to Shadertoy (mirror #3026)
#3026
There is known issue with heavy page load at www.shadertoy.com, which imposes GPU intensive shaders on main page: https://bugs.chromium.org/p/chromium/issues/detail?id=33620. It leads user's PC to go nuts even on second load.
2020-01-02 21:51:07 +03:00
Hugo Locurcio
924ce1bd66 Merge pull request #3027 from skyace65/singletons
Update Singletons Autoload image for Godot 3.2
2020-01-02 19:15:11 +01:00
Hugo Locurcio
2d265dbf66 Merge pull request #3026 from vintprox/patch-1
Changed link to GPU intensive website.
2020-01-02 19:09:46 +01:00