Skip to content

Commit b5109e4

Browse files
committed
Initial commit
0 parents  commit b5109e4

File tree

3,897 files changed

+75259
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,897 files changed

+75259
-0
lines changed

.gitattributes

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
*.mp4 filter=lfs diff=lfs merge=lfs -text
4+
*.psd filter=lfs diff=lfs merge=lfs -text
5+
*.zip filter=lfs diff=lfs merge=lfs -text
6+
*.pdn filter=lfs diff=lfs merge=lfs -text
7+
*.jpg filter=lfs diff=lfs merge=lfs -text
8+
*.png filter=lfs diff=lfs merge=lfs -text
9+
*.gif filter=lfs diff=lfs merge=lfs -text
10+
*.stg filter=lfs diff=lfs merge=lfs -text
11+
*.exe filter=lfs diff=lfs merge=lfs -text
12+
*.7z filter=lfs diff=lfs merge=lfs -text
13+
*.dll filter=lfs diff=lfs merge=lfs -text
14+
*.ppt filter=lfs diff=lfs merge=lfs -text
15+
*.pptx filter=lfs diff=lfs merge=lfs -text
16+
*.xls filter=lfs diff=lfs merge=lfs -text
17+
*.xslx filter=lfs diff=lfs merge=lfs -text
18+
*.doc filter=lfs diff=lfs merge=lfs -text
19+
*.docx filter=lfs diff=lfs merge=lfs -text
20+
*.webp filter=lfs diff=lfs merge=lfs -text
21+
*.vsdx filter=lfs diff=lfs merge=lfs -text

