You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.179
Former-commit-id: a536d4f20e27294d8bbc2184d75f3a22364f7ba1
This commit is contained in:
parent
966bba02bb
commit
fad71374d0
53
external/api-doc-tools/monodoc/Monodoc/RootTree_Legacy.cs
vendored
Normal file
53
external/api-doc-tools/monodoc/Monodoc/RootTree_Legacy.cs
vendored
Normal file
@ -0,0 +1,53 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Xml;
|
||||
using System.Diagnostics;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using Mono.Utilities;
|
||||
using Lucene.Net.Index;
|
||||
|
||||
#if LEGACY_MODE
|
||||
|
||||
namespace Monodoc
|
||||
{
|
||||
using Generators;
|
||||
|
||||
public partial class RootTree
|
||||
{
|
||||
static IDocGenerator<string> rawGenerator = new RawGenerator ();
|
||||
static HtmlGenerator htmlGenerator = new HtmlGenerator (null);
|
||||
|
||||
[Obsolete ("Use RawGenerator directly")]
|
||||
public XmlDocument GetHelpXml (string id)
|
||||
{
|
||||
var rendered = RenderUrl (id, rawGenerator);
|
||||
if (rendered == null)
|
||||
return null;
|
||||
var doc = new XmlDocument ();
|
||||
doc.LoadXml (RenderUrl (id, rawGenerator));
|
||||
return doc;
|
||||
}
|
||||
|
||||
[Obsolete ("Use the RenderUrl variant accepting a generator")]
|
||||
public string RenderUrl (string url, out Node n)
|
||||
{
|
||||
return RenderUrl (url, htmlGenerator, out n);
|
||||
}
|
||||
|
||||
[Obsolete ("Use GenerateIndex")]
|
||||
public static void MakeIndex (RootTree root)
|
||||
{
|
||||
root.GenerateIndex ();
|
||||
}
|
||||
|
||||
[Obsolete ("Use GenerateSearchIndex")]
|
||||
public static void MakeSearchIndex (RootTree root)
|
||||
{
|
||||
root.GenerateSearchIndex ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user