Skip to content

Commit c2e7a30

Browse files
authored
Merge pull request #587 from aaronfranke/web-readme
Link to the web export in the README and format names nicer
2 parents c0d9e48 + 4dbfd92 commit c2e7a30

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.github/dist/header.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<!DOCTYPE html>
22
<html lang="en">
3+
34
<head>
45
<meta charset="utf-8">
56
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@@ -77,8 +78,19 @@
7778
li a:hover {
7879
background-color: hsla(0, 0%, 50%, 0.1);
7980
}
81+
82+
li a * {
83+
float: left;
84+
}
85+
86+
li a p {
87+
height: 24px;
88+
margin: 20px 10px;
89+
}
90+
8091
</style>
8192
</head>
93+
8294
<body>
8395
<h1>Godot demo projects</h1>
8496
<p>

.github/workflows/export_html5.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
7676
# Append the demo to the list of demos for the website.
7777
PROJECT_NAME=$(cat project.godot | grep "config/name" | cut -d '"' -f 2 | tr -d "\n")
78-
echo "<li><a href='$demo'><img width="64" height="64" src="$demo/favicon.png" alt=""> $PROJECT_NAME</a></li>" >> "$BASEDIR/.github/dist/demos.html"
78+
echo "<li><a href='$demo'><img width="64" height="64" src="$demo/favicon.png" alt=""><p>$PROJECT_NAME</p></a></li>" >> "$BASEDIR/.github/dist/demos.html"
7979
done
8080
8181
cat "$BASEDIR/.github/dist/header.html" "$BASEDIR/.github/dist/demos.html" "$BASEDIR/.github/dist/footer.html" > "$BASEDIR/.github/dist/index.html"

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ To import all demos at once in the project manager:
2626
- Choose the path to the folder containing all demos.
2727
- All demos should now appear in the project manager.
2828

29+
## Try the demos in your browser
30+
31+
Most of the demos are exported to GitHub Pages. They can be viewed
32+
[here](https://godotengine.github.io/godot-demo-projects/).
33+
34+
**Note:** The performance of Godot in a browser is lower than natively on
35+
desktop. For the best performance, consider downloading the demos.
36+
2937
## Useful links
3038

3139
- [Main website](https://godotengine.org)

0 commit comments

Comments
 (0)