Skip to content

Commit f5d54c7

Browse files
committed
Use projects for CI builds
1 parent 3af795b commit f5d54c7

3 files changed

Lines changed: 97 additions & 6 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ jobs:
4343
run: dotnet tool restore
4444

4545
- name: Run Build
46-
run: |
47-
chmod +x ./build.sh
48-
./build.sh
46+
run: dotnet docfx ci.docfx.json
4947

5048
- name: Setup Pages
5149
uses: actions/configure-pages@v5

.github/workflows/pullrequest.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,7 @@ jobs:
4343
run: dotnet tool restore
4444

4545
- name: Run Build
46-
run: |
47-
chmod +x ./build.sh
48-
./build.sh
46+
run: dotnet docfx ci.docfx.json
4947

5048
complete:
5149
runs-on: ubuntu-latest

ci.docfx.json

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
{
2+
"metadata": [
3+
{
4+
"src": [
5+
{
6+
"files": [
7+
"external/MonoGame/MonoGame.Framework/MonoGame.Framework.DesktopGL.csproj",
8+
"external/MonoGame/MonoGame.Framework.Content.Pipeline/MonoGame.Framework.Content.Pipeline.csproj"
9+
]
10+
}
11+
],
12+
"dest": "api",
13+
"includePrivateMembers": false,
14+
"disableGitFeatures": false,
15+
"disableDefaultFilter": false,
16+
"noRestore": false,
17+
"namespaceLayout": "flattened",
18+
"memberLayout": "samePage",
19+
"EnumSortOrder": "alphabetic"
20+
}
21+
],
22+
"rules": {
23+
"InvalidFileLink": "error",
24+
"InvalidBookmark": "error",
25+
"UidNotFound": "error",
26+
"ReferencedXrefPropertyNotString": "error"
27+
},
28+
"build": {
29+
"content": [
30+
{
31+
"files": [
32+
"api/**/*.yml",
33+
"api/**/*.md"
34+
]
35+
},
36+
{
37+
"files": [
38+
"articles/**/*.md",
39+
"articles/**/*.yml",
40+
"foundation/**/*.md",
41+
"roadmap/**/*.md",
42+
"roadmap/**/*.yml",
43+
"errors/**/*.md",
44+
"toc.yml",
45+
"*.md"
46+
],
47+
"exclude": [ "_site/**", "README.md" ]
48+
}
49+
],
50+
"resource": [
51+
{
52+
"files": [
53+
"**/images/**",
54+
"**/videos/**",
55+
"**/files/**",
56+
"**/snippets/**",
57+
"CNAME"
58+
]
59+
}
60+
],
61+
"output": "_site",
62+
"globalMetadata": {
63+
"_appLogoUrl": "https://monogame.net",
64+
"_appFaviconPath": "/images/favicon.png",
65+
"_disableBreadcrumb": "true",
66+
"_appFooter": "Copyright © 2009-2025 MonoGame Foundation, Inc.",
67+
"_hostname": "monogame.net",
68+
"_openGraphImage": "images/social_embed_image.png",
69+
"_description": "One framework for creating powerful cross-platform games.",
70+
"_appTitle": "MonoGame",
71+
"_enableSearch": true
72+
},
73+
"template": [
74+
"default",
75+
"modern",
76+
"templates/monogame"
77+
],
78+
"markdownEngineProperties": {
79+
"markdigExtensions": [
80+
"Abbreviations",
81+
"Figures",
82+
"CustomContainers",
83+
"attributes"
84+
]
85+
},
86+
"postProcessors": [],
87+
"keepFileLink": false,
88+
"disableGitFeatures": false,
89+
"sitemap": {
90+
"baseUrl": "https://docs.monogame.net/",
91+
"priority": 0.1,
92+
"changefreq": "monthly"
93+
}
94+
}
95+
}

0 commit comments

Comments
 (0)