System.Data.SQLite
Check-in [62f517f4a6]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Document the changes from the original NDoc3 source files.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 62f517f4a6c3d670d34468278f21af226c800be5
User & Date: mistachkin 2013-09-18 08:18:38
Context
2013-09-18
09:00
Improve comments in the CHM building tool. check-in: a448b4c801 user: mistachkin tags: trunk
08:18
Document the changes from the original NDoc3 source files. check-in: 62f517f4a6 user: mistachkin tags: trunk
08:18
Add original NDoc3 source files. check-in: fb8f175216 user: mistachkin tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to Externals/NDoc3/src/MsdnDocumenter.cs.

  1423   1423   				string fullPath = Path.Combine(ctx.WorkingDirectory.FullName, filename);
  1424   1424   				using (streamWriter = new StreamWriter(
  1425   1425   					File.Open(fullPath, FileMode.Create),
  1426   1426   					ctx.CurrentFileEncoding)) {
  1427   1427   					string DocLangCode = Enum.GetName(typeof(SdkLanguage), MyConfig.SdkDocLanguage).Replace("_", "-");
  1428   1428   					
  1429   1429   					MsdnXsltUtilities utilities = new MsdnXsltUtilities(ctx._nameResolver, ctx.CurrentAssemblyName, MyConfig.SdkDocVersionString, DocLangCode, MyConfig.SdkLinksOnWeb, ctx.CurrentFileEncoding);
         1430  +					ctx._nameResolver.utilities = utilities;
  1430   1431   
  1431   1432   					if (arguments.GetParam("assembly-name", string.Empty) == null) {
  1432   1433   						arguments.AddParam("assembly-name", String.Empty, ctx.CurrentAssemblyName);
  1433   1434   					}
  1434   1435   					arguments.AddParam("ndoc-title", String.Empty, MyConfig.Title);
  1435   1436   					arguments.AddParam("ndoc-vb-syntax", String.Empty, MyConfig.ShowVisualBasic);
  1436   1437   					arguments.AddParam("ndoc-omit-object-tags", String.Empty, ((MyConfig.OutputTarget & OutputType.HtmlHelp) == 0));

Changes to Externals/NDoc3/src/NameResolver.cs.

     7      7   
     8      8   namespace NDoc3.Documenter.Msdn {
     9      9   	///<summary>
    10     10   	///</summary>
    11     11   	public class NameResolver {
    12     12   		public const string EXT = ".html";
    13     13   
           14  +		public MsdnXsltUtilities utilities;
    14     15   		private readonly bool mergeAssemblies;
    15     16   		private readonly StringDictionary fileNames = new StringDictionary();
    16     17   		private readonly StringDictionary elemNames = new StringDictionary();
    17     18   
    18     19   		private readonly ReferenceTypeDictionary<string, string[]> assemblyReferences = new ReferenceTypeDictionary<string, string[]>();
    19     20   
    20     21   		///<summary>
................................................................................
   453    454   
   454    455   			if (filename == null && memberId != null) {
   455    456   				filename = fileNames[memberId];
   456    457   			}
   457    458   
   458    459   			//			Debug.Assert(filename != null, string.Format("Filename for assembly:memberId [{0}:{1}] not found", currentAssemblyName, memberId));
   459    460   			//			Debug.WriteLine(string.Format("GetFilenameForIdInternal('{0}','{1}') => {2}", currentAssemblyName, memberId, filename));
   460         -			return filename ?? string.Empty;
          461  +			if (filename != null)
          462  +				return filename;
          463  +
          464  +			if (utilities != null)
          465  +			{
          466  +				if (memberId.Length > 2 && memberId[1] == ':')
          467  +					memberId = memberId.Substring(2);
          468  +
          469  +				filename = utilities.FormatOnlineSDKLink(memberId);
          470  +
          471  +				if (filename != null)
          472  +					return filename;
          473  +			}
          474  +
          475  +			return String.Empty;
   461    476   		}
   462    477   
   463    478   		private string GetFilenameForIdSpecial(string assemblyName, string memberId, string postfix) {
   464    479   			string fn = GetFilenameForIdInternal(assemblyName, memberId);
   465    480   			if (fn != null && fn.Length > EXT.Length) {
   466    481   				fn = fn.Insert(fn.Length - EXT.Length, postfix);
   467    482   			}