PageRenderTime 24ms CodeModel.GetById 21ms app.highlight 2ms RepoModel.GetById 0ms app.codeStats 0ms

/Main/Source/Sandcastle/Presentation/vs2005/configuration/sandcastle-mshc.config

#
ASP.NET | 200 lines | 158 code | 20 blank | 22 comment | 0 complexity | a1544e6291b91ff79c5339e060152b6e MD5 | raw file
Possible License(s): CC-BY-SA-3.0
  1<configuration>
  2  <dduetools>
  3    <builder>
  4      <components>
  5
  6        <!-- Create skeleton document -->
  7        <component type="Microsoft.Ddue.Tools.CopyFromFileComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
  8          <data file="%DXROOT%\Presentation\vs2005\Transforms\skeleton.xml" />
  9          <copy source="/*" target="/" />
 10        </component>
 11
 12        <!-- Copy in reflection data -->
 13        <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 14          <index name="reflection" value="/reflection/apis/api" key="@id" cache="10">
 15            <data base="%DXROOT%\Data\Reflection" recurse="true" files="*.xml" />
 16            <data files=".\reflection.xml" />
 17          </index>
 18          <copy name="reflection" source="*" target="/document/reference" />
 19        </component>
 20
 21        <!-- Copy in container data -->
 22        <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 23          <copy name="reflection" key="string(/document/reference/containers/namespace/@api)" source="*[not(local-name()='elements')]" target="/document/reference/containers/namespace" />
 24        </component>
 25        <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 26          <variable expression="/document/reference/containers//type/@api" />
 27          <components>
 28            <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 29              <copy name="reflection" source="apidata|typedata|templates|attributes" target="/document/reference/containers//type[@api=$key]" />
 30            </component>
 31          </components>
 32        </component>
 33
 34	<!-- Copy in explicitInterfaceImplemented reflection data -->
 35        <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 36          <variable expression="/document/reference/implements/member/@api | /document/reference/implements//type/@api" />
 37          <components>
 38            <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 39               <copy name="reflection" source="apidata" target="/document/reference/implements//*[@api=$key and not(apidata)]" />
 40 	      <copy name="reflection" source="templates" target="/document/reference/implements//*[@api=$key and not(apidata) and not(specialization)]" />
 41            </component>
 42          </components>
 43        </component>
 44
 45        <!-- Copy in extension method template/type data -->
 46        <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 47          <variable expression="/document/reference/elements//element[@source='extension']/templates//type/@api" />
 48          <components>
 49            <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 50              <copy name="reflection" source="apidata" target="/document/reference/elements//element[@source='extension']/templates//type[boolean(@api=$key) and not(apidata)]" />
 51              <copy name="reflection" source="templates" target="/document/reference/elements//element[@source='extension']/templates//type[boolean(@api=$key) and not(apidata) and not(specialization)]" />
 52            </component>
 53          </components>
 54        </component>
 55
 56        <!-- Copy in parameter data -->
 57        <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 58          <variable expression="/document/reference/parameters/parameter//type/@api" />
 59          <components>
 60            <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 61              <copy name="reflection" source="apidata" target="/document/reference/parameters/parameter//type[boolean(@api=$key) and not(apidata)]" />
 62            </component>
 63          </components>
 64        </component>
 65
 66        <!-- Copy in templates type reflection data -->
 67        <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 68          <variable expression="/document/reference/templates//type/@api" />
 69          <components>
 70            <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 71              <copy name="reflection" source="apidata" target="/document/reference/templates//type[@api=$key]" />
 72              <copy name="reflection" source="templates" target="/document/reference/templates//type[@api=$key and not(specialization)]" />
 73            </component>
 74          </components>
 75        </component>
 76
 77        <!-- Copy in return type reflection data -->
 78        <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 79          <variable expression="/document/reference/returns//type/@api" />
 80          <components>
 81            <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 82              <copy name="reflection" source="apidata|typedata|family|templates|containers|attributes" target="/document/reference/returns//type[@api=$key]" />
 83            </component>
 84          </components>
 85        </component>
 86
 87        <!-- Copy in event handler type reflection data -->
 88        <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 89          <variable expression="/document/reference/eventhandler/type/@api" />
 90          <components>
 91            <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 92              <copy name="reflection" source="apidata|typedata|family|templates|containers|attributes" target="/document/reference/eventhandler/type[@api=$key]" />
 93            </component>
 94          </components>
 95        </component>
 96
 97        <!-- Generate syntax -->
 98        <component type="Microsoft.Ddue.Tools.IfThenComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
 99          <if condition="not(starts-with($key,'Overload:') or starts-with($key,'R:'))" />
