[1146] | 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="..\..\Help\Presentation\Style\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 parameter data -->
|
---|
| 35 | <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 36 | <variable expression="/document/reference/parameters/parameter//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/parameters/parameter//type[boolean(@api=$key) and not(apidata)]" />
|
---|
| 40 | </component>
|
---|
| 41 | </components>
|
---|
| 42 | </component>
|
---|
| 43 |
|
---|
| 44 | <!-- Generate syntax -->
|
---|
| 45 | <component type="Microsoft.Ddue.Tools.IfThenComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 46 | <if condition="not(starts-with($key,'Overload:') or starts-with($key,'R:'))" />
|
---|
| 47 | <then>
|
---|
| 48 | <component type="Microsoft.Ddue.Tools.SyntaxComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 49 | <syntax input="/document/reference" output="/document/syntax" />
|
---|
| 50 | <generators>
|
---|
| 51 | <generator type="Microsoft.Ddue.Tools.CSharpDeclarationSyntaxGenerator" assembly="%DXROOT%\ProductionTools\SyntaxComponents.dll" />
|
---|
| 52 | <generator type="Microsoft.Ddue.Tools.VisualBasicDeclarationSyntaxGenerator" assembly="%DXROOT%\ProductionTools\SyntaxComponents.dll" />
|
---|
| 53 | <generator type="Microsoft.Ddue.Tools.CPlusPlusDeclarationSyntaxGenerator" assembly="%DXROOT%\ProductionTools\SyntaxComponents.dll" />
|
---|
| 54 | </generators>
|
---|
| 55 | </component>
|
---|
| 56 | </then>
|
---|
| 57 | </component>
|
---|
| 58 |
|
---|
| 59 | <!-- Copy in comments -->
|
---|
| 60 | <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 61 | <index name="comments" value="/doc/members/member" key="@name" cache="100">
|
---|
| 62 | <data files="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\*.xml" />
|
---|
| 63 | <data files="Comments\*.xml" />
|
---|
| 64 | </index>
|
---|
| 65 | <copy name="comments" source="*" target="/document/comments" />
|
---|
| 66 | </component>
|
---|
| 67 |
|
---|
| 68 | <!-- Copy in reflection data and comments for members -->
|
---|
| 69 | <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 70 | <variable expression="/document/reference/elements//element/@api" />
|
---|
| 71 | <components>
|
---|
| 72 | <component type="Microsoft.Ddue.Tools.IfThenComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 73 | <if condition="not(/document/reference/elements//element[@api=$key]/apidata)" />
|
---|
| 74 | <then>
|
---|
| 75 | <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 76 | <copy name="reflection" source="*[not(self::elements)]" target="/document/reference/elements//element[@api=$key]" />
|
---|
| 77 | </component>
|
---|
| 78 | </then>
|
---|
| 79 | </component>
|
---|
| 80 | <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 81 | <copy name="comments" source="summary|overloads" target="/document/reference/elements//element[@api=$key]" />
|
---|
| 82 | </component>
|
---|
| 83 | </components>
|
---|
| 84 | </component>
|
---|
| 85 |
|
---|
| 86 | <!-- Copy in comments for the member's declaring type. -->
|
---|
| 87 | <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 88 | <copy name="comments" key="string(/document/reference/containers/type/@api)" source="summary" target="/document/reference/containers" />
|
---|
| 89 | </component>
|
---|
| 90 |
|
---|
| 91 | <!-- Resolve tokens -->
|
---|
| 92 | <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 93 | <content file="..\..\Help\Settings\tokens.xml" />
|
---|
| 94 | <replace elements="/*//token" item="string(.)" />
|
---|
| 95 | <content file=".\version_content.xml" /></component>
|
---|
| 96 |
|
---|
| 97 | <!-- Copy in metadata attributes -->
|
---|
| 98 | <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 99 | <index name="metadata" value="/metadata/topic" key="@id">
|
---|
| 100 | <data files="..\..\Help\Settings\metadata.xml" />
|
---|
| 101 | </index>
|
---|
| 102 | <copy name="metadata" key="string("*")" source="*" target="/document/metadata" />
|
---|
| 103 | </component>
|
---|
| 104 |
|
---|
| 105 | <!-- Resolve external links -->
|
---|
| 106 | <component type="DaveSexton.Sandcastle.ResolveExternalLinksComponent" assembly="%DocProjectPath%\bin\DaveSexton.Sandcastle.dll">
|
---|
| 107 | <mappings target="_blank" file="..\..\Help\Settings\links.xml" />
|
---|
| 108 | </component>
|
---|
| 109 |
|
---|
| 110 | <!-- transform -->
|
---|
| 111 | <component type="Microsoft.Ddue.Tools.TransformComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 112 | <transform file="..\..\Help\Presentation\Style\Transforms\main_sandcastle.xsl">
|
---|
| 113 | <argument key="metadata" value="true" />
|
---|
| 114 | <argument key="languages">
|
---|
| 115 | <language label="VisualBasic" name="VisualBasic" style="vb" />
|
---|
| 116 | <language label="CSharp" name="CSharp" style="cs" />
|
---|
| 117 | <language label="ManagedCPlusPlus" name="ManagedCPlusPlus" style="cpp" />
|
---|
| 118 | <!--<language label="JSharp" name="JSharp" style="cs" />
|
---|
| 119 | <language label="JScript" name="JScript" style="cs" />
|
---|
| 120 | <language label="XAML" name="XAML" style="cs" /> -->
|
---|
| 121 | <language label="JavaScript" name="JavaScript" style="cs" />
|
---|
| 122 | </argument>
|
---|
| 123 | <argument key="bibliographyData" value="../../../Settings/bibliography.xml" /></transform>
|
---|
| 124 | </component>
|
---|
| 125 |
|
---|
| 126 | <!-- resolve shared content -->
|
---|
| 127 | <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 128 | <content file="..\..\Help\Presentation\Style\content\shared_content.xml" />
|
---|
| 129 | <content file="..\..\Help\Presentation\Style\content\reference_content.xml" />
|
---|
| 130 | <content file="..\..\Help\Presentation\Shared\content\syntax_content.xml" />
|
---|
| 131 | </component>
|
---|
| 132 |
|
---|
| 133 | <!-- resolve reference links -->
|
---|
| 134 | <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 135 | <targets base="%DXROOT%\Data\Reflection" recurse="true" files="*.xml" type="msdn" />
|
---|
| 136 | <targets files=".\reflection.xml" type="local" />
|
---|
| 137 | </component>
|
---|
| 138 |
|
---|
| 139 | <!-- save the result -->
|
---|
| 140 | <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="%DXROOT%\ProductionTools\BuildComponents.dll">
|
---|
| 141 | <save base=".\Output\html" path="concat(/html/head/meta[@name='guid']/@content,'.htm')" indent="false" omit-xml-declaration="true" />
|
---|
| 142 | </component>
|
---|
| 143 |
|
---|
| 144 | </components>
|
---|
| 145 | </builder>
|
---|
| 146 | </dduetools>
|
---|
| 147 | </configuration>
|
---|