0

Content of added HTML file not displayed

As a test, I authored a simple HTML file in another application and added it to my Document! X project using the Additional Files functionality. This file is linked to a TOC entry at the top level of the hierarchy, at the same level as the standard introduction and overview topics. The added HTML file references the dotnet2005.css style sheet.

 As I have discovered, the content of the file that I added is not visible in the compiled help. This seems to be due to the media variable in the CSS. If I comment out the relevant section, I can then view the content of the HTML file when I open it individually. However, this workaround does me no good because the CSS seems to be generated at runtime by a javascript.

 So, what should I do? Simply not use dotnet2005.css as my style sheet? Or am I overlooking some setting in the Project settings?

/* Body is initially hidden, unless for print. Improves page rendering quality */
@media print {
    body    {visibility: visible;}
}
@media screen {
    body    {visibility: hidden;}
}

1 comment

Please sign in to leave a comment.