Skip to content

Commit

Permalink
Merge pull request #273 from stride3d/master
Browse files Browse the repository at this point in the history
Initiating deployment of latest website updates to production
  • Loading branch information
VaclavElias authored Feb 6, 2024
2 parents 1c1f1cb + 13b38a5 commit 539bf0e
Show file tree
Hide file tree
Showing 35 changed files with 472 additions and 215 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/stride-website-github.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build Stride Web for GitHub Staging

on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v3

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies & build
run: |
npm install
npm run build
- name: Deploy
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_site
publish_branch: gh-pages
2 changes: 1 addition & 1 deletion Stride.Web.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
Expand Down
1 change: 1 addition & 0 deletions Stride.Web.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.Web", "Stride.Web.cs
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{CFAE5475-B23D-499F-910D-9586C48A654D}"
ProjectSection(SolutionItems) = preProject
.github\workflows\stride-website-github.yml = .github\workflows\stride-website-github.yml
.github\workflows\stride-website-release-azure.yml = .github\workflows\stride-website-release-azure.yml
.github\workflows\stride-website-staging-azure.yml = .github\workflows\stride-website-staging-azure.yml
.github\workflows\stride-website-wiki.yml = .github\workflows\stride-website-wiki.yml
Expand Down
11 changes: 6 additions & 5 deletions _data/site.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"version": "2.0.0.22",
"version": "2.0.0.24",
"engine": "Eleventy 2.0",
"title": "Stride Game Engine",
"description": "C# Stride Game Engine is a powerful and versatile game development engine that is based on the C# programming language",
"language": "en",
"author": "Stride Team",
"dark-mode": true,
"alert-banner": false,
"alert-banner": true,
"docs-search": true,
"google-analytics": true,
"download-version": "4.1",
"csharp-version": "C# 10",
"dotnet-version": ".NET 6",
"download-version": "4.2",
"csharp-version": "C# 12",
"dotnet-version": ".NET 8",
"url": "https://www.stride3d.net",
"twitter-username": "stridedotnet",
"google-analytics-id": "G-Y9CVGC9YV1",
Expand All @@ -29,6 +29,7 @@
"docs-requirements-url": "https://doc.stride3d.net/latest/en/manual/requirements/",
"docs-search-url": "https://doc.stride3d.net/latest/en/index.json",
"docs-tutorial-url": "https://doc.stride3d.net/latest/en/tutorials/",
"docs-contributing-url": "https://doc.stride3d.net/latest/en/contributors/index.html",
"dotnet-foundation-url": "https://dotnetfoundation.org/",
"facebook-url": "https://www.facebook.com/stride3d",
"github-discussions-url": "https://github.com/stride3d/stride/discussions",
Expand Down
35 changes: 0 additions & 35 deletions _drafts/2023-10-10-announcing-stride-4-2-in-dotnet-8.md

This file was deleted.

3 changes: 2 additions & 1 deletion _includes/_top-navigation.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<nav class="navbar navbar-expand-lg bg-light-stride-website">
<nav class="navbar navbar-expand-lg bg-light-stride-website fixed-top">
<div class="container-xxl">
<a class="navbar-brand" href="/">
<img id="logo" height="37" width="124" src="/images/svg/stride-logo-light.svg" alt="Stride logo">
Expand All @@ -24,6 +24,7 @@
<li><a class="dropdown-item" href="{{ site.links.docs-tutorial-url }}" target="_blank" rel="noopener">🎓 Tutorials</a></li>
<li><a class="dropdown-item" href="{{ site.links.docs-release-notes-url }}" target="_blank" rel="noopener">📝 Release Notes</a></li>
<li><a class="dropdown-item" href="{{ site.links.docs-api-url }}" target="_blank" rel="noopener">🔧 API</a></li>
<li><a class="dropdown-item" href="{{ site.links.docs-contributing-url }}" target="_blank" rel="noopener">🌟 Contributing</a></li>
</ul>
</li>
<li class="nav-item">
Expand Down
4 changes: 2 additions & 2 deletions _includes/alert-banner.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="alert-banner text-center text-bg-dark py-4 px-3">
<p class="text-light h2 mb-3">Stride Developers - Stride Day 2023</p>
<p class="lead">Tune into the live event on Wednesday, September 5th, 2023 to hear the latest in Stride Game Engine development for .NET developers.</p>
<p class="text-light h2 mb-3">Announcing Stride 4.2</p>
<p class="lead">The Stride contributors are thrilled to announce the release of Stride 4.2, now fully compatible with .NET 8 and leveraging the latest enhancements in C# 12. Read more about it <a href="/blog/announcing-stride-4-2-in-dotnet-8/">here</a>.</p>
</div>
2 changes: 1 addition & 1 deletion _includes/banner.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% capture style %}
background-image: url({{ image-url }}); background-position: 50% 50%; background-size: cover
{% endcapture %}
<div style="{{ style | strip }}">
<div style="{{ style | strip }}" class="header-image">
<div class="cover text-center py-5">{% if h1 == true %}
<h1 class="text-light pt-4">{{ title }}</h1>{% else %}
<p class="text-light pt-4 h1">{{ title }}</p>{% endif %}
Expand Down
42 changes: 27 additions & 15 deletions _includes/blog-home.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,32 @@
<div class="row gy-5 gx-sm-5 mb-5">
{% assign latestPosts = collections.blog | reverse %}
{% for post in latestPosts limit:3 %}
<div class="col-md-4">
<div class="card mb-4 h-100">
<div class="card-body px-4 pt-4">
<h5 class="card-title">{{ post.data.title }}</h5>
<div class="my-2 small text-secondary">
<i class="fa-solid fa-calendar-days me-1"></i> {%- include post/day.html date:post.date -%}

