From c66c5a0c54f833cf3bd4a81c2f20247fcb485732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=BB=BA=E8=B6=85?= Date: Tue, 7 Nov 2023 09:22:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E5=A4=8D=E5=87=BD=E6=95=B0?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E5=8E=9F=E5=9E=8B=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 246 +++++++++++++++++- ...88010d10-f887-42f7-9d42-3e2e8cf73470.vsidx | Bin 0 -> 107 bytes ...91fc0aed-0d27-4a68-ad08-4fa497a697f7.vsidx | Bin 0 -> 107 bytes ...fa35d412-645c-47a0-be3d-552089bc6a75.vsidx | Bin 0 -> 107 bytes .vs/DocGenerator/v17/.suo | Bin 0 -> 16896 bytes DocGenerator/Program.cs | 3 +- 6 files changed, 246 insertions(+), 3 deletions(-) create mode 100644 .vs/DocGenerator/FileContentIndex/88010d10-f887-42f7-9d42-3e2e8cf73470.vsidx create mode 100644 .vs/DocGenerator/FileContentIndex/91fc0aed-0d27-4a68-ad08-4fa497a697f7.vsidx create mode 100644 .vs/DocGenerator/FileContentIndex/fa35d412-645c-47a0-be3d-552089bc6a75.vsidx create mode 100644 .vs/DocGenerator/v17/.suo diff --git a/.gitignore b/.gitignore index 8d4a6c0..dd290a0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,244 @@ -bin -obj \ No newline at end of file +# Visual Studio + +# User-specific files +*.suo +*.user +*.userosscache +*.sln.docstates + +# User-specific files (MonoDevelop/Xamarin Studio) +*.userprefs + +# Build results +[Dd]ebug/ +[Dd]ebugPublic/ +[Rr]elease/ +[Rr]eleases/ +[Xx]64/ +[Xx]86/ +[Bb]uild/ +bld/ +[Bb]in/ +[Oo]bj/ + +# Visual Studio 2015 cache/options directory +.vs/ +# Uncomment if you have tasks that create the project's static files in wwwroot +#wwwroot/ + +# MSTest test Results +[Tt]est[Rr]esult*/ +[Bb]uild[Ll]og.* + +# NUNIT +*.VisualState.xml +TestResult.xml + +# Build Results of an ATL Project +[Dd]ebugPS/ +[Rr]eleasePS/ +dlldata.c + +# DNX +project.lock.json +artifacts/ + +*_i.c +*_p.c +*_i.h +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.tmp_proj +*.log +*.vspscc +*.vssscc +.builds +*.pidb +*.svclog +*.scc + +# Chutzpah Test files +_Chutzpah* + +# Visual C++ cache files +ipch/ +*.aps +*.ncb +*.opendb +*.opensdf +*.sdf +*.cachefile +*.VC.db +*.VC.VC.opendb + +# Visual Studio profiler +*.psess +*.vsp +*.vspx +*.sap + +# TFS 2012 Local Workspace +$tf/ + +# Guidance Automation Toolkit +*.gpState + +# ReSharper is a .NET coding add-in +_ReSharper*/ +*.[Rr]e[Ss]harper +*.DotSettings.user + +# JustCode is a .NET coding add-in +.JustCode + +# TeamCity is a build add-in +_TeamCity* + +# DotCover is a Code Coverage Tool +*.dotCover + +# NCrunch +_NCrunch_* +.*crunch*.local.xml +nCrunchTemp_* + +# MightyMoose +*.mm.* +AutoTest.Net/ + +# Web workbench (sass) +.sass-cache/ + +# Installshield output folder +[Ee]xpress/ + +# DocProject is a documentation generator add-in +DocProject/buildhelp/ +DocProject/Help/*.HxT +DocProject/Help/*.HxC +DocProject/Help/*.hhc +DocProject/Help/*.hhk +DocProject/Help/*.hhp +DocProject/Help/Html2 +DocProject/Help/html + +# Click-Once directory +publish/ + +# Publish Web Output +*.[Pp]ublish.xml +*.azurePubxml +*.publishproj +*.pubxml +PublishProfiles/ +PublishScripts/ + +# NuGet Packages +*.nupkg +# The packages folder can be ignored because of Package Restore +**/packages/* +# except build/, which is used as an MSBuild target. +!**/packages/build/ +# Uncomment if necessary however generally it will be regenerated when needed +#!**/packages/repositories.config +# NuGet v3's project.json files produces more ignoreable files +*.nuget.props +*.nuget.targets + +# Microsoft Azure Build Output +csx/ +*.build.csdef + +# Microsoft Azure Emulator +ecf/ +rcf/ + +# Windows Store app package directory +AppPackages/ +BundleArtifacts/ +Package.StoreAssociation.xml +_pkginfo.txt + +# Visual Studio cache files +# files ending in .cache can be ignored +*.[Cc]ache +# but keep track of directories ending in .cache +!*.[Cc]ache/ + +# Others +ClientBin/ +[Ss]tyle[Cc]op.* +~$* +*~ +*.dbmdl +*.dbproj.schemaview +*.pfx +*.publishsettings +orleans.codegen.cs + +# RIA/Silverlight projects +Generated_Code/ + +# Backup & report files from converting an old project file +# to a newer Visual Studio version. Backup files are not needed, +# because we have git ;-) +_UpgradeReport_Files/ +Backup*/ +UpgradeLog*.XML +UpgradeLog*.htm + +# SQL Server files +*.mdf +*.ldf + +# Business Intelligence projects +*.rdl.data +*.bim.layout +*.bim_*.settings + +# Microsoft Fakes +FakesAssemblies/ + +# GhostDoc plugin setting file +*.GhostDoc.xml + +# Node.js Tools for Visual Studio +.ntvs_analysis.dat + +# Visual Studio 6 build log +*.plg + +# Visual Studio 6 workspace options file +*.opt + +# Visual Studio LightSwitch build output +**/*.HTMLClient/GeneratedArtifacts +**/*.DesktopClient/GeneratedArtifacts +**/*.DesktopClient/ModelManifest.xml +**/*.Server/GeneratedArtifacts +**/*.Server/ModelManifest.xml +_Pvt_Extensions + +# LightSwitch generated files +GeneratedArtifacts/ +ModelManifest.xml + +# Paket dependency manager +.paket/paket.exe +paket-files/ + +# FAKE - F# Make +.fake/ + +.DS_Store \ No newline at end of file diff --git a/.vs/DocGenerator/FileContentIndex/88010d10-f887-42f7-9d42-3e2e8cf73470.vsidx b/.vs/DocGenerator/FileContentIndex/88010d10-f887-42f7-9d42-3e2e8cf73470.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..a7d76f1a3345824dc70c9238738a19f49a5d4636 GIT binary patch literal 107 vcmZ>EaTjD~VsK}G02V0C38Z0cW+XNT5}OUG7DR#6@I8$)RTkYEAg literal 0 HcmV?d00001 diff --git a/.vs/DocGenerator/FileContentIndex/91fc0aed-0d27-4a68-ad08-4fa497a697f7.vsidx b/.vs/DocGenerator/FileContentIndex/91fc0aed-0d27-4a68-ad08-4fa497a697f7.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..a7d76f1a3345824dc70c9238738a19f49a5d4636 GIT binary patch literal 107 vcmZ>EaTjD~VsK}G02V0C38Z0cW+XNT5}OUG7DR#6@I8$)RTkYEAg literal 0 HcmV?d00001 diff --git a/.vs/DocGenerator/FileContentIndex/fa35d412-645c-47a0-be3d-552089bc6a75.vsidx b/.vs/DocGenerator/FileContentIndex/fa35d412-645c-47a0-be3d-552089bc6a75.vsidx new file mode 100644 index 0000000000000000000000000000000000000000..a7d76f1a3345824dc70c9238738a19f49a5d4636 GIT binary patch literal 107 vcmZ>EaTjD~VsK}G02V0C38Z0cW+XNT5}OUG7DR#6@I8$)RTkYEAg literal 0 HcmV?d00001 diff --git a/.vs/DocGenerator/v17/.suo b/.vs/DocGenerator/v17/.suo new file mode 100644 index 0000000000000000000000000000000000000000..b757d62ae89ed098933523c67a12e6488764dd78 GIT binary patch literal 16896 zcmeHOO^_Q$74CKZoj~Fw*d{p6MwnoTCA5-Ot6hV!RzJ4GuD!ABT|*Si?5MRXTdNT> z+CO%k1WsIX;lfW9R8hrW0Yxeossa=c7YB+%oJ%e_!GRM87YB+{Y`$-1TAGzL+F9*Z z8CABoKFv%|PrvuN-|K$;y7%21`~LppH=p{4XiF!=J>u5whs6D!`~lqWQO}PF@e%j= z*6rK3nSBp{+uhVhE${(&W&iD_4`&OU7Y6Bn4OdgF(v$Ec4=Yo{q=`#IHe<%CjJ6CjS2^DZt6P8=f?{Wn6 zN&9gW;MK33H~%#}Jm_X9`6+iDoET^i2^7GA21xIR9qvKDDSJ@*UqU^XIhiBz8>V}4 z&$-|}T-lEg0Oau@U@!16@CZQLJ&fz40NZdMK-r%Fo&-Jy><1122Z4_RPXV6*4gpUC z>@U`{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BV literal 0 HcmV?d00001 diff --git a/DocGenerator/Program.cs b/DocGenerator/Program.cs index af5474b..a8c9709 100644 --- a/DocGenerator/Program.cs +++ b/DocGenerator/Program.cs @@ -92,13 +92,14 @@ namespace DocGenerator using var streamerWriter = File.CreateText(Path.Combine(className, $"{methodName}.md")); - streamerWriter.WriteLine($"# {methodName}\n"); + // streamerWriter.WriteLine($"# {methodName}\n"); streamerWriter.WriteLine("## 定义\n"); streamerWriter.WriteLine(commentBlock.MethodComment + "\n"); /// 方法原型 streamerWriter.WriteLine("```CSharp"); + string methodSignature = $"{methodDeclaration.Modifiers} {methodDeclaration.ReturnType} {methodDeclaration.Identifier}({methodDeclaration.ParameterList})"; streamerWriter.WriteLine(methodDeclaration.ToString().Split("\n")[0]); streamerWriter.WriteLine("```");