Last active
April 3, 2023 16:28
-
-
Save mdschweda/08d82c27d392e6f0a35fbadf0d2e28e7 to your computer and use it in GitHub Desktop.
Multiple projects DocFX structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": [ | |
{ | |
"src": [ | |
{ | |
"files": "src/ProjectA/**.cs", | |
"exclude": [ | |
"**/obj/**", | |
"**/bin/**" | |
], | |
"src": ".." | |
} | |
], | |
"dest": "api/ProjectA" | |
}, | |
{ | |
"src": [ | |
{ | |
"files": "src/ProjectB/**.cs", | |
"exclude": [ | |
"**/obj/**", | |
"**/bin/**" | |
], | |
"src": ".." | |
} | |
], | |
"dest": "api/ProjectB" | |
} | |
], | |
"build": { | |
"content": [ | |
{ | |
"files": [ | |
"api/**.yml", | |
"api/**/index.md" | |
] | |
}, | |
{ | |
"files": [ | |
"articles/**.md", | |
"articles/**/toc.yml", | |
"toc.yml", | |
"*.md" | |
], | |
"exclude": [ | |
"obj/**", | |
"bin/**" | |
] | |
} | |
], | |
"resource": [ | |
{ | |
"files": [ | |
"images/**" | |
], | |
"exclude": [ | |
"obj/**" | |
] | |
} | |
], | |
"overwrite": [ | |
{ | |
"files": [ | |
"apidoc/**.md" | |
], | |
"exclude": [ | |
"obj/**" | |
] | |
} | |
], | |
"dest": "_site", | |
"globalMetadataFiles": [], | |
"fileMetadataFiles": [], | |
"template": [ | |
"default" | |
], | |
"postProcessors": [], | |
"noLangKeyword": false | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+-- doc | |
⁞ +-- api | |
⁞ ⁞ +-- ProjectA | |
⁞ ⁞ ⁞ +-- index.md | |
⁞ ⁞ +-- ProjectB | |
⁞ ⁞ +-- index.md | |
⁞ +-- docfx.json | |
⁞ +-- toc.yml | |
+-- src | |
+-- ProjectA | |
+-- ProjectB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Welcome | |
href: articles/ | |
- name: Project A | |
href: api/ProjectA | |
homepage: api/ProjectA/index.md | |
- name: Project B | |
href: api/ProjectB | |
homepage: api/ProjectB/index.md |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you get any MSBuild errors when running docfx build doc/docfx.json?