.github/workflows/github-pages.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Build Stride Docs - Staging - GitHub
2+
on:
3+
# push:
4+
# branches:
5+
# - main
6+
# paths-ignore:
7+
# - 'README.md'
8+
# - 'BuildDocs.ps1'
9+
# - 'wiki/**'
10+
# - '.github/**'
11+
workflow_dispatch:
12+
13+
jobs:
14+
publish-docs:
15+
runs-on: windows-2022
16+
steps:
17+
#- name: Display .NET Core information
18+
# run: dotnet --info
19+
20+
- name: Dotnet Setup
21+
uses: actions/setup-dotnet@v3
22+
with:
23+
dotnet-version: 6.x
24+
25+
- name: Checkout Stride Docs
26+
uses: actions/checkout@v3
27+
with:
28+
path: stride-docs
29+
30+
- name: Checkout Stride (note the LFS)
31+
uses: actions/checkout@v3
32+
with:
33+
repository: stride3d/stride
34+
token: ${{ secrets.GITHUB_TOKEN }}
35+
path: stride
36+
lfs: true
37+
38+
# - name: Copy global.json file
39+
# run: xcopy stride-docs\global.json . /Y
40+
41+
- run: dotnet tool update -g docfx
42+
# - run: dotnet tool install -g docfx --version 2.65.1
43+
44+
- name: Build documentation
45+
run: ./build-all.bat
46+
working-directory: stride-docs
47+
48+
- name: Deploy
49+
uses: peaceiris/actions-gh-pages@v3
50+
with:
51+
github_token: ${{ secrets.GITHUB_TOKEN }}
52+
publish_dir: stride-docs/_site
+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Paths check
2+
on:
3+
workflow_dispatch:
4+
5+
jobs:
6+
publish-docs:
7+
runs-on: windows-2022
8+
steps:
9+
- name: Check .NET Framework version
10+
run: |
11+
reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP" /s | findstr /i version
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: Build Stride Docs for Azure Web App Staging
5+
6+
on:
7+
push:
8+
branches:
9+
- staging
10+
paths-ignore:
11+
- 'README.md'
12+
- 'BuildDocs.ps1'
13+
- 'wiki/**'
14+
- .gitignore
15+
- '.github/**'
16+
workflow_dispatch:
17+
18+
jobs:
19+
build:
20+
runs-on: windows-2022
21+
22+
steps:
23+
- name: Dotnet Setup
24+
uses: actions/setup-dotnet@v3
25+
with:
26+
dotnet-version: 6.x
27+
28+
- name: Checkout Stride Docs
29+
uses: actions/checkout@v3
30+
with:
31+
path: stride-docs
32+
33+
- name: Checkout Stride (note the LFS)
34+
uses: actions/checkout@v3
35+
with:
36+
repository: stride3d/stride
37+
token: ${{ secrets.GITHUB_TOKEN }}
38+
path: stride
39+
lfs: true
40+
41+
- name: Install DocFX
42+
run: dotnet tool update -g docfx
43+
# - run: dotnet tool install -g docfx --version 2.65.1
44+
45+
- name: Build documentation
46+
run: ./build-all.bat
47+
working-directory: stride-docs
48+
49+
- name: Compress artifact
50+
run: 7z a -r DocFX-app.zip ./stride-docs/_site/*
51+
52+
- name: Upload artifact for deployment job
53+
uses: actions/upload-artifact@v3
54+
with:
55+
name: DocFX-app
56+
path: DocFX-app.zip
57+
58+
deploy:
59+
runs-on: windows-2022
60+
needs: build
61+
environment:
62+
name: 'Production'
63+
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
64+
65+
steps:
66+
- name: Download artifact from build job
67+
uses: actions/download-artifact@v3
68+
with:
69+
name: DocFX-app
70+
71+
# - name: List current directory
72+
# run: ls
73+
74+
- name: Decompress artifact
75+
run: 7z x DocFX-app.zip "-o./stride-docs/_site"
76+
77+
- name: Deploy to Azure Web App
78+
id: deploy-to-webapp
79+
uses: azure/webapps-deploy@v2
80+
with:
81+
app-name: 'stride-doc'
82+
slot-name: 'staging'
83+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_32FCD402B970463A9143B24C9B225749 }}
84+
package: ./stride-docs/_site
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
2+
# More GitHub Actions for Azure: https://github.com/Azure/actions
3+
4+
name: Build Stride Docs (Fast Track) for Azure Web App Staging
5+
6+
on:
7+
# push:
8+
# branches:
9+
# - main
10+
# paths-ignore:
11+
# - 'README.md'
12+
# - 'BuildDocs.ps1'
13+
# - 'wiki/**'
14+
# - .gitignore
15+
# - '.github/**'
16+
workflow_dispatch:
17+
18+
jobs:
19+
build-deploy:
20+
runs-on: windows-2022
21+
environment:
22+
name: 'Production'
23+
24+
steps:
25+
- name: Dotnet Setup
26+
uses: actions/setup-dotnet@v3
27+
with:
28+
dotnet-version: 6.x
29+
30+
- name: Checkout Stride Docs
31+
uses: actions/checkout@v3
32+
with:
33+
path: stride-docs
34+
35+
- name: Checkout Stride (note the LFS)
36+
uses: actions/checkout@v3
37+
with:
38+
repository: stride3d/stride
39+
token: ${{ secrets.GITHUB_TOKEN }}
40+
path: stride
41+
lfs: true
42+
43+
- name: Install DocFX
44+
run: dotnet tool update -g docfx
45+
# - run: dotnet tool install -g docfx --version 2.65.1
46+
47+
- name: Build documentation
48+
run: ./build-all.bat
49+
working-directory: stride-docs
50+
51+
- name: Deploy to Azure Web App
52+
id: deploy-to-webapp
53+
uses: azure/webapps-deploy@v2
54+
with:
55+
app-name: 'stride-doc'
56+
slot-name: 'staging'
57+
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_32FCD402B970463A9143B24C9B225749 }}
58+
package: ./stride-docs/_site
+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to GitHub Wiki
2+
on:
3+
push:
4+
branches:
5+
- main
6+
paths:
7+
- wiki/**
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
# if: github.repository == 'stride3d/stride-docs'
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Upload Wiki pages
18+
uses: docker://decathlon/wiki-page-creator-action:2.0.1
19+
env:
20+
GH_PAT: ${{ secrets.GH_PAT }}
21+
ACTION_MAIL: [email protected]
22+
ACTION_NAME: VaclavElias
23+
OWNER: VaclavElias
24+
REPO_NAME: stride-docs-next
25+
MD_FOLDER: wiki

0 commit comments

Comments
 (0)