You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by mh...@apache.org on 2011/09/19 07:09:10 UTC
[Lucene.Net] svn commit: r1172426 [8/9] - in
/incubator/lucene.net/branches/Lucene.Net_4e: build/scripts/ packages/SHFB/
packages/SHFB/Colorizer/ packages/SHFB/SharedContent/
packages/SHFB/Templates/ packages/SHFB/Web/
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/TransformBuildLog.xsl
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/TransformBuildLog.xsl?rev=1172426&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/TransformBuildLog.xsl (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/TransformBuildLog.xsl Mon Sep 19 05:09:06 2011
@@ -0,0 +1,183 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:msxsl="urn:schemas-microsoft-com:xslt"
+ xmlns:shfb="urn:shfb-extensions">
+
+<!--
+// System : Sandcastle Help File Builder
+// File : BuildLog.xsl
+// Author : Eric Woodruff
+// Updated : 12/30/2009
+// Note : Copyright 2008-2009, Eric Woodruff, All rights reserved
+//
+// This is used to convert a SHFB build log into a viewable HTML page.
+-->
+
+ <xsl:param name="filterOn" select="'false'" />
+
+ <msxsl:script language="C#" implements-prefix="shfb">
+ <msxsl:using namespace="System.Text" />
+ <msxsl:using namespace="System.Text.RegularExpressions" />
+ <![CDATA[
+ private static Regex reScriptName = new Regex(@"^\[.*?\\.*?\]|" +
+ @"Project \x22.*?\..*?proj\x22", RegexOptions.Multiline);
+
+ private static Regex reWarning = new Regex(@"(Warn|Warning( HXC\d+)?):|" +
+ @"SHFB\s*:\s*Warning\s.*?:|.*?(\(\d*,\d*\))?:\s*warning\s.*?:",
+ RegexOptions.IgnoreCase);
+
+ private static Regex reErrors = new Regex(
+ @"^\s*((Error|UnrecognizedOption|Unhandled Exception|Fatal Error|" +
+ @"Unexpected error.*|HHC\d+: Error|(Fatal )?Error HXC\d+):|" +
+ @"Process is terminated|Build FAILED|\w+\s*:\s*Error\s.*?:|" +
+ @".*?\(\d*,\d*\):\s*error\s.*?:)",
+ RegexOptions.IgnoreCase | RegexOptions.Multiline);
+
+ // Encode a few special characters, add a style to script names, warnings,
+ // and errors, and return a non-breaking space if empty.
+ public static string StyleLogText(string logText, string filterOn)
+ {
+ // System.Web isn't always available so do some simple encoding
+ logText = logText.Trim().Replace("&", "&");
+ logText = logText.Replace("<", "<");
+ logText = logText.Replace(">", ">");
+
+ // Include all text or just filter for warnings and errors?
+ if(filterOn == "false")
+ {
+ logText = reScriptName.Replace(logText, "<span class=\"ScriptName\">$0</span>");
+ logText = reWarning.Replace(logText, "<span class=\"Warning\">$0</span>");
+ logText = reErrors.Replace(logText, "<span class=\"Error\">$0</span>");
+ }
+ else
+ {
+ StringBuilder sb = new StringBuilder(2048);
+
+ foreach(string s in logText.Split('\n'))
+ {
+ if(reWarning.IsMatch(s))
+ {
+ sb.Append(reWarning.Replace(s, "<span class=\"Warning\">$0</span>"));
+ sb.Append('\n');
+ }
+ else
+ if(reErrors.IsMatch(s))
+ {
+ sb.Append(reErrors.Replace(s, "<span class=\"Error\">$0</span>"));
+ sb.Append('\n');
+ }
+ }
+
+ logText = sb.ToString();
+ }
+
+ return (logText.Length == 0) ? " " : logText;
+ }
+ ]]>
+ </msxsl:script>
+
+ <xsl:output method="xml" omit-xml-declaration="yes" encoding="utf-8" />
+
+ <!-- Main template for the log -->
+ <xsl:template match="/shfbBuild">
+<html>
+<head>
+<title><xsl:value-of select="product"/></title>
+<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
+<style>
+ body { font-size: 8pt; font-family: Arial, Verdana, sans-serif; color: black; background-color: white; }
+ h3 { margin: 0px; }
+ h4 { margin: 0px; }
+ pre { font-family: Consolas, "Courier New", Courier, monospace; font-size: 8pt; margin-top: 0px; margin-left: 20px; margin-bottom: 20px; padding: 0px; }
+ .SectionHeader { background-color: #0066cc; color: white; padding: 5px; width: 95%; margin-left: 0px; margin-right: 2px; margin-top: 0px; padding: 2px; }
+ .CollapsedHeader { background-color: #dcdcdc; color: black; padding: 5px; width: 95%; margin-left: 0px; margin-right: 2px; margin-top: 0px; padding: 2px; }
+ .Warning { font-weight: bold; background-color: #ffd700; padding: 2px; }
+ .Error { font-weight: bold; background-color: #b22222; color: #ffffff; padding: 2px; }
+ .CollapseBox { cursor: pointer; color: black; text-align: center; border-style: solid; border-width: 1px; border-color: gray; margin-left: 0px; margin-right: 2px; margin-top: 0px; padding: 2px; width: 20px; }
+ .ScriptName { font-weight: bold; }
+ .PlugIn { border-left: black 5px solid; padding-top: 5px; padding-bottom: 5px; padding-left: 10px; }
+ .PlugInHeader { background-color: #cccc99; color: black; width: 95%; padding: 2px; }
+</style>
+</head>
+
+<body>
+<h3><xsl:value-of select="@product"/> <xsl:value-of select="@version"/> Build Log</h3>
+<h4>Project File: <xsl:value-of select="@projectFile"/></h4>
+<h4>Build Started: <xsl:value-of select="@started"/></h4>
+
+<xsl:if test="$filterOn = 'true'">
+(Filtered for warnings and errors only)
+</xsl:if>
+
+<br/><hr/>
+<a href="#" onclick="javascript: ExpandCollapseAll(false);">Collapse All</a>    <a href="#" onclick="javascript: ExpandCollapseAll(true);">Expand All</a>
+<hr/>
+
+<!-- Process the build steps -->
+<xsl:apply-templates select="buildStep" />
+
+<hr/>
+End of Log
+<hr/>
+<a href="#" onclick="javascript: ExpandCollapseAll(false);">Collapse All</a>    <a href="#" onclick="javascript: ExpandCollapseAll(true);">Expand All</a>
+
+<script type="text/javascript">
+// Expand/collapse a section
+function ExpandCollapse(showId, hideId)
+{
+ var showSpan = document.getElementById(showId),
+ hideSpan = document.getElementById(hideId);
+
+ showSpan.style.display = "inline";
+ hideSpan.style.display = "none";
+}
+
+// Expand or collapse all sections
+function ExpandCollapseAll(expand)
+{
+ var spans = document.getElementsByTagName("span")
+ var spanIdx, id;
+
+ for(spanIdx = 0; spanIdx != spans.length - 1; spanIdx++)
+ {
+ id = spans[spanIdx].getAttribute('id');
+
+ if(id.substr(0, 4) == "col_")
+ if(expand)
+ ExpandCollapse("exp_" + id.substr(4), id);
+ else
+ ExpandCollapse(id, "exp_" + id.substr(4));
+ }
+}
+</script>
+
+</body>
+</html>
+ </xsl:template>
+
+ <!-- Build step template -->
+ <xsl:template match="buildStep">
+ <span id="col_{@step}" style="display: none;"><span class="CollapseBox" onclick="javascript: ExpandCollapse('exp_{@step}', 'col_{@step}');">+</span>
+ <span><span class="CollapsedHeader"><xsl:value-of select="@step"/></span><br/><br/></span></span><span id="exp_{@step}" style="display: inline;">
+ <span class="CollapseBox" onclick="javascript: ExpandCollapse('col_{@step}', 'exp_{@step}');">-</span>
+
+ <span class="SectionHeader"><xsl:value-of select="@step"/></span><br/><br/>
+ <pre>
+ <xsl:apply-templates />
+ </pre>
+ </span>
+ </xsl:template>
+
+ <!-- Plug-in template -->
+ <xsl:template match="plugIn">
+ <div class="PlugIn"><span class="PlugInHeader"><b>Plug-In:</b> <xsl:value-of select="@name" />  <b>Running:</b> <xsl:value-of select="@behavior" />  <b>Priority:</b> <xsl:value-of select="@priority" /></span><br/>
+ <xsl:value-of select="shfb:StyleLogText(text(), $filterOn)" disable-output-escaping="yes" />
+ </div>
+ </xsl:template>
+
+ <!-- Text template -->
+ <xsl:template match="text()">
+ <xsl:value-of select="shfb:StyleLogText(., $filterOn)" disable-output-escaping="yes" />
+ </xsl:template>
+
+</xsl:stylesheet>
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/TransformManifest.proj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/TransformManifest.proj?rev=1172426&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/TransformManifest.proj (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/TransformManifest.proj Mon Sep 19 05:09:06 2011
@@ -0,0 +1,64 @@
+<Project DefaultTargets="Transform" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
+ <!-- Sandcastle Help File Builder Tasks. http://SHFB.CodePlex.com -->
+ <UsingTask TaskName="SandcastleBuilder.Utils.MSBuild.XslTransform"
+ AssemblyFile="$(SHFBROOT)\SandcastleBuilder.Utils.dll" />
+
+ <!-- Task properties -->
+ <PropertyGroup>
+ <PresentationStyle>{@PresentationParam}</PresentationStyle>
+ <ProjectNodeParam>{@IncludeProjectNode}</ProjectNodeParam>
+ <SandcastlePath>{@SandcastlePath}</SandcastlePath>
+ <WorkingFolder>{@HtmlEncWorkingFolder}</WorkingFolder>
+ </PropertyGroup>
+
+ <!-- This defines the dependencies for the Transform target -->
+ <PropertyGroup>
+ <TransformDependsOn>
+ BeforeTransformManifest;
+ TransformManifest;
+ AfterTransformManifest
+ </TransformDependsOn>
+ </PropertyGroup>
+
+ <Target Name="Transform" DependsOnTargets="$(TransformDependsOn)" />
+
+ <!-- The Transform Manifest target -->
+ <Target Name="TransformManifest">
+ <!-- Transform the reflection output based on the presentation style -->
+ <SandcastleBuilder.Utils.MSBuild.XslTransform Condition="'$(PresentationStyle)' == 'vs2005'"
+ SandcastlePath="$(SandcastlePath)"
+ WorkingFolder="$(WorkingFolder)"
+ Transformations="ProductionTransforms\ApplyVSDocModel.xsl;ProductionTransforms\AddGuidFilenames.xsl"
+ Arguments="IncludeAllMembersTopic=true;IncludeInheritedOverloadTopics=true;$(ProjectNodeParam)"
+ InputFile="reflection.org"
+ OutputFile="reflection.xml" />
+
+ <SandcastleBuilder.Utils.MSBuild.XslTransform Condition="'$(PresentationStyle)' == 'hana'"
+ SandcastlePath="$(SandcastlePath)"
+ WorkingFolder="$(WorkingFolder)"
+ Transformations="ProductionTransforms\ApplyVSDocModel.xsl;ProductionTransforms\AddGuidFilenames.xsl"
+ Arguments="IncludeAllMembersTopic=false;IncludeInheritedOverloadTopics=true;$(ProjectNodeParam)"
+ InputFile="reflection.org"
+ OutputFile="reflection.xml" />
+
+ <SandcastleBuilder.Utils.MSBuild.XslTransform Condition="'$(PresentationStyle)' == 'prototype'"
+ SandcastlePath="$(SandcastlePath)"
+ WorkingFolder="$(WorkingFolder)"
+ Transformations="ProductionTransforms\ApplyPrototypeDocModel.xsl;ProductionTransforms\AddGuidFilenames.xsl"
+ InputFile="reflection.org"
+ OutputFile="reflection.xml" />
+
+ <!-- Generate the topic manifest -->
+ <SandcastleBuilder.Utils.MSBuild.XslTransform
+ SandcastlePath="$(SandcastlePath)"
+ WorkingFolder="$(WorkingFolder)"
+ Transformations="ProductionTransforms\ReflectionToManifest.xsl"
+ InputFile="reflection.xml"
+ OutputFile="manifest.xml" />
+ </Target>
+
+ <!-- The following targets may be overridden or replaced to perform
+ additional processing. -->
+ <Target Name="BeforeTransformManifest" />
+ <Target Name="AfterTransformManifest" />
+</Project>
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/VS2005.config
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/VS2005.config?rev=1172426&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/VS2005.config (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/VS2005.config Mon Sep 19 05:09:06 2011
@@ -0,0 +1,417 @@
+<configuration>
+<dduetools>
+ <builder>
+ <components>
+
+ <!-- Create skeleton document -->
+ <component type="Microsoft.Ddue.Tools.CopyFromFileComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <data file="{@PresentationPath}Transforms\skeleton.xml" />
+ <copy source="/*" target="/" />
+ </component>
+
+ <!-- Copy in reflection data -->
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <index name="reflection" value="/reflection/apis/api" key="@id" cache="10">
+ <data base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" />
+ <data files="reflection.xml" />
+ </index>
+ <copy name="reflection" source="*" target="/document/reference" />
+ </component>
+
+ <!-- Copy in container data -->
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" key="string(/document/reference/containers/namespace/@api)" source="*[not(local-name()='elements')]" target="/document/reference/containers/namespace" />
+ </component>
+
+ <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <variable expression="/document/reference/containers//type/@api" />
+ <components>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" source="apidata|typedata|templates|attributes" target="/document/reference/containers//type[@api=$key]" />
+ </component>
+ </components>
+ </component>
+
+ <!-- Copy in explicitInterfaceImplemented reflection data -->
+ <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <variable expression="/document/reference/implements/member/@api | /document/reference/implements//type/@api" />
+ <components>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" source="apidata" target="/document/reference/implements//*[@api=$key and not(apidata)]" />
+ <copy name="reflection" source="templates" target="/document/reference/implements//*[@api=$key and not(apidata) and not(specialization)]" />
+ </component>
+ </components>
+ </component>
+
+ <!-- Copy in extension method template/type data -->
+ <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <variable expression="/document/reference/elements//element[@source='extension']/templates//type/@api" />
+ <components>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" source="apidata" target="/document/reference/elements//element[@source='extension']/templates//type[boolean(@api=$key) and not(apidata)]" />
+ <copy name="reflection" source="templates" target="/document/reference/elements//element[@source='extension']/templates//type[boolean(@api=$key) and not(apidata) and not(specialization)]" />
+ </component>
+ </components>
+ </component>
+
+ <!-- Copy in parameter data -->
+ <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <variable expression="/document/reference/parameters/parameter//type/@api" />
+ <components>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" source="apidata" target="/document/reference/parameters/parameter//type[boolean(@api=$key) and not(apidata)]" />
+ </component>
+ </components>
+ </component>
+
+ <!-- Copy in templates type reflection data -->
+ <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <variable expression="/document/reference/templates//type/@api" />
+ <components>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" source="apidata" target="/document/reference/templates//type[@api=$key]" />
+ <copy name="reflection" source="templates" target="/document/reference/templates//type[@api=$key and not(specialization)]" />
+ </component>
+ </components>
+ </component>
+
+ <!-- Copy in return type reflection data -->
+ <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <variable expression="/document/reference/returns//type/@api" />
+ <components>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" source="apidata|typedata|family|templates|containers|attributes" target="/document/reference/returns//type[@api=$key]" />
+ </component>
+ </components>
+ </component>
+
+ <!-- Copy in event handler type reflection data -->
+ <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <variable expression="/document/reference/eventhandler/type/@api" />
+ <components>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" source="apidata|typedata|family|templates|containers|attributes" target="/document/reference/eventhandler/type[@api=$key]" />
+ </component>
+ </components>
+ </component>
+
+ <!-- Generate syntax -->
+ <component type="Microsoft.Ddue.Tools.IfThenComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <if condition="not(starts-with($key,'Overload:') or starts-with($key,'R:'))" />
+ <then>
+ <component type="Microsoft.Ddue.Tools.SyntaxComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <syntax input="/document/reference" output="/document/syntax" />
+ <generators>
+{@SyntaxFilters}
+ </generators>
+ </component>
+ </then>
+ </component>
+
+ <!-- Copy in comments -->
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <index name="comments" value="/doc/members/member" key="@name" cache="100">
+{@FrameworkCommentList}
+{@CommentFileList}
+ </index>
+ <copy name="comments" source="*" target="/document/comments" />
+ </component>
+
+ <!-- Copy in reflection data and comments for members -->
+ <component type="Microsoft.Ddue.Tools.ForEachComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <variable expression="/document/reference/elements//element/@api" />
+ <components>
+ <component type="Microsoft.Ddue.Tools.IfThenComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <if condition="not(/document/reference/elements//element[@api=$key]/apidata)" />
+ <then>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="reflection" source="*[not(self::elements)]" target="/document/reference/elements//element[@api=$key]" />
+ </component>
+ </then>
+ </component>
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="comments" source="summary|overloads" target="/document/reference/elements//element[@api=$key]" />
+ </component>
+ </components>
+ </component>
+
+ <!-- Copy in comments for the member's declaring type. -->
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <copy name="comments" key="string(/document/reference/containers/type/@api)" source="summary" target="/document/reference/containers" />
+ </component>
+
+ <!-- Show missing documentation component configuration. This must
+ appear before the TransformComponent. -->
+ <component type="SandcastleBuilder.Components.ShowMissingComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ id="Show Missing Documentation Component">
+ <!-- All elements are optional. -->
+
+ <!-- Auto-document constructors (true by default) -->
+ <AutoDocumentConstructors value="{@AutoDocumentConstructors}" />
+
+ <!-- Auto-document dispose methods (true by default) -->
+ <AutoDocumentDisposeMethods value="{@AutoDocumentDisposeMethods}" />
+
+ <!-- Show missing param tags (true by default) -->
+ <ShowMissingParams value="{@ShowMissingParams}" />
+
+ <!-- Show missing typeparam tags (true by default) -->
+ <ShowMissingTypeParams value="{@ShowMissingTypeParams}" />
+
+ <!-- Show missing remarks tags (false by default) -->
+ <ShowMissingRemarks value="{@ShowMissingRemarks}" />
+
+ <!-- Show missing returns tags (true by default) -->
+ <ShowMissingReturns value="{@ShowMissingReturns}" />
+
+ <!-- Show missing summary tags (true by default) -->
+ <ShowMissingSummaries value="{@ShowMissingSummaries}" />
+
+ <!-- Show missing value tags (false by default) -->
+ <ShowMissingValues value="{@ShowMissingValues}" />
+
+ <!-- Show missing namespace comments (true by default) -->
+ <ShowMissingNamespaces value="{@ShowMissingNamespaces}" />
+
+ <!-- Show missing include targets (true by default) -->
+ <ShowMissingIncludeTargets value="{@ShowMissingIncludeTargets}" />
+
+ <!-- Shared content file containing the localized messages
+ (optional) -->
+ <contentFile filename="SharedBuilderContent.xml" />
+ </component>
+
+ <!-- Version information component configuration. This must appear
+ before the TransformComponent. See also: PostTransformComponent -->
+ <component type="SandcastleBuilder.Components.VersionInfoComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ id="Version Information Component">
+ <!-- Reflection information file for version info (required) -->
+ <reflectionFile filename="reflection.xml" />
+ </component>
+
+ <!-- Code block component configuration. This must appear before the
+ TransformComponent. See also: PostTransformComponent. -->
+ <component type="SandcastleBuilder.Components.CodeBlockComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ id="Code Block Component">
+ <!-- Base path for relative filenames in source attributes (optional) -->
+ <basePath value="{@HtmlEncProjectFolder}" />
+
+ <!-- Connect to language filter (optional). If omitted,
+ language filtering is enabled by default. -->
+ <languageFilter value="true" />
+
+ <!-- Allow missing source files (Optional). If omitted,
+ it will generate errors if referenced source files
+ are missing. -->
+ <allowMissingSource value="false" />
+
+ <!-- Remove region markers from imported code blocks. If omitted,
+ region markers in imported code blocks are left alone. -->
+ <removeRegionMarkers value="false" />
+
+ <!-- Code colorizer options (required).
+ Attributes:
+ Language syntax configuration file (required)
+ XSLT style file (required)
+ "Copy" image file URL (required)
+ Default language (optional)
+ Enable line numbering (optional)
+ Enable outlining (optional)
+ Keep XML comment "see" tags within the code (optional)
+ Tab size override (optional, 0 = Use syntax file setting)
+ Use language name as default title (optional) -->
+ <colorizer syntaxFile="{@SHFBFolder}Colorizer\highlight.xml"
+ styleFile="{@SHFBFolder}Colorizer\highlight.xsl"
+ copyImageUrl="../icons/CopyCode.gif"
+ language="cs" numberLines="false" outlining="false"
+ keepSeeTags="false" tabSize="0" defaultTitle="true" />
+ </component>
+
+ <!-- transform -->
+ <component type="Microsoft.Ddue.Tools.TransformComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <transform file="{@PresentationPath}Transforms\main_sandcastle.xsl">
+ <argument key="metadata" value="true" />
+ <argument key="languages">
+{@SyntaxFiltersDropDown}
+ </argument>
+ </transform>
+ </component>
+
+ <!-- Post-transform component configuration. This must appear after the
+ TransformComponent. See also: CodeBlockComponent. -->
+ <component type="SandcastleBuilder.Components.PostTransformComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ id="Post-transform Component">
+ <!-- Code colorizer files (required).
+ Attributes:
+ Stylesheet file (required)
+ Script file (required)
+ "Copy" image file (required) -->
+ <colorizer stylesheet="{@SHFBFolder}Colorizer\highlight.css"
+ scriptFile="{@SHFBFolder}Colorizer\highlight.js"
+ copyImage="{@SHFBFolder}Colorizer\CopyCode.gif" />
+
+ <!-- Base output paths for the files (required). These should match
+ the parent folder of the output path of the HTML files (see
+ each of the SaveComponent instances below). -->
+ <outputPaths>
+{@HelpFormatOutputPaths}
+ </outputPaths>
+
+ <!-- Logo image file (optional). Filename is required. The height,
+ width, altText, placement, and alignment attributes are
+ optional. -->
+ <logoFile filename="" height="0" width="0" altText=""
+ placement="left" alignment="left" />
+ </component>
+
+ <!-- This section is used in the component help topic -->
+ <!-- #region Multi-format output component -->
+
+ <!-- Multi-format output component. This must wrap the component set
+ unique to each output file format. -->
+ <component type="SandcastleBuilder.Components.MultiFormatOutputComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ id="Multi-format Output Component">
+ <!-- This defines the formats to generate -->
+ <build formats="{@HelpFileFormat}" />
+
+ <!-- This defines the set of components for HTML Help 1 files -->
+ <helpOutput format="HtmlHelp1">
+ <!-- Resolve shared content -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <content file="{@PresentationPath}content\{@LanguageFolder}shared_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}reference_content.xml" />
+ <content file="{@SandcastlePath}Presentation\shared\content\{@LanguageFolder}syntax_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}feedback_content.xml" />
+ <!-- These must be last in order to override other elements! -->
+ <content file="SharedBuilderContent.xml" />
+ <content file="PresentationStyleBuilderContent.xml" />
+{@ResourceItemFiles}
+ </component>
+
+ <!-- Resolve reference links -->
+ <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2"
+ assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll"
+ locale="{@Locale}" linkTarget="{@SdkLinkTarget}">
+ <targets base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" type="{@HtmlSdkLinkType}" />
+ <targets files="reflection.xml" type="Local" />
+ </component>
+
+ <!-- Save the result -->
+ <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <save base="Output\HtmlHelp1\html" path="concat(/html/head/meta[@name='file']/@content,'.htm')" indent="{@IndentHtml}"
+ omit-xml-declaration="true" add-xhtml-namespace="false" />
+ </component>
+ </helpOutput>
+
+ <!-- This defines the set of components for MS Help 2 files -->
+ <helpOutput format="MSHelp2">
+ <!-- Resolve shared content -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <content file="{@PresentationPath}content\{@LanguageFolder}shared_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}reference_content.xml" />
+ <content file="{@SandcastlePath}Presentation\shared\content\{@LanguageFolder}syntax_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}feedback_content.xml" />
+ <!-- These must be last in order to override other elements! -->
+ <content file="SharedBuilderContent.xml" />
+ <content file="PresentationStyleBuilderContent.xml" />
+{@ResourceItemFiles}
+ </component>
+
+ <!-- Insert additional MS Help 2 attributes -->
+ <component id="MS Help 2 Attributes"
+ type="SandcastleBuilder.Components.MSHelpAttrComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll">
+{@HelpAttributes}
+ </component>
+
+ <!-- Resolve reference links -->
+ <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2"
+ assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll"
+ locale="{@Locale}" linkTarget="{@SdkLinkTarget}">
+ <targets base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" type="{@MSHelp2SdkLinkType}" />
+ <targets files="reflection.xml" type="Index" />
+ </component>
+
+ <!-- Save the result -->
+ <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <save base="Output\MSHelp2\html" path="concat(/html/head/meta[@name='file']/@content,'.htm')" indent="{@IndentHtml}"
+ omit-xml-declaration="true" add-xhtml-namespace="false" />
+ </component>
+ </helpOutput>
+
+ <!-- This defines the set of components for MS Help Viewer files -->
+ <helpOutput format="MSHelpViewer">
+ <!-- Resolve shared content -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <content file="{@PresentationPath}content\{@LanguageFolder}shared_content_mshc.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}reference_content.xml" />
+ <content file="{@SandcastlePath}Presentation\shared\content\{@LanguageFolder}syntax_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}feedback_content.xml" />
+ <!-- These must be last in order to override other elements! -->
+ <content file="SharedBuilderContent.xml" />
+ <content file="PresentationStyleBuilderContent.xml" />
+{@ResourceItemFiles}
+ </component>
+
+ <!-- Resolve reference links -->
+ <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2"
+ assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll"
+ locale="{@Locale}" linkTarget="{@SdkLinkTarget}">
+ <targets base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" type="{@MSHelpViewerSdkLinkType}" />
+ <targets files="reflection.xml" type="Id" />
+ </component>
+
+ <!-- Add MS Help Viewer metadata -->
+ <component type="SandcastleBuilder.Components.MSHCComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll">
+ <data self-branded="{@SelfBranded}" topic-version="{@TopicVersion}" toc-file="toc.xml"
+ toc-parent="{@ApiTocParentId}" toc-parent-version="{@TocParentVersion}" locale="{@Locale}" />
+ </component>
+
+ <!-- Save the result -->
+ <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <save base="Output\MSHelpViewer\html" path="concat(/html/head/meta[@name='file']/@content,'.htm')" indent="{@IndentHtml}"
+ omit-xml-declaration="false" add-xhtml-namespace="true" />
+ </component>
+ </helpOutput>
+
+ <!-- This defines the set of components for websites -->
+ <helpOutput format="Website">
+ <!-- Resolve shared content -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <content file="{@PresentationPath}content\{@LanguageFolder}shared_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}reference_content.xml" />
+ <content file="{@SandcastlePath}Presentation\shared\content\{@LanguageFolder}syntax_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}feedback_content.xml" />
+ <!-- These must be last in order to override other elements! -->
+ <content file="SharedBuilderContent.xml" />
+ <content file="PresentationStyleBuilderContent.xml" />
+{@ResourceItemFiles}
+ </component>
+
+ <!-- Resolve reference links -->
+ <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2"
+ assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll"
+ locale="{@Locale}" linkTarget="{@SdkLinkTarget}">
+ <targets base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" type="{@WebsiteSdkLinkType}" />
+ <targets files="reflection.xml" type="Local" />
+ </component>
+
+ <!-- Save the result -->
+ <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <save base="Output\Website\html" path="concat(/html/head/meta[@name='file']/@content,'.htm')" indent="{@IndentHtml}"
+ omit-xml-declaration="true" add-xhtml-namespace="false" />
+ </component>
+ </helpOutput>
+ </component>
+ <!-- #endregion -->
+
+ </components>
+ </builder>
+ </dduetools>
+</configuration>
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/VS2005.xsl
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/VS2005.xsl?rev=1172426&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/VS2005.xsl (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/VS2005.xsl Mon Sep 19 05:09:06 2011
@@ -0,0 +1,264 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xsl:stylesheet version="1.1" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:MSHelp="http://msdn.microsoft.com/mshelp"
+ xmlns:mshelp="http://msdn.microsoft.com/mshelp"
+ xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5"
+ xmlns:xlink="http://www.w3.org/1999/xlink"
+ xmlns:msxsl="urn:schemas-microsoft-com:xslt">
+
+<!--
+// System : Sandcastle Help File Builder Utilities
+// File : VS2005.xsl
+// Author : Eric Woodruff
+// Updated : 03/15/2008
+// Note : Copyright 2007-2008, Eric Woodruff, All rights reserved
+//
+// This is used to convert *.topic additional content files into *.html files
+// that have the same appearance as API topics using the VS2005 presentation
+// style.
+-->
+
+ <xsl:output method="xml" omit-xml-declaration="yes" encoding="utf-8" />
+
+ <!-- This parameter, if specified, defines the path to the root folder -->
+ <xsl:param name="pathToRoot" select="string('')" />
+
+ <!-- Allow for alternate header text -->
+ <xsl:variable name="customHeader">
+ <xsl:choose>
+ <xsl:when test="topic/headerTitle">
+ <xsl:value-of select="topic/headerTitle"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- The product title is replaced with the project's HTML encoded HelpTitle value -->
+ <@HtmlEncHelpTitle/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
+
+ <!-- Main template for the topic -->
+ <xsl:template match="/topic">
+<html>
+<head>
+<title><xsl:value-of select="title"/></title>
+<link rel="stylesheet" type="text/css" href="{$pathToRoot}styles/presentation.css" />
+<link rel="stylesheet" type="text/css" href="ms-help://Hx/HxRuntime/HxLink.css" />
+<script type="text/javascript" src="{$pathToRoot}scripts/EventUtilities.js"> </script>
+<script type="text/javascript" src="{$pathToRoot}scripts/SplitScreen.js"> </script>
+<script type="text/javascript" src="{$pathToRoot}scripts/Dropdown.js"> </script>
+<!-- <script type="text/javascript" src="{$pathToRoot}scripts/script_loc.js"> </script> -->
+<script type="text/javascript" src="{$pathToRoot}scripts/script_manifold.js"> </script>
+<script type="text/javascript" src="{$pathToRoot}scripts/script_feedBack.js"> </script>
+<script type="text/javascript" src="{$pathToRoot}scripts/CheckboxMenu.js"> </script>
+<script type="text/javascript" src="{$pathToRoot}scripts/CommonUtilities.js"> </script>
+<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8" />
+<META NAME="save" CONTENT="history" />
+
+<!-- Stylesheet and script for colorized code blocks -->
+<link type="text/css" rel="stylesheet" href="{$pathToRoot}styles/highlight.css" />
+<script type="text/javascript" src="{$pathToRoot}scripts/highlight.js"></script>
+
+<xml>
+ <MSHelp:Attr Name="DocSet" Value="NetFramework" />
+ <MSHelp:Attr Name="DocSet" Value="<@HtmlHelpName>" />
+ <MSHelp:Attr Name="Locale" Value="<@Locale>" />
+ <MSHelp:Attr Name="TargetOS" Value="Windows" />
+
+<!-- Include the user's XML data island for MS Help 2.0 if present -->
+<xsl:if test="xml">
+ <xsl:copy-of select="xml/*"/>
+</xsl:if>
+</xml>
+
+<!-- Add a link to an additional stylesheet if specified -->
+<xsl:if test="styleSheet">
+ <link rel="stylesheet" type="text/css">
+ <xsl:attribute name="href">
+ <xsl:value-of select="$pathToRoot"/>
+ <xsl:value-of select="styleSheet/@filename"/>
+ </xsl:attribute>
+ </link>
+</xsl:if>
+</head>
+
+<body>
+<input type="hidden" id="userDataCache" class="userDataStyle" />
+<input type="hidden" id="hiddenScrollOffset" />
+<img id="collapseImage" style="display:none; height:0; width:0;" src="{$pathToRoot}icons/collapse_all.gif" alt="Collapse image" />
+<img id="expandImage" style="display:none; height:0; width:0;" src="{$pathToRoot}icons/expand_all.gif" alt="Expand Image" />
+<img id="collapseAllImage" style="display:none; height:0; width:0;" src="{$pathToRoot}icons/collapse_all.gif" />
+<img id="expandAllImage" style="display:none; height:0; width:0;" src="{$pathToRoot}icons/expand_all.gif" />
+<img id="dropDownImage" style="display:none; height:0; width:0;" src="{$pathToRoot}icons/dropdown.gif" />
+<img id="dropDownHoverImage" style="display:none; height:0; width:0;" src="{$pathToRoot}icons/dropdownHover.gif" />
+<img id="copyImage" style="display:none; height:0; width:0;" src="{$pathToRoot}icons/copycode.gif" alt="Copy image" />
+<img id="copyHoverImage" style="display:none; height:0; width:0;" src="{$pathToRoot}icons/copycodeHighlight.gif" alt="CopyHover image" />
+
+<div id="header">
+<!-- Include the logo if present -->
+<xsl:choose>
+ <xsl:when test="logoFile">
+ <xsl:apply-templates select="logoFile"/>
+ </xsl:when>
+ <xsl:otherwise>
+<table id="topTable" cellpadding="0" cellspacing="0">
+ <tr id="headerTableRow1">
+ <td align="left"><span id="runningHeaderText"><xsl:value-of select="$customHeader"/></span></td>
+ </tr>
+ <tr id="headerTableRow2">
+ <td align="left"><span id="nsrTitle"><xsl:value-of select="title"/></span></td>
+ </tr>
+ <tr id="headerTableRow3">
+ <td align="left"><span id="headfb" class="feedbackhead" /></td>
+ </tr>
+</table>
+ </xsl:otherwise>
+</xsl:choose>
+<table id="gradientTable">
+ <tr>
+ <td class="nsrBottom" background="{$pathToRoot}icons/gradient.gif" />
+ </tr>
+</table>
+</div>
+
+<div id="mainSection">
+<div id="mainBody">
+<div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()" />
+
+<!-- Process the body text -->
+<xsl:apply-templates select="bodyText" />
+</div>
+</div>
+
+<div id="footer">
+<div class="footerLine"><img width="100%" height="3px" src="{$pathToRoot}icons/footer.gif" alt="Footer image"/></div>
+
+<!-- This includes the footer item from the shared content -->
+<include item="footer"/>
+<!-- <include item="feedback_script_block"/> -->
+</div>
+
+</body>
+</html>
+ </xsl:template>
+
+ <!-- Pass through html tags from the body -->
+ <xsl:template match="p|ol|ul|li|dl|dt|dd|table|tr|th|td|h1|h2|h3|h4|h5|h6|hr|br|pre|blockquote|div|span|a|img|b|i|strong|em|del|sub|sup|abbr|acronym|u|font|link|script|code|map|area">
+ <xsl:copy>
+ <xsl:copy-of select="@*" />
+ <xsl:apply-templates />
+ </xsl:copy>
+ </xsl:template>
+
+ <!-- Add the logo -->
+ <xsl:template match="logoFile">
+ <xsl:choose>
+ <xsl:when test="@placement='above'">
+<table id="topTable" cellpadding="0" cellspacing="0">
+ <tr>
+ <td>
+ <xsl:if test="@alignment">
+ <xsl:attribute name="align">
+ <xsl:value-of select="@alignment"/>
+ </xsl:attribute>
+ </xsl:if>
+ <img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="$pathToRoot"/>
+ <xsl:value-of select="@filename"/>
+ </xsl:attribute>
+ <xsl:attribute name="altText">
+ <xsl:value-of select="@altText"/>
+ </xsl:attribute>
+ <xsl:if test="@height">
+ <xsl:attribute name="height">
+ <xsl:value-of select="@height"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@width">
+ <xsl:attribute name="width">
+ <xsl:value-of select="@width"/>
+ </xsl:attribute>
+ </xsl:if>
+ </img></td>
+ </tr>
+ <tr id="headerTableRow1">
+ <td align="left"><span id="runningHeaderText"><xsl:value-of select="$customHeader"/></span></td>
+ </tr>
+ <tr id="headerTableRow2">
+ <td align="left"><span id="nsrTitle"><xsl:value-of select="parent::*/title"/></span></td>
+ </tr>
+ <tr id="headerTableRow3">
+ <td align="left"><span id="headfb" class="feedbackhead" /></td>
+ </tr>
+</table>
+ </xsl:when>
+ <xsl:when test="@placement='right'">
+<table id="topTable" cellpadding="0" cellspacing="0">
+ <tr id="headerTableRow1">
+ <td align="left"><span id="runningHeaderText"><xsl:value-of select="$customHeader"/></span></td>
+ <td rowspan="3" align="center" style="width: 1px; padding: 0px"><img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="$pathToRoot"/>
+ <xsl:value-of select="@filename"/>
+ </xsl:attribute>
+ <xsl:attribute name="altText">
+ <xsl:value-of select="@altText"/>
+ </xsl:attribute>
+ <xsl:if test="@height">
+ <xsl:attribute name="height">
+ <xsl:value-of select="@height"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@width">
+ <xsl:attribute name="width">
+ <xsl:value-of select="@width"/>
+ </xsl:attribute>
+ </xsl:if>
+ </img></td>
+ </tr>
+ <tr id="headerTableRow2">
+ <td align="left"><span id="nsrTitle"><xsl:value-of select="parent::*/title"/></span></td>
+ </tr>
+ <tr id="headerTableRow3">
+ <td align="left"><span id="headfb" class="feedbackhead" /></td>
+ </tr>
+</table>
+ </xsl:when>
+ <xsl:otherwise>
+<table id="topTable" cellpadding="0" cellspacing="0">
+ <tr>
+ <td rowspan="4" align="center" style="width: 1px; padding: 0px"><img>
+ <xsl:attribute name="src">
+ <xsl:value-of select="$pathToRoot"/>
+ <xsl:value-of select="@filename"/>
+ </xsl:attribute>
+ <xsl:attribute name="altText">
+ <xsl:value-of select="@altText"/>
+ </xsl:attribute>
+ <xsl:if test="@height">
+ <xsl:attribute name="height">
+ <xsl:value-of select="@height"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:if test="@width">
+ <xsl:attribute name="width">
+ <xsl:value-of select="@width"/>
+ </xsl:attribute>
+ </xsl:if>
+ </img></td>
+ </tr>
+ <tr id="headerTableRow1">
+ <td align="left"><span id="runningHeaderText"><xsl:value-of select="$customHeader"/></span></td>
+ </tr>
+ <tr id="headerTableRow2">
+ <td align="left"><span id="nsrTitle"><xsl:value-of select="parent::*/title"/></span></td>
+ </tr>
+ <tr id="headerTableRow3">
+ <td align="left"><span id="headfb" class="feedbackhead" /></td>
+ </tr>
+</table>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
+</xsl:stylesheet>
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/conceptual.config
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/conceptual.config?rev=1172426&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/conceptual.config (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Templates/conceptual.config Mon Sep 19 05:09:06 2011
@@ -0,0 +1,328 @@
+<configuration>
+ <dduetools>
+ <builder>
+ <components>
+
+ <!-- Create skeleton document -->
+ <component type="Microsoft.Ddue.Tools.CopyFromFileComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <data file="{@PresentationPath}Transforms\skeleton_conceptual.xml" />
+ <copy source="/*" target="/" />
+ </component>
+
+ <!-- Copy in comments -->
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <index name="comments" value="/topic" key="@id">
+ <data files="ddueXml\*.xml" />
+ </index>
+ <copy name="comments" source="/topic" target="/document" />
+ </component>
+
+ <!-- resolve tokens -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <context prefix="ddue" name="http://ddue.schemas.microsoft.com/authoring/2003/5" />
+ <content file="HelpFileBuilderTokens.tokens" />
+{@TokenFiles}
+ <replace elements="/*//ddue:token" item="string(.)" />
+ </component>
+
+ <!-- copy in metadata attributes -->
+ <component type="Microsoft.Ddue.Tools.CopyFromIndexComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <index name="metadata" value="/metadata/topic" key="@id">
+ <data files="_ContentMetadata_.xml" />
+ </index>
+ <copy name="metadata" source="*" target="/document/metadata" />
+ <copy name="metadata" key="string('*')" source="*" target="/document/metadata" />
+ </component>
+
+ <!-- Resolve code snippets -->
+ <component type="Microsoft.Ddue.Tools.ExampleComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+{@CodeSnippetsFiles}
+ <colors language="VisualBasic">
+ <color pattern="^\s*'[^\r\n]*" class="comment" />
+ <color pattern="\"[^"\r\n]*\"" class="literal" />
+ <color pattern="\b((AddHandler)|(AddressOf)|(Alias)|(And)|(AndAlso)|(As)|(Boolean)|(ByRef)|(Byte)|(ByVal)|(Call)|(Case)|(Catch)|(CBool)|(CByte)|(CChar)|(CDate)|(CDec)|(CDbl)|(Char)|(CInt)|(Class)|(CLng)|(CObj)|(Const)|(Continue)|(CSByte)|(CShort)|(CSng)|(CStr)|(CType)|(CUInt)|(CULng)|(CUShort)|(Date)|(Decimal)|(Declare)|(Default)|(Delegate)|(Dim)|(DirectCast)|(Do)|(Double)|(Each)|(Else)|(ElseIf)|(End)|(EndIf)|(Enum)|(Erase)|(Error)|(Event)|(Exit)|(False)|(Finally)|(For)|(Friend)|(From)|(Function)|(Get)|(GetType)|(GetXMLNamespace)|(Global)|(GoSub)|(GoTo)|(Handles)|(If)|(Implements)|(Imports)|(In)|(Inherits)|(Integer)|(Interface)|(Is)|(IsNot)|(Let)|(Lib)|(Like)|(Long)|(Loop)|(Me)|(Mod)|(Module)|(MustInherit)|(MustOverride)|(MyBase)|(MyClass)|(Namespace)|(Narrowing)|(New)|(Next)|(Not)|(Nothing)|(NotInheritable)|(NotOverridable)|(Object)|(Of)|(On)|(Operator)|(Option)|(Optional)|(Or)|(OrElse)|(Overloads)|(Overridable)|(Overrides)|(ParamArray)|(Partial)|(Private)|(Prop
erty)|(Protected)|(Public)|(RaiseEvent)|(ReadOnly)|(ReDim)|(REM)|(RemoveHandler)|(Resume)|(Return)|(SByte)|(Select)|(Set)|(Shadows)|(Shared)|(Short)|(Single)|(Static)|(Step)|(Stop)|(String)|(Structure)|(Sub)|(SyncLock)|(Then)|(Throw)|(To)|(True)|(Try)|(TryCast)|(TypeOf)|(Variant)|(Wend)|(UInteger)|(ULong)|(UShort)|(Until)|(Using)|(When)|(Where)|(While)|(Widening)|(With)|(WithEvents)|(WriteOnly)|(Xor)|(#Const)|(#Else)|(#ElseIf)|(#End)|(#If))\b" class="keyword" />
+ </colors>
+ <colors language="CSharp">
+ <color pattern="/\*(.|\n)+?\*/" class="comment" />
+ <color pattern="\"[^"\r\n]*\"" class="literal" />
+ <color pattern="//[^\r\n]*" class="comment" />
+ <color pattern="\b((abstract)|(as)|(ascending)|(base)|(bool)|(break)|(by)|(byte)|(case)|(catch)|(char)|(checked)|(class)|(const)|(continue)|(decimal)|(default)|(delegate)|(descending)|(do)|(double)|(else)|(enum)|(equals)|(event)|(explicit)|(extern)|(false)|(finally)|(fixed)|(float)|(for)|(foreach)|(from)|(get)|(goto)|(group)|(if)|(implicit)|(in)|(int)|(interface)|(internal)|(into)|(is)|(join)|(let)|(lock)|(long)|(namespace)|(new)|(null)|(object)|(operator)|(on)|(orderby)|(out)|(override)|(params)|(partial)|(private)|(protected)|(public)|(readonly)|(ref)|(return)|(sbyte)|(sealed)|(select)|(set)|(short)|(sizeof)|(stackalloc)|(static)|(string)|(struct)|(switch)|(this)|(throw)|(true)|(try)|(typeof)|(uint)|(ulong)|(unchecked)|(unsafe)|(ushort)|(using)|(value)|(var)|(vield)|(virtual)|(volatile)|(void)|(where)|(while))\b" class="keyword" />
+ </colors>
+ <colors language="ManagedCPlusPlus">
+ <color pattern="/\*(.|\n)+?\*/" class="comment" />
+ <color pattern="\"[^"\r\n]*\"" class="literal" />
+ <color pattern="//[^\r\n]*" class="comment" />
+ <color pattern="\b((abstract)|(array)|(bool)|(break)|(case)|(catch)|(char)|(class)|(const)|(continue)|(default)|(delegate)|(delete)|(deprecated)|(dllexport)|(dllimport)|(do)|(double)|(else)|(enum)|(event)|(explicit)|(extern)|(false)|(finally)|(float)|(for)|(friend)|(gcnew)|(generic)|(goto)|(if)|(initonly)|(inline)|(int)|(interface)|(literal)|(long)|(mutable)|(naked)|(namespace)|(new)|(noinline)|(noreturn)|(nothrow)|(novtable)|(nullptr)|(operator)|(private)|(property)|(protected)|(public)|(ref)|(register)|(return)|(safecast)|(sealed)|(selectany)|(short)|(signed)|(sizeof)|(static)|(struct)|(switch)|(template)|(this)|(thread)|(throw)|(true)|(try)|(typedef)|(typeid)|(typename)|(union)|(unsigned)|(using)|(uuid)|(value)|(virtual)|(void)|(volatile)|(while))\b" class="keyword" />
+ </colors>
+ <colors language="FSharp">
+ <color pattern="\(\*(.|\n)+?\*\)" class="comment" />"
+ <color pattern="\"[^"\r\n]*\"" class="literal" />
+ <color pattern="//[^\r\n]*" class="comment" />
+ <color pattern="\b((abstract)|(and)|(as)|(asr)|(assert)|(atomic)|(base)|(begin)|(break)|(checked)|(class)|(component)|(const)|(constraint)|(constructor)|(continue)|(default)|(delegate)|(do)|(done)|(downcast)|(downto)|(eager)|(elif)|(else)|(end)|(event)|(exception)|(extern)|(external)|(false)|(finally)|(fixed)|(for)|(fun)|(function)|(functor)|(global)|(if)|(in)|(include)|(inherit)|(inline)|(interface)|(internal)|(land)|(lazy)|(let)|(lor)|(lsl)|(lsr)|(lxor)|(match)|(member)|(method)|(mixin)|(mod)|(module)|(mutable)|(namespace)|(new)|(null)|(object)|(of)|(open)|(or)|(override)|(parallel)|(private)|(process)|(protected)|(public)|(pure)|(rec)|(return)|(sealed)|(sig)|(static)|(struct)|(tailcall)|(then)|(to)|(trait)|(true)|(try)|(type)|(upcast)|(use)|(val)|(virtual)|(void)|(volatile)|(when)|(while)|(with)|(yield))\b" class="keyword" />
+ </colors>
+ </component>
+
+ <!-- Code block component configuration. This must appear before the
+ TransformComponent. See also: PostTransformComponent. -->
+ <component type="SandcastleBuilder.Components.CodeBlockComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ id="Code Block Component">
+ <!-- Base path for relative filenames in source attributes (optional) -->
+ <basePath value="{@HtmlEncProjectFolder}" />
+
+ <!-- Connect to language filter (optional). If omitted,
+ language filtering is enabled by default. -->
+ <languageFilter value="true" />
+
+ <!-- Allow missing source files (Optional). If omitted,
+ it will generate errors if referenced source files
+ are missing. -->
+ <allowMissingSource value="false" />
+
+ <!-- Remove region markers from imported code blocks. If omitted,
+ region markers in imported code blocks are left alone. -->
+ <removeRegionMarkers value="false" />
+
+ <!-- Code colorizer options (required).
+ Attributes:
+ Language syntax configuration file (required)
+ XSLT style file (required)
+ "Copy" image file URL (required)
+ Default language (optional)
+ Enable line numbering (optional)
+ Enable outlining (optional)
+ Keep XML comment "see" tags within the code (optional)
+ Tab size override (optional, 0 = Use syntax file setting)
+ Use language name as default title (optional) -->
+ <colorizer syntaxFile="{@SHFBFolder}Colorizer\highlight.xml"
+ styleFile="{@SHFBFolder}Colorizer\highlight.xsl"
+ copyImageUrl="../icons/CopyCode.gif"
+ language="cs" numberLines="false" outlining="false"
+ keepSeeTags="false" tabSize="0" defaultTitle="true" />
+ </component>
+
+ <!-- transform -->
+ <component type="Microsoft.Ddue.Tools.TransformComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <transform file="{@PresentationPath}Transforms\main_conceptual.xsl">
+ <argument key="metadata" value="true" />
+ <argument key="languages">
+{@SyntaxFiltersDropDown}
+ </argument>
+ </transform>
+ </component>
+
+ <!-- Post-transform component configuration. This must appear after the
+ TransformComponent. See also: CodeBlockComponent. -->
+ <component type="SandcastleBuilder.Components.PostTransformComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ id="Post-transform Component">
+ <!-- Code colorizer files (required).
+ Attributes:
+ Stylesheet file (required)
+ Script file (required)
+ "Copy" image file (required) -->
+ <colorizer stylesheet="{@SHFBFolder}Colorizer\highlight.css"
+ scriptFile="{@SHFBFolder}Colorizer\highlight.js"
+ copyImage="{@SHFBFolder}Colorizer\CopyCode.gif" />
+
+ <!-- Base output paths for the files (required). These should match
+ the parent folder of the output path of the HTML files (see
+ each of the SaveComponent instances below). -->
+ <outputPaths>
+{@HelpFormatOutputPaths}
+ </outputPaths>
+
+ <!-- Logo image file (optional). Filename is required. The height,
+ width, altText, placement, and alignment attributes are
+ optional. -->
+ <logoFile filename="" height="0" width="0" altText=""
+ placement="left" alignment="left" />
+ </component>
+
+ <!-- Multi-format output component. This must wrap the component set
+ unique to each output file format. -->
+ <component type="SandcastleBuilder.Components.MultiFormatOutputComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ id="Multi-format Output Component">
+ <!-- This defines the formats to generate -->
+ <build formats="{@HelpFileFormat}" />
+
+ <!-- This defines the set of components for HTML Help 1 files -->
+ <helpOutput format="HtmlHelp1">
+ <!-- Resolve shared content -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <content file="{@PresentationPath}content\{@LanguageFolder}shared_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}feedBack_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}conceptual_content.xml" />
+ <!-- These must be last in order to override other elements! -->
+ <content file="SharedBuilderContent.xml" />
+ <content file="PresentationStyleBuilderContent.xml" />
+{@ResourceItemFiles}
+ </component>
+
+ <!-- Resolve art links -->
+ <component type="Microsoft.Ddue.Tools.ResolveArtLinksComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <targets input="Media" baseOutput=".\Output\HtmlHelp1" outputPath="string('media')" link="../media" map="_MediaContent_.xml" />
+ </component>
+
+ <!-- Resolve conceptual links -->
+ <component type="SandcastleBuilder.Components.ResolveConceptualLinksComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ showBrokenLinkText="true">
+ <targets base="xmlComp" type="Local" />
+ </component>
+
+ <!-- Resolve reference links -->
+ <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2"
+ assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll"
+ locale="{@Locale}" linkTarget="{@SdkLinkTarget}">
+ <targets base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" type="{@HtmlSdkLinkType}" />
+ <targets files="reflection.xml" type="Local" />
+ </component>
+
+ <!-- Save the result -->
+ <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <save base="Output\HtmlHelp1\html" path="concat($key,'.htm')" indent="{@IndentHtml}" omit-xml-declaration="true"
+ add-xhtml-namespace="false" />
+ </component>
+ </helpOutput>
+
+ <!-- This defines the set of components for MS Help 2 files -->
+ <helpOutput format="MSHelp2">
+ <!-- Resolve shared content -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <content file="{@PresentationPath}content\{@LanguageFolder}shared_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}feedBack_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}conceptual_content.xml" />
+ <!-- These must be last in order to override other elements! -->
+ <content file="SharedBuilderContent.xml" />
+ <content file="PresentationStyleBuilderContent.xml" />
+{@ResourceItemFiles}
+ </component>
+
+ <!-- Insert additional MS Help 2 attributes -->
+ <component id="MS Help 2 Attributes"
+ type="SandcastleBuilder.Components.MSHelpAttrComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll">
+{@HelpAttributes}
+ </component>
+
+ <!-- Resolve art links -->
+ <component type="Microsoft.Ddue.Tools.ResolveArtLinksComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <targets input="Media" baseOutput=".\Output\MSHelp2" outputPath="string('media')" link="../media" map="_MediaContent_.xml" />
+ </component>
+
+ <!-- Resolve conceptual links -->
+ <component type="SandcastleBuilder.Components.ResolveConceptualLinksComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ showBrokenLinkText="true">
+ <targets base="xmlComp" type="Index" />
+ </component>
+
+ <!-- Resolve reference links -->
+ <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2"
+ assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll"
+ locale="{@Locale}" linkTarget="{@SdkLinkTarget}">
+ <targets base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" type="{@MSHelp2SDKLinkType}" />
+ <targets files="reflection.xml" type="Index" />
+ </component>
+
+ <!-- Save the result -->
+ <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <save base="Output\MSHelp2\html" path="concat($key,'.htm')" indent="{@IndentHtml}" omit-xml-declaration="true"
+ add-xhtml-namespace="false" />
+ </component>
+ </helpOutput>
+
+ <!-- This defines the set of components for MS Help Viewer files -->
+ <helpOutput format="MSHelpViewer">
+ <!-- Resolve shared content -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <content file="{@PresentationPath}content\{@LanguageFolder}shared_content_mshc.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}feedBack_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}conceptual_content.xml" />
+ <!-- These must be last in order to override other elements! -->
+ <content file="SharedBuilderContent.xml" />
+ <content file="PresentationStyleBuilderContent.xml" />
+{@ResourceItemFiles}
+ </component>
+
+ <!-- Resolve art links -->
+ <component type="Microsoft.Ddue.Tools.ResolveArtLinksComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <targets input="Media" baseOutput=".\Output\MSHelpViewer" outputPath="string('media')" link="media" map="_MediaContent_.xml" />
+ </component>
+
+ <!-- Resolve conceptual links -->
+ <component type="SandcastleBuilder.Components.ResolveConceptualLinksComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ showBrokenLinkText="true">
+ <targets base="xmlComp" type="Id" />
+ </component>
+
+ <!-- Resolve reference links -->
+ <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2"
+ assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll"
+ locale="{@Locale}" linkTarget="{@SdkLinkTarget}">
+ <targets base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" type="{@MSHelpViewerSdkLinkType}" />
+ <targets files="reflection.xml" type="Id" />
+ </component>
+
+ <!-- Add MS Help Viewer metadata -->
+ <component type="SandcastleBuilder.Components.MSHCComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll">
+ <data self-branded="{@SelfBranded}" topic-version="{@TopicVersion}" toc-file="_ConceptualTOC_.xml"
+ toc-parent="{@TocParentId}" toc-parent-version="{@TocParentVersion}" locale="{@Locale}" />
+ </component>
+
+ <!-- Save the result -->
+ <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <save base="Output\MSHelpViewer\html" path="concat($key,'.htm')" indent="{@IndentHtml}" omit-xml-declaration="false"
+ add-xhtml-namespace="true" />
+ </component>
+ </helpOutput>
+
+ <!-- This defines the set of components for websites -->
+ <helpOutput format="Website">
+ <!-- Resolve shared content -->
+ <component type="Microsoft.Ddue.Tools.SharedContentComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <content file="{@PresentationPath}content\{@LanguageFolder}shared_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}feedBack_content.xml" />
+ <content file="{@PresentationPath}content\{@LanguageFolder}conceptual_content.xml" />
+ <!-- These must be last in order to override other elements! -->
+ <content file="SharedBuilderContent.xml" />
+ <content file="PresentationStyleBuilderContent.xml" />
+{@ResourceItemFiles}
+ </component>
+
+ <!-- Resolve art links -->
+ <component type="Microsoft.Ddue.Tools.ResolveArtLinksComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <targets input="Media" baseOutput=".\Output\Website" outputPath="string('media')" link="../media" map="_MediaContent_.xml" />
+ </component>
+
+ <!-- Resolve conceptual links -->
+ <component type="SandcastleBuilder.Components.ResolveConceptualLinksComponent"
+ assembly="{@SHFBFolder}SandcastleBuilder.Components.dll"
+ showBrokenLinkText="true">
+ <targets base="xmlComp" type="Local" />
+ </component>
+
+ <!-- Resolve reference links -->
+ <component type="Microsoft.Ddue.Tools.ResolveReferenceLinksComponent2"
+ assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll"
+ locale="{@Locale}" linkTarget="{@SdkLinkTarget}">
+ <targets base="{@SandcastlePath}Data\Reflection" recurse="true" files="*.xml" type="{@WebsiteSdkLinkType}" />
+ <targets files="reflection.xml" type="Local" />
+ </component>
+
+ <!-- Save the result -->
+ <component type="Microsoft.Ddue.Tools.SaveComponent" assembly="{@SandcastlePath}ProductionTools\BuildComponents.dll">
+ <save base="Output\Website\html" path="concat($key,'.htm')" indent="{@IndentHtml}" omit-xml-declaration="true"
+ add-xhtml-namespace="false" />
+ </component>
+ </helpOutput>
+ </component>
+
+ </components>
+ </builder>
+ </dduetools>
+</configuration>
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/CloseSearch.png
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/CloseSearch.png?rev=1172426&view=auto
==============================================================================
Files incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/CloseSearch.png (added) and incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/CloseSearch.png Mon Sep 19 05:09:06 2011 differ
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/CollapseAll.bmp
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/CollapseAll.bmp?rev=1172426&view=auto
==============================================================================
Files incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/CollapseAll.bmp (added) and incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/CollapseAll.bmp Mon Sep 19 05:09:06 2011 differ
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Collapsed.gif
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Collapsed.gif?rev=1172426&view=auto
==============================================================================
Files incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Collapsed.gif (added) and incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Collapsed.gif Mon Sep 19 05:09:06 2011 differ
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/ExpandAll.bmp
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/ExpandAll.bmp?rev=1172426&view=auto
==============================================================================
Files incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/ExpandAll.bmp (added) and incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/ExpandAll.bmp Mon Sep 19 05:09:06 2011 differ
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Expanded.gif
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Expanded.gif?rev=1172426&view=auto
==============================================================================
Files incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Expanded.gif (added) and incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Expanded.gif Mon Sep 19 05:09:06 2011 differ
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/FillNode.aspx
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/FillNode.aspx?rev=1172426&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/FillNode.aspx (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/FillNode.aspx Mon Sep 19 05:09:06 2011
@@ -0,0 +1,90 @@
+<%@ Page Language="C#" EnableViewState="False" %>
+
+<script runat="server">
+//=============================================================================
+// System : Sandcastle Help File Builder
+// File : FillNode.aspx
+// Author : Eric Woodruff (Eric@EWoodruff.us)
+// Updated : 04/02/2008
+// Note : Copyright 2007-2008, Eric Woodruff, All rights reserved
+// Compiler: Microsoft C#
+//
+// This file contains the code used to dynamically load a parent node with its
+// child table of content nodes when first expanded.
+//
+// This code is published under the Microsoft Public License (Ms-PL). A copy
+// of the license should be distributed with the code. It can also be found
+// at the project website: http://SHFB.CodePlex.com. This notice, the
+// author's name, and all copyright notices must remain intact in all
+// applications, documentation, and source files.
+//
+// Version Date Who Comments
+// ============================================================================
+// 1.5.0.0 06/21/2007 EFW Created the code
+//=============================================================================
+
+protected override void Render(HtmlTextWriter writer)
+{
+ StringBuilder sb = new StringBuilder(10240);
+ string id, url, target, title;
+
+ XPathDocument toc = new XPathDocument(Server.MapPath("WebTOC.xml"));
+ XPathNavigator navToc = toc.CreateNavigator();
+
+ // The ID to use should be passed in the query string
+ XPathNodeIterator root = navToc.Select("//HelpTOCNode[@Id='" +
+ this.Request.QueryString["Id"] + "']/*");
+
+ if(root.Count == 0)
+ {
+ writer.Write("<b>TOC node not found!</b>");
+ return;
+ }
+
+ foreach(XPathNavigator node in root)
+ {
+ if(node.HasChildren)
+ {
+ // Write out a parent TOC entry
+ id = node.GetAttribute("Id", String.Empty);
+ title = node.GetAttribute("Title", String.Empty);
+ url = node.GetAttribute("Url", String.Empty);
+
+ if(!String.IsNullOrEmpty(url))
+ target = " target=\"TopicContent\"";
+ else
+ {
+ url = "#";
+ target = String.Empty;
+ }
+
+ sb.AppendFormat("<div class=\"TreeNode\">\r\n" +
+ "<img class=\"TreeNodeImg\" " +
+ "onclick=\"javascript: Toggle(this);\" " +
+ "src=\"Collapsed.gif\"/><a class=\"UnselectedNode\" " +
+ "onclick=\"javascript: return Expand(this);\" " +
+ "href=\"{0}\"{1}>{2}</a>\r\n" +
+ "<div id=\"{3}\" class=\"Hidden\"></div>\r\n</div>\r\n",
+ url, target, HttpUtility.HtmlEncode(title), id);
+ }
+ else
+ {
+ title = node.GetAttribute("Title", String.Empty);
+ url = node.GetAttribute("Url", String.Empty);
+
+ if(String.IsNullOrEmpty(url))
+ url = "about:blank";
+
+ // Write out a TOC entry that has no children
+ sb.AppendFormat("<div class=\"TreeItem\">\r\n" +
+ "<img src=\"Item.gif\"/>" +
+ "<a class=\"UnselectedNode\" " +
+ "onclick=\"javascript: return SelectNode(this);\" " +
+ "href=\"{0}\" target=\"TopicContent\">{1}</a>\r\n" +
+ "</div>\r\n", url, HttpUtility.HtmlEncode(title));
+ }
+ }
+
+ writer.Write(sb.ToString());
+}
+</script>
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.aspx
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.aspx?rev=1172426&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.aspx (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.aspx Mon Sep 19 05:09:06 2011
@@ -0,0 +1,153 @@
+<%@ Page Language="C#" EnableViewState="False" %>
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head>
+<title>{@HtmlEncHelpTitle} - Table of Content</title>
+<link rel="stylesheet" href="TOC.css">
+<link rel="shortcut icon" href="favicon.ico"/>
+<script type="text/javascript" src="TOC.js"></script>
+</head>
+
+<body onload="javascript: Initialize();" onresize="javascript: ResizeTree();">
+<form id="IndexForm" runat="server">
+
+<div id="TOCDiv" class="TOCDiv">
+
+<div id="divSearchOpts" class="SearchOpts" style="height: 100px; display: none;">
+<img class="TOCLink" onclick="javascript: ShowHideSearch(false);"
+ src="CloseSearch.png" height="17" width="17" alt="Hide search" style="float: right;"/>
+Keyword(s) for which to search:
+<input id="txtSearchText" type="text" style="width: 100%;"
+ onkeypress="javascript: return OnSearchTextKeyPress(event);" /><br />
+<input id="chkSortByTitle" type="checkbox" /><label for="chkSortByTitle"> Sort results by title</label><br />
+<input type="button" value="Search" onclick="javascript: return PerformSearch();" />
+</div>
+
+<div id="divIndexOpts" class="IndexOpts" style="height: 25px; display: none;">
+<img class="TOCLink" onclick="javascript: ShowHideIndex(false);"
+ src="CloseSearch.png" height="17" width="17" alt="Hide index" style="float: right;"/>
+Keyword Index
+</div>
+
+<div id="divNavOpts" class="NavOpts" style="height: 20px;">
+ <img class="TOCLink" onclick="javascript: SyncTOC();" src="SyncTOC.gif"
+ height="16" width="16" alt="Sync to TOC"/>
+ <img class="TOCLink" onclick="javascript: ExpandOrCollapseAll(true);"
+ src="ExpandAll.bmp" height="16" width="16" alt="Expand all "/>
+ <img class="TOCLink" onclick="javascript: ExpandOrCollapseAll(false);"
+ src="CollapseAll.bmp" height="16" width="16" alt="Collapse all" />
+ <img class="TOCLink" onclick="javascript: ShowHideIndex(true);"
+ src="Index.gif" height="16" width="16" alt="Index" />
+ <img class="TOCLink" onclick="javascript: ShowHideSearch(true);"
+ src="Search.gif" height="16" width="16" alt="Search" />
+</div>
+
+<div class="Tree" id="divSearchResults" style="display: none;"
+ onselectstart="javascript: return false;">
+</div>
+
+<div class="Tree" id="divIndexResults" style="display: none;"
+ onselectstart="javascript: return false;">
+</div>
+
+<div class="Tree" id="divTree" onselectstart="javascript: return false;">
+<asp:Literal ID="lcTOC" runat="server" />
+</div>
+
+</div>
+
+<div id="TOCSizer" class="TOCSizer" onmousedown="OnMouseDown(event)" onselectstart="javascript: return false;"></div>
+
+<iframe id="TopicContent" name="TopicContent" class="TopicContent" src="{@WebDefaultTopic}">
+This page uses an IFRAME but your browser does not support it.
+</iframe>
+
+</form>
+
+</body>
+
+</html>
+
+<script runat="server">
+//=============================================================================
+// System : Sandcastle Help File Builder
+// File : Index.aspx
+// Author : Eric Woodruff (Eric@EWoodruff.us)
+// Updated : 04/10/2008
+// Note : Copyright 2007-2008, Eric Woodruff, All rights reserved
+// Compiler: Microsoft C#
+//
+// This file contains the code used to display the index page for a website
+// produced by the help file builder. The root nodes are loaded for the table
+// of content. Child nodes are loaded dynamically when first expanded using
+// an Ajax call.
+//
+// This code is published under the Microsoft Public License (Ms-PL). A copy
+// of the license should be distributed with the code. It can also be found
+// at the project website: http://SHFB.CodePlex.com. This notice, the
+// author's name, and all copyright notices must remain intact in all
+// applications, documentation, and source files.
+//
+// Version Date Who Comments
+// ============================================================================
+// 1.5.0.0 06/21/2007 EFW Created the code
+//=============================================================================
+
+protected void Page_Load(object sender, EventArgs e)
+{
+ StringBuilder sb = new StringBuilder(10240);
+ string id, url, target, title;
+
+ XPathDocument toc = new XPathDocument(Server.MapPath("WebTOC.xml"));
+ XPathNavigator navToc = toc.CreateNavigator();
+ XPathNodeIterator root = navToc.Select("HelpTOC/*");
+
+ foreach(XPathNavigator node in root)
+ {
+ if(node.HasChildren)
+ {
+ // Write out a parent TOC entry
+ id = node.GetAttribute("Id", String.Empty);
+ title = node.GetAttribute("Title", String.Empty);
+ url = node.GetAttribute("Url", String.Empty);
+
+ if(!String.IsNullOrEmpty(url))
+ target = " target=\"TopicContent\"";
+ else
+ {
+ url = "#";
+ target = String.Empty;
+ }
+
+ sb.AppendFormat("<div class=\"TreeNode\">\r\n" +
+ "<img class=\"TreeNodeImg\" " +
+ "onclick=\"javascript: Toggle(this);\" " +
+ "src=\"Collapsed.gif\"/><a class=\"UnselectedNode\" " +
+ "onclick=\"javascript: return Expand(this);\" " +
+ "href=\"{0}\"{1}>{2}</a>\r\n" +
+ "<div id=\"{3}\" class=\"Hidden\"></div>\r\n</div>\r\n",
+ url, target, HttpUtility.HtmlEncode(title), id);
+ }
+ else
+ {
+ title = node.GetAttribute("Title", String.Empty);
+ url = node.GetAttribute("Url", String.Empty);
+
+ if(String.IsNullOrEmpty(url))
+ url = "about:blank";
+
+ // Write out a TOC entry that has no children
+ sb.AppendFormat("<div class=\"TreeItem\">\r\n" +
+ "<img src=\"Item.gif\"/>" +
+ "<a class=\"UnselectedNode\" " +
+ "onclick=\"javascript: return SelectNode(this);\" " +
+ "href=\"{0}\" target=\"TopicContent\">{1}</a>\r\n" +
+ "</div>\r\n", url, HttpUtility.HtmlEncode(title));
+ }
+ }
+
+ lcTOC.Text = sb.ToString();
+}
+</script>
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.gif
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.gif?rev=1172426&view=auto
==============================================================================
Files incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.gif (added) and incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.gif Mon Sep 19 05:09:06 2011 differ
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.html
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.html?rev=1172426&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.html (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Index.html Mon Sep 19 05:09:06 2011
@@ -0,0 +1,65 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+
+<head>
+<title>{@HtmlEncHelpTitle} - Table of Content</title>
+<link rel="stylesheet" href="TOC.css">
+<link rel="shortcut icon" href="favicon.ico"/>
+<script type="text/javascript" src="TOC.js"></script>
+</head>
+
+<body onload="javascript: Initialize();" onresize="javascript: ResizeTree();">
+<form id="IndexForm" runat="server">
+
+<div id="TOCDiv" class="TOCDiv">
+
+<div id="divSearchOpts" class="SearchOpts" style="height: 100px; display: none;">
+<img class="TOCLink" onclick="javascript: ShowHideSearch(false);"
+ src="CloseSearch.png" height="16" width="16" alt="Hide search" style="float: right;"/>
+Keyword(s) for which to search:
+<input id="txtSearchText" type="text" style="width: 100%;"
+ onkeypress="javascript: return OnSearchTextKeyPress(event);" /><br />
+<input id="chkSortByTitle" type="checkbox" /><label for="chkSortByTitle"> Sort results by title</label><br />
+<input type="button" value="Search" onclick="javascript: return PerformSearch();" />
+</div>
+
+<div id="divIndexOpts" class="IndexOpts" style="height: 25px; display: none;">
+<img class="TOCLink" onclick="javascript: ShowHideIndex(false);"
+ src="CloseSearch.png" height="17" width="17" alt="Hide index" style="float: right;"/>
+Keyword Index
+</div>
+
+<div id="divNavOpts" class="NavOpts" style="height: 20px;">
+ <img class="TOCLink" onclick="javascript: SyncTOC();" src="SyncTOC.gif"
+ height="16" width="16" alt="Sync to TOC"/>
+ <img class="TOCLink" onclick="javascript: ExpandOrCollapseAll(true);"
+ src="ExpandAll.bmp" height="16" width="16" alt="Expand all "/>
+ <img class="TOCLink" onclick="javascript: ExpandOrCollapseAll(false);"
+ src="CollapseAll.bmp" height="16" width="16" alt="Collapse all" />
+</div>
+
+<div class="Tree" id="divSearchResults" style="display: none;"
+ onselectstart="javascript: return false;">
+</div>
+
+<div class="Tree" id="divIndexResults" style="display: none;"
+ onselectstart="javascript: return false;">
+</div>
+
+<div class="Tree" id="divTree" onselectstart="javascript: return false;">
+{@HtmlTOC}
+</div>
+
+</div>
+
+<div id="TOCSizer" class="TOCSizer" onmousedown="OnMouseDown(event)" onselectstart="javascript: return false;"></div>
+
+<iframe id="TopicContent" name="TopicContent" class="TopicContent" src="{@WebDefaultTopic}">
+This page uses an IFRAME but your browser does not support it.
+</iframe>
+
+</form>
+
+</body>
+
+</html>
Added: incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Item.gif
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Item.gif?rev=1172426&view=auto
==============================================================================
Files incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Item.gif (added) and incubator/lucene.net/branches/Lucene.Net_4e/packages/SHFB/Web/Item.gif Mon Sep 19 05:09:06 2011 differ