Skip to content

Instantly share code, notes, and snippets.

@mdschweda
Last active April 3, 2023 16:28
Show Gist options
  • Save mdschweda/08d82c27d392e6f0a35fbadf0d2e28e7 to your computer and use it in GitHub Desktop.
Save mdschweda/08d82c27d392e6f0a35fbadf0d2e28e7 to your computer and use it in GitHub Desktop.
Multiple projects DocFX structure
{
"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
}
}
+-- doc
⁞ +-- api
⁞ ⁞ +-- ProjectA
⁞ ⁞ ⁞ +-- index.md
⁞ ⁞ +-- ProjectB
⁞ ⁞ +-- index.md
⁞ +-- docfx.json
⁞ +-- toc.yml
+-- src
+-- ProjectA
+-- ProjectB
- 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
@virzak
Copy link

virzak commented Dec 19, 2021

does this work for docfx v3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment