-
Notifications
You must be signed in to change notification settings - Fork 865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Failed to use xrefmap.json
zip archived file
#9559
Comments
The error you're encountering with DocFX seems related to the expectation of a specific filename ("xrefmap.yml") when utilizing the xrefmap in a zip archive. DocFX's current implementation might not be compatible with the xrefmap in JSON format archived as a zip file. To address this:
For downloading the xrefmap.yml file, it might not exist as a direct replacement for the JSON file you mentioned. The xrefmap might be generated by specific tools or processes within a documentation system. Given the limitation you've encountered with DocFX's handling of xrefmap, you might want to consider:
For a seamless integration, it's ideal for the tool to support xrefmap in various formats, including JSON, when archived as a zip file. However, until this is supported in DocFX, converting the JSON xrefmap to YAML or exploring alternative solutions might be necessary. |
I've confirmed And it can download YAML as zip with following command.
|
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
xref
config to usezip archived xrefmap
.xrefmap.json
with following command.docfx download -x https://learn.microsoft.com/en-us/dotnet/.xrefmap.json xrefmap.zip
docfx build
commandIt seems
XRefArchive
class expectingxrefmap.yml
name only.And don't support
xrefmap.json
format.docfx/src/Docfx.Build/XRefMaps/XRefArchive.cs
Line 14 in 27da553
Expected behavior
It can successfully handle
xrefmap.json
that is archived by ZIP.Context (please complete the following information):
2.74.1
Additional context
Is there
xrefmap.yml
file download URL.That is equivalent to
https://learn.microsoft.com/en-us/dotnet/.xrefmap.json
?The text was updated successfully, but these errors were encountered: