Support for multiple first level toc files in same directory #7862
-
We try to build multiple documentations for one project with gitlab ci and docfx. Each documentation is started from its own docfx.json file:
The problem starts with the toc files. If the files are located in sub directories, the first level of the menu is missing. If the toc files are renamed, the following error occurs:
After adding
Any idea on how to achieve this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
How to reproduce this? |
Beta Was this translation helpful? Give feedback.
-
If you want to use {
"build": {
"content": [
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"*.md"
]
},
{
"files": [
"toc.yml"
],
"src": "webserver1"
}
],
"resource": [
{
"files": [
"images/**"
]
}
],
"overwrite": [
{
"exclude": [
"obj/**",
"_site/**"
]
}
],
"dest": "_site",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [
"default"
],
"postProcessors": [],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false
}
} The docfx/Documentation/tutorial/docfx.exe_user_manual.md Lines 565 to 566 in 3acf0c1 |
Beta Was this translation helpful? Give feedback.
If you want to use
webserver1/toc.yml
as the top-level TOC, you can do it like this: