1

In my Sandcastle Help File Builder project I have an HTML folder under the Content folder. It only contains HTML files! None are type of .AML (Application Markup Language File). How do I get these files to show up after compiling my SHFB project?

enter image description here

Each HTML file in that folder is set to the build action of content

enter image description here

If I try to reference these files using a conceptual topic file using the External Link xml tag... I have the problem of not knowing the relative path.

enter image description here

But better yet, shouldn't I be able to automatically include these from the content layout file (directly)? It allows for individual new HTML files but these were already created...

enter image description here

Would an Iframe work to show all html content in that HTML folder?

Thanks for suggestions!

4

1 回答 1

1

解决方案原来是这样的:

<section address="Section1">
  <title>Optional section title</title>
  <content>     
    <code language="html" source="Content\SomeContent.html"></code>
    <para>
      <markup>
        <iframe src="Content\SomeContent.html"></iframe>
      </markup>
    </para>         
  </content>
</section>

请注意,代码标签不需要将源文件“包含”到项目中。这令人惊讶,因为 iframe src 具有相同的位置,并且起初不会显示 html。将文件包含到项目中并将构建更改为“内容”后,一切正常。

于 2016-06-29T02:48:46.643 回答