Skip to content

Commit 1e11c63

Browse files
committed
Reword homepage, with focus on gdext
1 parent 7c92f0a commit 1e11c63

File tree

3 files changed

+18
-19
lines changed

3 files changed

+18
-19
lines changed

website/config.toml

+1-2
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ image_alt = "Placeholder text describing the index's image."
110110

111111

112112
[extra.links]
113-
github_gdnative = "https://github.com/godot-rust/gdnative"
114-
github_gdext = "https://github.com/godot-rust/gdext"
113+
github = "https://github.com/godot-rust/gdext"
115114

116115
[extra.social]
117116
discord = "https://discord.gg/aKUCJ8rJsc"

website/content/_index.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description = "godot-rust"
99
template = "home.html"
1010
+++
1111

12-
The **godot-rust** project provides bindings for the [Godot game engine][godot] to the [Rust language][rust].
12+
The **godot-rust** library provides [Rust][rust] language bindings for the [Godot game engine][godot].
1313

1414
Rust is an alternative to GDScript, with different trade-offs for users.
1515
While GDScript enables fast prototyping and short feedback cycles, games of larger scale may
@@ -18,20 +18,20 @@ benefit from a stronger type system, a rich library ecosystem and native perform
1818
The Rust bindings focus on safety, despite interacting with the engine over FFI.
1919
Many APIs are designed to catch errors at compile time, while others offer runtime checks to prevent undefined behavior.
2020

21-
We provide bindings for the two major Godot versions:
22-
23-
* **gdnative** - Godot 3 bindings, integrating via GDNative C interface.
24-
* **gdext** - Godot 4 bindings, integrating via GDExtension C interface.
21+
You can use godot-rust to build games, editor plugins or other applications within the Godot ecosystem.
22+
We use Godot's GDExtension API and provide binary compatibility down to Godot 4.1.
23+
For Godot 3, there is also the [gdnative] crate, which isn't actively developed anymore.
2524

2625

2726
## Getting started
2827

29-
To learn either library, you can use any of the following resources:
28+
To get familiar with godot-rust, you can use any of the following resources:
3029

3130
**Book**: read tutorials and step-by-step guides.
3231
**API Docs**: a reference to look up specific symbols.
33-
**GitHub**: clone the repo and check out examples.
32+
**GitHub**: follow latest development or contribute to the project.
3433

3534

3635
[godot]: https://godotengine.org
3736
[rust]: https://www.rust-lang.org
37+
[gdnative]: https://github.com/godot-rust/gdnative

website/templates/home.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,6 @@
3939
<div class="caption">Book</div>
4040
</div>
4141

42-
<div class="flex flex-col items-center">
43-
<a href="{{config.extra.links.github_gdext}}" target="_blank" title="GitHub">
44-
<svg xmlns="http://www.w3.org/2000/svg" class="text-black dark:text-white social-icon" viewBox="0 0 24 24">
45-
<title>GitHub</title>
46-
<path d="M10.9,2.1c-4.6,0.5-8.3,4.2-8.8,8.7c-0.5,4.7,2.2,8.9,6.3,10.5C8.7,21.4,9,21.2,9,20.8v-1.6c0,0-0.4,0.1-0.9,0.1 c-1.4,0-2-1.2-2.1-1.9c-0.1-0.4-0.3-0.7-0.6-1C5.1,16.3,5,16.3,5,16.2C5,16,5.3,16,5.4,16c0.6,0,1.1,0.7,1.3,1c0.5,0.8,1.1,1,1.4,1 c0.4,0,0.7-0.1,0.9-0.2c0.1-0.7,0.4-1.4,1-1.8c-2.3-0.5-4-1.8-4-4c0-1.1,0.5-2.2,1.2-3C7.1,8.8,7,8.3,7,7.6c0-0.4,0-0.9,0.2-1.3 C7.2,6.1,7.4,6,7.5,6c0,0,0.1,0,0.1,0C8.1,6.1,9.1,6.4,10,7.3C10.6,7.1,11.3,7,12,7s1.4,0.1,2,0.3c0.9-0.9,2-1.2,2.5-1.3 c0,0,0.1,0,0.1,0c0.2,0,0.3,0.1,0.4,0.3C17,6.7,17,7.2,17,7.6c0,0.8-0.1,1.2-0.2,1.4c0.7,0.8,1.2,1.8,1.2,3c0,2.2-1.7,3.5-4,4 c0.6,0.5,1,1.4,1,2.3v2.6c0,0.3,0.3,0.6,0.7,0.5c3.7-1.5,6.3-5.1,6.3-9.3C22,6.1,16.9,1.4,10.9,2.1z"></path>
47-
</svg>
48-
</a>
49-
<div class="caption">GitHub</div>
50-
</div>
51-
5242
<div class="flex flex-col items-center">
5343
<a href="docs" target="_blank" title="latest API docs">
5444
<svg xmlns="http://www.w3.org/2000/svg" class="text-black dark:text-white social-icon social-icon-thin" viewBox="-2 -2 20 20">
@@ -59,6 +49,16 @@
5949
<div class="caption">API Docs</div>
6050
</div>
6151

52+
<div class="flex flex-col items-center">
53+
<a href="{{config.extra.links.github}}" target="_blank" title="GitHub">
54+
<svg xmlns="http://www.w3.org/2000/svg" class="text-black dark:text-white social-icon" viewBox="0 0 24 24">
55+
<title>GitHub</title>
56+
<path d="M10.9,2.1c-4.6,0.5-8.3,4.2-8.8,8.7c-0.5,4.7,2.2,8.9,6.3,10.5C8.7,21.4,9,21.2,9,20.8v-1.6c0,0-0.4,0.1-0.9,0.1 c-1.4,0-2-1.2-2.1-1.9c-0.1-0.4-0.3-0.7-0.6-1C5.1,16.3,5,16.3,5,16.2C5,16,5.3,16,5.4,16c0.6,0,1.1,0.7,1.3,1c0.5,0.8,1.1,1,1.4,1 c0.4,0,0.7-0.1,0.9-0.2c0.1-0.7,0.4-1.4,1-1.8c-2.3-0.5-4-1.8-4-4c0-1.1,0.5-2.2,1.2-3C7.1,8.8,7,8.3,7,7.6c0-0.4,0-0.9,0.2-1.3 C7.2,6.1,7.4,6,7.5,6c0,0,0.1,0,0.1,0C8.1,6.1,9.1,6.4,10,7.3C10.6,7.1,11.3,7,12,7s1.4,0.1,2,0.3c0.9-0.9,2-1.2,2.5-1.3 c0,0,0.1,0,0.1,0c0.2,0,0.3,0.1,0.4,0.3C17,6.7,17,7.2,17,7.6c0,0.8-0.1,1.2-0.2,1.4c0.7,0.8,1.2,1.8,1.2,3c0,2.2-1.7,3.5-4,4 c0.6,0.5,1,1.4,1,2.3v2.6c0,0.3,0.3,0.6,0.7,0.5c3.7-1.5,6.3-5.1,6.3-9.3C22,6.1,16.9,1.4,10.9,2.1z"></path>
57+
</svg>
58+
</a>
59+
<div class="caption">GitHub</div>
60+
</div>
61+
6262
{#
6363
<div class="flex flex-col items-center">
6464
<svg xmlns="http://www.w3.org/2000/svg" class="text-black dark:text-white social-icon social-icon-thin" viewBox="-2 -2 20 20">

0 commit comments

Comments
 (0)