Skip to content

Commit

Permalink
Merge pull request #149 from stride3d/master
Browse files Browse the repository at this point in the history
Releasing latest updates
  • Loading branch information
VaclavElias authored Sep 29, 2023
2 parents cf13f33 + 00e2712 commit 2d27c5d
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 26 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/stride-docs-release-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,25 @@ on:

jobs:
build:
# Run this job only if the repository is 'stride3d/stride-docs'
if: github.repository == 'stride3d/stride-docs'
runs-on: windows-2022

steps:
# Setup .NET SDK
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x

# Checkout the Stride Docs repository from the branch that triggered the workflow
- name: Checkout Stride Docs
uses: actions/checkout@v3
with:
path: stride-docs
lfs: true

# Checkout the Stride repository from the default branch
- name: Checkout Stride (note the LFS)
uses: actions/checkout@v3
with:
Expand All @@ -42,10 +46,10 @@ jobs:
lfs: true

- name: Install DocFX
# This installs the latest version of DocFX and may introduce breaking changes.
# This installs the latest version of DocFX and may introduce breaking changes
# run: dotnet tool update -g docfx
# This installs a specific, tested version of DocFX.
run: dotnet tool update -g docfx --version 2.70.3
run: dotnet tool update -g docfx --version 2.70.4

- name: Build documentation
run: ./build-all.bat
Expand Down Expand Up @@ -87,4 +91,4 @@ jobs:
app-name: 'stride-doc'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_4803638D673FA67D0C8650F34C4FA9D1 }}
package: ./stride-docs/_site
package: ./stride-docs/_site
58 changes: 58 additions & 0 deletions .github/workflows/stride-docs-release-fast-track-azure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

# The Fast Track skips creating artifacts and compressing them
name: Build Stride Docs (Fast Track) for Azure Web App Release 🚀

on:
workflow_dispatch:

jobs:
build-deploy:
# Run this job only if the repository is 'stride3d/stride-docs'
if: github.repository == 'stride3d/stride-docs'
runs-on: windows-2022
environment:
name: 'Production'

steps:
# Setup .NET SDK
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x

# Checkout the Stride Docs repository from the branch that triggered the workflow
- name: Checkout Stride Docs
uses: actions/checkout@v3
with:
path: stride-docs
lfs: true

# Checkout the Stride repository from the default branch
- name: Checkout Stride (note the LFS)
uses: actions/checkout@v3
with:
repository: stride3d/stride
token: ${{ secrets.GITHUB_TOKEN }}
path: stride
lfs: true

- name: Install DocFX
# This installs the latest version of DocFX and may introduce breaking changes
# run: dotnet tool update -g docfx
# This installs a specific, tested version of DocFX.
run: dotnet tool update -g docfx --version 2.70.4

- name: Build documentation
run: ./build-all.bat
working-directory: stride-docs

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'stride-doc'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_4803638D673FA67D0C8650F34C4FA9D1 }}
package: ./stride-docs/_site
8 changes: 6 additions & 2 deletions .github/workflows/stride-docs-staging-azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,25 @@ on:

jobs:
build:
# Run this job only if the repository is 'stride3d/stride-docs'
if: github.repository == 'stride3d/stride-docs'
runs-on: windows-2022

steps:
# Setup .NET SDK
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x

# Checkout the Stride Docs repository from the branch that triggered the workflow
- name: Checkout Stride Docs
uses: actions/checkout@v3
with:
path: stride-docs
lfs: true

# Checkout the Stride repository from the default branch
- name: Checkout Stride (note the LFS)
uses: actions/checkout@v3
with:
Expand All @@ -45,7 +49,7 @@ jobs:
# This installs the latest version of DocFX and may introduce breaking changes.
# run: dotnet tool update -g docfx
# This installs a specific, tested version of DocFX.
run: dotnet tool update -g docfx --version 2.70.3
run: dotnet tool update -g docfx --version 2.70.4

- name: Build documentation
run: ./build-all.bat
Expand Down Expand Up @@ -87,4 +91,4 @@ jobs:
app-name: 'stride-doc'
slot-name: 'staging'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_32FCD402B970463A9143B24C9B225749 }}
package: ./stride-docs/_site
package: ./stride-docs/_site
21 changes: 8 additions & 13 deletions .github/workflows/stride-docs-staging-fast-track-azure.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,35 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

# The Fast Track skips creating artifacts and compressing them
name: Build Stride Docs (Fast Track) for Azure Web App Staging

on:
# push:
# branches:
# - staging
# paths-ignore:
# - 'README.md'
# - 'Stride.Docs.sln'
# - 'BuildDocs.ps1'
# - 'wiki/**'
# - .gitignore
# - '.github/**'
workflow_dispatch:

jobs:
build-deploy:
# Run this job only if the repository is 'stride3d/stride-docs'
if: github.repository == 'stride3d/stride-docs'
runs-on: windows-2022
environment:
name: 'Production'

steps:
# Setup .NET SDK
- name: Dotnet Setup
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.x

# Checkout the Stride Docs repository from the branch that triggered the workflow
- name: Checkout Stride Docs
uses: actions/checkout@v3
with:
path: stride-docs
lfs: true

# Checkout the Stride repository from the default branch
- name: Checkout Stride (note the LFS)
uses: actions/checkout@v3
with:
Expand All @@ -44,10 +39,10 @@ jobs:
lfs: true

