Rendering API's for multiple versions results in messed up TOC referencing wrong versions
- Dominant language
- C#
- Stars
- 4.4k
- Forks
- 890
- Avg merge
- 2h 9m
- Merged PRs (30d)
- 11
Description
Hi,
I'm trying to generate API docs for 2 versions of the same product using the configuration below. However, docFX outputs links to pages under the 2.2 folder in pages rendered for the 3.0 folder. Am I missing something?
Thanks,
```json
{
"metadata": [
{
"src": [
{
"files": [
"src/3.0/src/MyProduct/**.csproj"
]
}
],
"dest": "api/3.0",
"navRoot": "api/3.0",
"version":"3.0",
"disableGitFeatures": false,
"disableDefaultFilter": false,
"properties": {
"TargetFramework": "netcoreapp3.1",
}
},
{
"src": [
{
"files": [
"src/2.2/MyProduct/**.csproj"
]
}
],
"dest": "api/2.2/",
"navRoot": "api/2.2",
"version":"2.2",
"disableGitFeatures": false,
"disableDefaultFilter": false,
"properties": {
"TargetFramework": "netcoreapp3.1",
}
}
],
"build": {
"content": [
{
"files": [
"api/3.0/**.yml",
"api/3.0/index.md"
]
},
{
"files": [
"api/2.2/**.yml",
"api/2.2/index.md"
]
},
{
"files": [
"articles/**.md",
"articles/**/toc.yml",
"toc.yml",
"*.md"
]
}
],
"resource": [
{
"files": [
"images/**"
]
}
],
"overwrite": [
{
"files": [
"apidoc/**.md"
],
"exclude": [
"obj/**",
"_site/**"
]
}
],
"dest": "_site",
"globalMetadataFiles": [],
"fileMetadataFiles": [],
"template": [
"default"
],
"postProcessors": [],
"markdownEngineName": "markdig",
"noLangKeyword": false,
"keepFileLink": false,
"cleanupCacheHistory": false,
"disableGitFeatures": false
}
}
```
Contributor guide
Assessment
This issue has not been assessed yet.