コード例 #1
0
 public static bool Start(RootDoc root)
 {
     System.Console.Out.WriteLine(typeof(IncludePublicAnnotationsStandardDoclet).Name);
     RootDocProcessor.treatUnannotatedClassesAsPrivate = true;
     return(Com.Sun.Tools.Doclets.Standard.Standard.Start(RootDocProcessor.Process(root
                                                                                   )));
 }
コード例 #2
0
ファイル: DotNetDocHelper.cs プロジェクト: ly2018/t
        private static void PickRemoteData(RootDoc requiredServices)
        {
            foreach (var item in requiredServices.items)
            {
                if (!item.href.Contains("http"))
                {
                    item.href = PickUrl + item.href.Replace("..", "");
                }
                var InnerHtml = PickData(item.href);

                //数据保存
                SaveData(new ReqModel()
                {
                    title   = item.toc_title,
                    content = InnerHtml,
                    cover   = item.href,
                });

                if (item.children != null && item.children.Any())
                {
                    GenerateTreeData(item.children);
                }
                if (!string.IsNullOrEmpty(item.tocHref))
                {
                    string str      = HttpUtil.HttpGetMath(PickUrl + item.tocHref.Replace("..", ""), "");
                    var    jsonData = JsonConvert.DeserializeObject <RootDoc>(str);
                    PickRemoteData(jsonData);
                }
            }
        }
コード例 #3
0
 public static bool Start(RootDoc root)
 {
     System.Console.Out.WriteLine(typeof(ExcludePrivateAnnotationsStandardDoclet).Name
                                  );
     return(Com.Sun.Tools.Doclets.Standard.Standard.Start(RootDocProcessor.Process(root
                                                                                   )));
 }
コード例 #4
0
 public static bool Start(RootDoc root)
 {
     System.Console.Out.WriteLine(typeof(ExcludePrivateAnnotationsJDiffDoclet).Name);
     return(JDiff.Start(RootDocProcessor.Process(root)));
 }
コード例 #5
0
 public static RootDoc Process(RootDoc root)
 {
     return((RootDoc)Process(root, typeof(RootDoc)));
 }