docfx icon indicating copy to clipboard operation
docfx copied to clipboard

How do I specify baseUrl for the hrefs generated in xrefmap?

Open xpleria opened this issue 7 years ago • 0 comments

Is there a way to specify the baseUrl to be used when generating the xrefmap.yml file?

So that it generates

href: http://[baseurl]/api/[ProjectName]/[UniqueId].html

instead of

href: api/[ProjectName]/[UniqueId].html


Or else, it would be also helpful if it was possible to simply define the baseUrl in the docfx.json

"xref": [
  {
    "fileName": "xrefmap/xrefmap.yml",
    "baseUrl": "http://baseurl/"
  }
]

The reason behind this is that, I don't want to manually modify the xrefmap.yml file generated by another project.

xpleria avatar Nov 04 '19 14:11 xpleria