<div class="container-xl">
<div class="row gy-4 gx-sm-4 justify-content-center mb-4">
<div class="col-12">
<div class="card h-100">
<div class="p-5 pull-left">
<div class="row">
<h2 class="mb-3 fw-bold">Recent blog posts</h2>
{% assign latestPosts = collections.blog | reverse %}
{% for post in latestPosts limit:3 %}
<div class="col-md-4 g-3">
<div class="card mb-4 h-100">
<div class="card-body px-4 pt-4">
<h3 class="h5 card-title fw-bold">{{ post.data.title }}</h3>
<div class="mt-2 mb-3 small text-secondary">
<i class="fa-solid fa-calendar-days me-1"></i> {%- include post/day.html date:post.date -%}
</div>
{%- if post.data.excerpt -%}{{ post.data.excerpt | md }}{%- else -%}
{{ post.data.page.excerpt | md }}{%- endif -%}
</div>
<div class="px-4 mb-4">
<a href="{{ post.url }}" class="btn btn-lg btn-outline-stride me-md-2">Read more</a>
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{%- if post.data.excerpt -%}{{ post.data.excerpt | md }}{%- else -%}
{{ post.data.page.excerpt | md }}{%- endif -%}
</div>
<div class="px-4 mb-4">
<a href="{{ post.url }}" class="stretched-link btn btn-lg btn-outline-stride me-md-2">Read more</a>
</div>
</div>
</div>
{% endfor %}
</div>
5 changes: 3 additions & 2 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ <h3 {{ text-styling }}>Links</h3>
<h3 {{ text-styling }}>Docs</h3>
<ul class="nav flex-column">
<li class="nav-item mb-2"><a href="{{ site.links.docs-manual-url }}" class="nav-link p-0 {{ btn-class }}" target="_blank" rel="noopener">Manual</a></li>
<li class="nav-item mb-2"><a href="{{ site.links.docs-api-url }}" class="nav-link p-0 {{ btn-class }}" target="_blank" rel="noopener">Stride API</a></li>
<li class="nav-item mb-2"><a href="{{ site.links.docs-release-notes-url }}" class="nav-link p-0 {{ btn-class }}" target="_blank" rel="noopener">Release notes</a></li>
<li class="nav-item mb-2"><a href="{{ site.links.docs-tutorial-url }}" class="nav-link p-0 {{ btn-class }}" target="_blank" rel="noopener">Tutorials</a></li>
<li class="nav-item mb-2"><a href="{{ site.links.docs-release-notes-url }}" class="nav-link p-0 {{ btn-class }}" target="_blank" rel="noopener">Release notes</a></li>
<li class="nav-item mb-2"><a href="{{ site.links.docs-api-url }}" class="nav-link p-0 {{ btn-class }}" target="_blank" rel="noopener">Stride API</a></li>
<li class="nav-item mb-2"><a href="{{ site.links.docs-contributing-url }}" class="nav-link p-0 {{ btn-class }}" target="_blank" rel="noopener">Contributing</a></li>
</ul>
</div>

Expand Down
38 changes: 14 additions & 24 deletions _includes/sponsor-generic.html
Original file line number Diff line number Diff line change
@@ -1,35 +1,25 @@
{% comment %} Create cards manually, or move them to json {% endcomment %}
<div class="col-sm-6 col-xxl-4">
<div class="col-sm-6 col-xxl-4 mb-2">
<div class="card text-center h-100">
<div class="bg-white d-flex" style="min-height: 200px">
<img class="card-img-top p-4" alt="logo" src="/images/sponsors/vvvv-logo.svg">
<div class="bg-white d-flex justify-content-center align-middle" style="min-height: 200px">
<a target="_blank" rel="noopener" href="https://visualprogramming.net/" class="d-flex">
<img class="card-img-top p-4" alt="logo" src="/images/sponsors/vvvv-logo.svg" />
</a>
</div>
<div class="card-body">
<p class="card-text" style="min-height: 80px">A visual live-programming environment that takes you from rapid prototyping to final production.</p>
<a target="_blank" rel="noopener" href="https://visualprogramming.net/" class="btn btn-outline-secondary stretched-link">Visit</a>
<p class="mt-4">
<span class="badge bg-stride me-1 mb-1">Sponsor</span>
<span class="badge bg-warning me-1 mb-1">Golden</span>
<span class="badge bg-primary me-1 mb-1">Technology</span>
<span class="badge bg-info me-1 mb-1">Visualisation</span>
<span class="badge bg-success me-1 mb-1">Partner</span>
</p>
<div class="card-body px-5 pb-5">
<p class="card-text">A visual live-programming environment that takes you from rapid prototyping to final production.</p>
</div>
</div>
</div>
<div class="col-sm-6 col-xxl-4">
<div class="col-sm-6 col-xxl-4 mb-2">
<div class="card text-center h-100">
<div class="bg-white d-flex justify-content-center" style="min-height: 200px">
<img class="card-img-top p-2" alt="Happenstance Games logo" src="/images/sponsors/HappenLogo.webp" style="width: 200px">
<div class="bg-white d-flex justify-content-center align-middle" style="min-height: 200px">
<a target="_blank" rel="noopener" href="https://store.steampowered.com/search/?publisher=Happenstance%20Games" class="d-flex">
<img class="card-img-top p-2" alt="Happenstance Games logo" src="/images/sponsors/HappenLogo.webp" style="width: 200px" />
</a>
</div>
<div class="card-body">
<p class="card-text" style="min-height: 80px">An indie game studio with a primary focus on virtual reality (VR) experiences.</p>
<a target="_blank" rel="noopener" href="http://www.happenstancegames.com/" class="btn btn-outline-secondary stretched-link">Visit</a>
<p class="mt-4">
<span class="badge bg-stride me-1 mb-1">Sponsor</span>
<span class="badge bg-warning me-1 mb-1">Platinum</span>
<span class="badge bg-info me-1 mb-1">VR</span>
</p>
<div class="card-body px-5 pb-5">
<p class="card-text">An indie game studio with a primary focus on virtual reality (VR) experiences.</p>
</div>
</div>
</div>
28 changes: 28 additions & 0 deletions _includes/video_home.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div class="intro-section">
<div class="container-fluid p-0">
<div class="intro-video">
<iframe width="560" height="315" src="https://www.youtube.com/embed/SlipyjcEb0g?controls=0&autoplay=1&mute=1&loop=1&rel=0&playlist=SlipyjcEb0g" title="Stride YouTube demo" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
</div>
<div class="intro-content p-4 p-sm-5 d-flex align-items-end">
<div class="container-xxl">
<div class="hero-video-text">
<h1 class="h1 mb-3 text-light mb-3 display-5 fw-bold">Stride Game Engine</h1>
<p class="text-light mb-2 lead fw-normal">Stride is a free and <a href="{{ site.links.github-stride-url }}" target="_blank" rel="noopener">open-source</a><br class="d-md-none" /> cross-platform C# game engine.
<p class="text-light mb-4 lead fw-normal">It is fit for both 2D and 3D games, as well as any other interactive content <br class="d-none d-md-inline" /> running on desktop, mobile and VR.</p>
<div class="row g-2 g-md-3 mb-3">
<div class="col-auto">
<a href="/download/" class="btn btn-lg btn-stride">
<i class="fa-solid fa-download"></i> Download {{ site.download-version }}
</a>
</div>
<div class="col-auto">
<a href="{{ site.links.open-collective-url }}" class="btn btn-lg btn-info" target="_blank" rel="noopener">
{% include svg-icons.html type:'open-collective' size:22 %}&nbsp;Donate to our Collective
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
2 changes: 2 additions & 0 deletions assets/scripts/search.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ permalink: /scripts/search.js
return '🔧';
case 'ReleaseNotes':
return '📝';
case 'contributors':
return '🌟';
default:
return '';
}
Expand Down
Loading

0 comments on commit 539bf0e

Please sign in to comment.