I'm using Sandcastle Help File Builder to create polished documentation for an SDK. To support Visual Studio's F1 feature, one of the outputs is in MS Help Viewer format. The problem is when we install the package into Help Viewer 1.0 (Visual Studio 2010) or Help Viewer 2.0 (Visual Studio 2012), the documentation is not placed into a root container.
The "API Reference" node shown in the image is the container for the class library itself. While we could rename this node, doing so would not leave any location for us to include conceptual content in addition to the class library reference. Compare this to the location of the equivalent node in the .NET Framework 4 help.
Question: For consistency with other documentation, how can we have Sandcastle Help File Builder produce MS Help Viewer output in a user-specified top-level container for our project, with the current "API Reference" class library documentation being a child of that node?
The root node is actually specified as a conceptual content document.
Create a new conceptual content document named
MSHelpViewerRoot.aml
in the documentation project using the Conceptual template. The contents could look something like this (replace[Guid]
with a generated GUID and[My Topic]
with your content topic):Add the
MSHelpViewerRoot.aml
conceptual content to the Content Layout document.[My Topic] SDK
as the TitleK
and Term(s)[My Topic] SDK
The resulting configuration might resemble the following:
As a final note, in additional to the root node, you may want to do the following:
Welcome.aml
conceptual content document<relatedTopics>
element ofMSHelpViewerRoot.aml
Welcome.aml
as the Use as the default topic element in the Content Layout settingsLicense.aml
conceptual content document