From 4dbfd92e6fb525f08d61a7e7d5acfed78c292fe8 Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sun, 28 Feb 2021 15:50:59 -0500 Subject: [PATCH] Link to the web export in the README and format names nicer --- .github/dist/header.html | 12 ++++++++++++ .github/workflows/export_html5.yml | 2 +- README.md | 8 ++++++++ 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/dist/header.html b/.github/dist/header.html index e2900e29..7c223211 100644 --- a/.github/dist/header.html +++ b/.github/dist/header.html @@ -1,5 +1,6 @@ + @@ -77,8 +78,19 @@ li a:hover { background-color: hsla(0, 0%, 50%, 0.1); } + + li a * { + float: left; + } + + li a p { + height: 24px; + margin: 20px 10px; + } + +

Godot demo projects

diff --git a/.github/workflows/export_html5.yml b/.github/workflows/export_html5.yml index 1bf46a4b..786bd671 100644 --- a/.github/workflows/export_html5.yml +++ b/.github/workflows/export_html5.yml @@ -75,7 +75,7 @@ jobs: # Append the demo to the list of demos for the website. PROJECT_NAME=$(cat project.godot | grep "config/name" | cut -d '"' -f 2 | tr -d "\n") - echo "

  • $PROJECT_NAME
  • " >> "$BASEDIR/.github/dist/demos.html" + echo "
  • $PROJECT_NAME

  • " >> "$BASEDIR/.github/dist/demos.html" done cat "$BASEDIR/.github/dist/header.html" "$BASEDIR/.github/dist/demos.html" "$BASEDIR/.github/dist/footer.html" > "$BASEDIR/.github/dist/index.html" diff --git a/README.md b/README.md index 10d3bea5..8cc61a80 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,14 @@ To import all demos at once in the project manager: - Choose the path to the folder containing all demos. - All demos should now appear in the project manager. +## Try the demos in your browser + +Most of the demos are exported to GitHub Pages. They can be viewed +[here](https://godotengine.github.io/godot-demo-projects/). + +**Note:** The performance of Godot in a browser is lower than natively on +desktop. For the best performance, consider downloading the demos. + ## Useful links - [Main website](https://godotengine.org)