File tree Expand file tree Collapse file tree 11 files changed +279
-1
lines changed Expand file tree Collapse file tree 11 files changed +279
-1
lines changed Original file line number Diff line number Diff line change
1
+ # More GitHub Actions for Azure: https://github.com/Azure/actions
2
+
3
+ name : Build Box2D Docs for GitHub Pages
4
+
5
+ env :
6
+ COMMON_SETTINGS_PATH : docs/docfx.json
7
+
8
+ on :
9
+ workflow_dispatch :
10
+
11
+ jobs :
12
+ publish-docs :
13
+ runs-on : windows-latest
14
+
15
+ steps :
16
+ - name : .NET SDK Setup
17
+ uses : actions/setup-dotnet@v4
18
+ with :
19
+ dotnet-version : 9.x
20
+
21
+ - name : Checkout Box2D.NET
22
+ uses : actions/checkout@v4
23
+
24
+ - name : Run Box2D.NET.CommentConverter.csproj
25
+ run : dotnet build tools/Box2D.NET.CommentConverter/Box2D.NET.CommentConverter.csproj --configuration Release --no-restore
26
+
27
+ - name : Install DocFX
28
+ # This installs the latest version of DocFX and may introduce breaking changes
29
+ # run: dotnet tool update -g docfx
30
+ # This installs a specific, tested version of DocFX.
31
+ run : dotnet tool update -g docfx --version 2.78.2
32
+
33
+ - name : Build Box2D.NET API Docs
34
+ run : docfx metadata ${{ env.COMMON_SETTINGS_PATH }}
35
+
36
+ - name : Build Box2D.NET Docs
37
+ run : docfx build ${{ env.COMMON_SETTINGS_PATH }}
38
+
39
+ - name : Deploy
40
+
41
+ with :
42
+ github_token : ${{ secrets.GITHUB_TOKEN }}
43
+ publish_dir : docs/_site
44
+ publish_branch : gh-pages
Original file line number Diff line number Diff line change 1
- # # Ignore Visual Studio temporary files, build results, and
1
+ # # Ignore Visual Studio temporary files, build results, and
2
2
# # files generated by popular Visual Studio add-ons.
3
3
# #
4
4
# # Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
@@ -399,3 +399,7 @@ FodyWeavers.xsd
399
399
.idea /
400
400
imgui.ini
401
401
settings.ini
402
+
403
+ # DocFX API Generated Pages
404
+ docs /api /*
405
+ docs /_site /*
Original file line number Diff line number Diff line change
1
+ {
2
+ "$schema" : " https://raw.githubusercontent.com/dotnet/docfx/main/schemas/docfx.schema.json" ,
3
+ "metadata" : [
4
+ {
5
+ "src" : [
6
+ {
7
+ "src" : " .." ,
8
+ "files" : [
9
+ " src/Box2D.NET/Box2D.NET.csproj"
10
+ ]
11
+ }
12
+ ],
13
+ "dest" : " api"
14
+ }
15
+ ],
16
+ "build" : {
17
+ "content" : [
18
+ {
19
+ "files" : [
20
+ " **/*.{md,yml}"
21
+ ],
22
+ "exclude" : [
23
+ " _site/**"
24
+ ]
25
+ }
26
+ ],
27
+ "resource" : [
28
+ {
29
+ "files" : [
30
+ " favicon.ico" ,
31
+ " favicon.png" ,
32
+ " images/**"
33
+ ]
34
+ }
35
+ ],
36
+ "output" : " _site" ,
37
+ "template" : [
38
+ " default" ,
39
+ " modern" ,
40
+ " template"
41
+ ],
42
+ "fileMetadata" : {
43
+ "_appTitle" : {
44
+ "api/**/*.md" : " Box2D API" ,
45
+ "api/**/*.yml" : " Box2D API"
46
+ }
47
+ },
48
+ "globalMetadata" : {
49
+ "_appName" : " " ,
50
+ "_appTitle" : " Box2D Docs" ,
51
+ "_appLogoPath" : " images/box2d_logo.svg" ,
52
+ "_enableSearch" : true ,
53
+ "pdf" : false ,
54
+ "_gitContribute" : {
55
+ "repo" : " https://github.com/ikpil/Box2D.NET" ,
56
+ "branch" : " master"
57
+ },
58
+ "_gitUrlPattern" : " github" ,
59
+ "_gitRepo" : " https://github.com/ikpil/Box2D.NET"
60
+ }
61
+ }
62
+ }
Original file line number Diff line number Diff line change
1
+ ---
2
+ _disableToc : false
3
+ ---
4
+ # Box2D.NET Docs
Original file line number Diff line number Diff line change
1
+ - name : 📚 Docs
2
+ href : index.md
3
+ - name : Original Box2D
4
+ href : https://box2d.org/
5
+ - name : Overview
6
+ href : https://box2d.org/documentation/index.html
7
+ - name : FAQ
8
+ href : https://box2d.org/documentation/md_faq.html
Original file line number Diff line number Diff line change
1
+ ---
2
+ _disableToc : false
3
+ ---
4
+ [ !INCLUDE [ readme] ( ../readme.md )]
Original file line number Diff line number Diff line change
1
+ /* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License.txt in the project root for license information. */
2
+
3
+ .navbar-brand # logo {
4
+ height : 56px ;
5
+ }
Original file line number Diff line number Diff line change
1
+ const app = {
2
+ languageDropdownCreated : false ,
3
+ iconLinks : [
4
+ {
5
+ icon : 'github' ,
6
+ href : 'https://github.com/ikpil/Box2D.NET' ,
7
+ title : 'GitHub'
8
+ } ,
9
+ {
10
+ icon : 'discord' ,
11
+ href : 'https://github.com/ikpil/Box2D.NET' ,
12
+ title : 'Discord'
13
+ }
14
+ ]
15
+ } ;
16
+
17
+ export default app ;
You can’t perform that action at this time.
0 commit comments