Skip to content

Commit

Permalink
πŸš€πŸš€πŸš€
Browse files Browse the repository at this point in the history
πŸš€πŸš€πŸš€
  • Loading branch information
AngryBerryMS authored Aug 31, 2022
2 parents 29461cc + 4c97cf4 commit f5ed694
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/specs/markdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -862,10 +862,11 @@ outputs:
inputs:
docfx.yml: |
alternativeHostname: new-docs.microsoft.com
removeHostName: true
docs/a.md: |
[A link](https://new-docs.microsoft.com/en-us/azure)
outputs:
docs/a.json: |
{
"conceptual": "<p><a href=\"/azure\" data-linktype=\"absolute-path\">A link</a></p>",
"conceptual": "<p><a href=\"/en-us/azure\" data-linktype=\"absolute-path\">A link</a></p>",
}
2 changes: 1 addition & 1 deletion src/docfx/build/link/LinkResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public LinkResolver(
return (errors, "", fragment, LinkType.AbsolutePath, null, false);
}
var resolvedHref = _config.RemoveHostName ? UrlUtility.RemoveLeadingHostName(href, _config.HostName) : href;
resolvedHref = UrlUtility.RemoveLeadingHostName(resolvedHref, _config.AlternativeHostName, true);
resolvedHref = UrlUtility.RemoveLeadingHostName(resolvedHref, _config.AlternativeHostName);

return (errors, resolvedHref, fragment, LinkType.AbsolutePath, null, false);
}
Expand Down
2 changes: 1 addition & 1 deletion src/docfx/docfx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.20.0" />
<PackageReference Include="Microsoft.ApplicationInsights.DependencyCollector" Version="2.20.0" />
<PackageReference Include="Microsoft.ChakraCore" Version="1.11.24" />
<PackageReference Include="Microsoft.DocAsCode.ECMAHelper" Version="1.2.2042.74" />
<PackageReference Include="Microsoft.DocAsCode.ECMAHelper" Version="1.2.2067.77" />
<PackageReference Include="Microsoft.DocAsCode.MAML2Yaml.Lib" Version="1.1.2004.11" Aliases="maml" />
<PackageReference Include="Microsoft.Docs.MetadataService.Models" Version="0.3.6" />
<PackageReference Include="Microsoft.Graph" Version="4.25.0" />
Expand Down

0 comments on commit f5ed694

Please sign in to comment.