100          <then>
101            <component type="Microsoft.Ddue.Tools.SyntaxComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
102              <syntax input="/document/reference" output="/document/syntax" />
103              <generators>
104                <generator type="Microsoft.Ddue.Tools.VisualBasicDeclarationSyntaxGenerator" assembly="%DXROOT%\ProductionTools\SyntaxComponents.dll" />
105                <generator type="Microsoft.Ddue.Tools.CSharpDeclarationSyntaxGenerator" assembly="%DXROOT%\ProductionTools\SyntaxComponents.dll" />
106                <generator type="Microsoft.Ddue.Tools.CPlusPlusDeclarationSyntaxGenerator" assembly="%DXROOT%\ProductionTools\SyntaxComponents.dll" />
107                <generator type="Microsoft.Ddue.Tools.ScriptSharpDeclarationSyntaxGenerator" assembly="%DXROOT%\ProductionTools\SyntaxComponents.dll" />
108              </generators>
109            </component>
110          </then>
111        </component>
112
113        <!-- Copy in comments -->
114        <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
115          <index name="comments" value="/doc/members/member" key="@name" cache="100">
116            <data base="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727" recurse="false"  files="*.xml" />
117            <data files=".\comments.xml" />
118          </index>
119          <copy name="comments" source="*" target="/document/comments" />
120          <components>
121            <!-- copy comments for inheritdoc -->
122            <component type="Microsoft.Ddue.Tools.InheritDocumentationComponent" assembly="%DXROOT%\ProductionTools\CopyComponents.dll">
123              <copy name="comments" use="reflection" />
124            </component>
125          </components>
126        </component>
127	
128        <!-- Copy in reflection data and comments for members -->
129        <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
130          <variable expression="/document/reference/elements//element/@api" />
131          <components>
132            <component type="Microsoft.Ddue.Tools.IfThenComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
133              <if condition="not(/document/reference/elements//element[@api=$key]/apidata)" />
134              <then>
135                <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
136                  <copy name="reflection" source="*[not(self::elements)]" target="/document/reference/elements//element[@api=$key]" />
137                </component>
138              </then>
139            </component>
140            <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
141              <copy name="comments" source="summary|overloads|inheritdoc" target="/document/reference/elements//element[@api=$key]" />
142              <components>
143                <!-- copy comments for inheritdoc -->
144                <component type="Microsoft.Ddue.Tools.InheritDocumentationComponent" assembly="%DXROOT%\ProductionTools\CopyComponents.dll">
145                  <copy name="comments" use="reflection" />
146                </component>
147              </components>
148            </component>
149          </components>
150        </component>
151
152        <!-- Copy in comments for the member's declaring type. -->
153        <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
154          <copy name="comments" key="string(/document/reference/containers/type/@api)" source="summary" target="/document/reference/containers" />
155        </component>
156
157        <!-- transform -->
158        <component type="Microsoft.Ddue.Tools.TransformComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
159          <transform file="%DXROOT%\Presentation\vs2005\Transforms\main_sandcastle.xsl">
160            <argument key="metadata" value="true" />
161            <argument key="languages">
162              <language label="VisualBasic" name="VisualBasic" style="vb" />
163              <language label="CSharp" name="CSharp" style="cs" />
164              <language label="ManagedCPlusPlus" name="ManagedCPlusPlus" style="cpp" />
165              <!--<language label="JSharp" name="JSharp" style="cs" />
166              <language label="JScript" name="JScript" style="cs" />-->
167	      <language label="JavaScript" name="JavaScript" style="cs" />
168            </argument>
169          </transform>
170        </component>
171
172        <!-- resolve shared content -->
173        <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
174          <content file="%DXROOT%\Presentation\vs2005\content\shared_content_mshc.xml" />
175          <content file="%DXROOT%\Presentation\vs2005\content\reference_content.xml" />
176          <content file="%DXROOT%\Presentation\shared\content\syntax_content.xml" />
177	  <content file="%DXROOT%\Presentation\vs2005\content\feedback_content.xml" />
178        </component>
179
180
181        <!-- resolve reference links -->
182        <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
183          <targets base="%DXROOT%\Data\Reflection" recurse="true" files="*.xml" type="Id" />
184          <targets files=".\reflection.xml" type="Id" />
185        </component>
186
187        <!-- add Microsoft Help System data -->
188        <component type="Microsoft.Ddue.Tools.MSHCComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
189          <data self-branded="true" topic-version="100" toc-file=".\toc.xml" toc-parent="" toc-parent-version="100" />
190        </component>
191
192        <!-- save the result -->
193        <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
194          <save base =".\Output\html" path="concat(/html/head/meta[@name='file']/@content,'.htm')" indent="true" omit-xml-declaration="false" add-xhtml-namespace="true" />
195        </component>
196
197      </components>
198    </builder>
199  </dduetools>
200</configuration>