- name: Install DocFX
# This installs the latest version of DocFX and may introduce breaking changes.
# This installs the latest version of DocFX and may introduce breaking changes
# run: dotnet tool update -g docfx
# This installs a specific, tested version of DocFX.
run: dotnet tool update -g docfx --version 2.70.3
run: dotnet tool update -g docfx --version 2.70.4

- name: Build documentation
run: ./build-all.bat
Expand All @@ -60,4 +55,4 @@ jobs:
app-name: 'stride-doc'
slot-name: 'staging'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_32FCD402B970463A9143B24C9B225749 }}
package: ./stride-docs/_site
package: ./stride-docs/_site
1 change: 1 addition & 0 deletions .github/workflows/stride-docs-wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
build:
# Run this job only if the repository is 'stride3d/stride-docs'
if: github.repository == 'stride3d/stride-docs'
runs-on: ubuntu-latest

Expand Down
2 changes: 2 additions & 0 deletions Stride.Docs.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Stride.Docs", "Stride.Docs.
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{85103FBF-C9A6-4722-B36B-89A58F55C1DF}"
ProjectSection(SolutionItems) = preProject
.github\workflows\stride-docs-release-azure.yml = .github\workflows\stride-docs-release-azure.yml
.github\workflows\stride-docs-release-fast-track-azure.yml = .github\workflows\stride-docs-release-fast-track-azure.yml
.github\workflows\stride-docs-staging-azure.yml = .github\workflows\stride-docs-staging-azure.yml
.github\workflows\stride-docs-staging-fast-track-azure.yml = .github\workflows\stride-docs-staging-fast-track-azure.yml
.github\workflows\stride-docs-wiki.yml = .github\workflows\stride-docs-wiki.yml
Expand Down
3 changes: 2 additions & 1 deletion en/docfx.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@
"_appTitle": "Stride Docs",
"_enableSearch": true,
"_appLogoPath": "media/stride-logo-red.svg",
"_appFooter": "<div class=\"d-flex flex-column flex-sm-row justify-content-between pt-1 text-center small\"><p >Supported by the <a href=\"https://dotnetfoundation.org/\" target=\"_blank\" rel=\"noopener\">.NET Foundation</a></p><p>Made with <a href=\"https://dotnet.github.io/docfx\">docfx</a></p><p >Stride Docs Website v.2.0.0.5</p><p>&copy; .NET Foundation and Contributors</p></div>",
"_appLogoUrl": "https://www.stride3d.net/",
"_appFooter": "<div class=\"d-flex flex-column flex-sm-row justify-content-between pt-1 text-center small\"><p >Supported by the <a href=\"https://dotnetfoundation.org/\" target=\"_blank\" rel=\"noopener\">.NET Foundation</a></p><p>Made with <a href=\"https://dotnet.github.io/docfx\">docfx</a></p><p >Stride Docs Website v.2.0.0.6</p><p>&copy; .NET Foundation and Contributors</p></div>",
"_gitContribute": {
"repo": "https://github.com/stride3d/stride-docs",
"branch": "master"
Expand Down
2 changes: 1 addition & 1 deletion en/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Stride documentation

Welcome to the Stride documentation, specifically designed for game developers, visual creators, and all users of the powerful Stride game engine. This resource is packed with detailed tutorials, in-depth manuals, and comprehensive API references to help you bring your game development visions to life with Stride. Whether you're new to Stride or looking to hone your skills, you'll find everything you need right here. Dive in, and let's create something extraordinary!
Welcome to the Stride documentation, specifically designed for game developers, visual creators, and all users of the powerful [Stride game engine](https://www.stride3d.net/). This resource is packed with detailed tutorials, in-depth manuals, and comprehensive API references to help you bring your game development visions to life with Stride. Whether you're new to Stride or looking to hone your skills, you'll find everything you need right here. Dive in, and let's create something extraordinary!

> [!TIP]
> This documentation is primarily for users of the Stride engine. If you are interested in contributing to the Stride engine code base, please follow the [Stride contribution instructions](https://github.com/stride3d/stride).
Expand Down
10 changes: 4 additions & 6 deletions en/manual/files-and-folders/distribute-a-game.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,11 @@ When you're ready to publish your game, create a release build from Visual Studi
> [!Tip]
> You might want to rename the **Release** folder to something more descriptive (such as the title of your game).
## To build using terminal instead of VS
### To build using terminal instead of Visual Studio

1. You would need to install VS to get **Developer Command Propmt for VS (Version)**
2. This is needed to run the msbuild command

3. The following command is to build the project to a folder of your choosing
4. ```console
1. You would need to install Visual Studio to get **Developer Command Prompt for Visual Studio (Version)**
2. In Developer Command Prompt for Visual Studio
3. ```console
C:\User> msbuild PathToSln\NameOfProject.sln /p:Configuration=Release /p:OutputPath=YourPreferredPath
```

Expand Down
4 changes: 4 additions & 0 deletions en/template/public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
height: 37px;
}

#navbar ul.navbar-nav {
margin-top: -3px;
}

.filter input, .search input {
padding-top: 0.25rem;
padding-bottom: 0.25rem;
Expand Down
2 changes: 2 additions & 0 deletions en/toc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- name: 📖 Stride Docs
href: index.md
- name: 📚 Manual
href: manual/
homepage: manual/index.md
Expand Down

0 comments on commit 2d27c5d

Please sign in to comment.