If you look at the structure of an SC-built CHM file, the HTML files are in
/html and the images and other media are in /media.
If you look at the structure of an SC-built HxS file or the SC-built web site, the HTML files are in
/html and the images and other media are in /html/media.
One of the MAML pages in my help file depends on the actual path to the
media folder (see below*), so I can can make the page work for CHM or Hxs/Web, but not both.
My questions are:
- Can you control the path to the media folder (and thus make it the same for all build types)?
- Is it possible to conditionally include different files depending on the build type?
*I am embedding a PDF file inside my CHM file and linking to it from a topic. I include the file by adding the PDF to the project and specifying the
Image BuildAction. The link is generated using this MAML:
<markup> <a href="media/PCConfigGuide.pdf">PC Config Guide</a> <br/></markup>
Which generates this HTML
<a href="/media/PCConfigGuide.pdf" xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">PC Config Guide</a>
Which works in the CHM, but not the HxS or website.