Sandcastleã®ååã®èšäºïŒ ã.NETã§ã®ããã¥ã¡ã³ãã®äœæã ïŒãã4幎ãçµéããããããã®ããã¥ã¡ã³ããŠãŒãã£ãªãã£ã®ããã€ãã®ãã€ã³ããæŽæ°ãããšããæ¥ãŸããã
ç§ãã¡ã®ãããžã§ã¯ãã®ããã¥ã¡ã³ãã«ã€ããŠçåãçãããšããéžæã¯äž»ã«DoxygenïŒãããžã§ã¯ãã§æ¢ã«äœ¿çšãããŠããïŒãšSandcastleïŒä»¥åã«é¡§å®¢ã䜿çšããïŒã®éã§ããã ãã®çµæãéžæã¯ãµã³ããã£ãã¹ã«ã«èœã¡ãŸããã 顧客èªèº«ãæšå¥šããDoxygenãšã¯ç°ãªããåæ§ã®èŠèŠçãªããã¥ã¡ã³ããçæãããã«ããšããã¥ã¢ã«ãšã®çµ±åãè¡ããŸããïŒæçµçã«ã¯çµ±åã¯äœ¿çšãããŸããã§ããïŒã
ã°ãŒã°ã«ã«ã¯é ãããããããã¥ã¡ã³ãçšã®ä»ã®ããŒã«ã®ãªã¹ããèŠãã®ãé¢çœã人ã®ããã«ãããã«è¯ããªã¹ãããããŸãïŒ stackoverflow.com/a/14420174
ç°¡ç¥åããã圢åŒã§ã¯ãã¿ã¹ã¯ã¯ ".chm"ãã¡ã€ã«ã®åœ¢åŒã§ããã¥ã¡ã³ããçæãããµã€ãã§ãã«ãããããšã§ããã äŸãšããŠãããã€ãã®ããã¥ã¡ã³ãåãããã¯ã©ã¹ãšSandcastleãããžã§ã¯ãèªäœãå«ãã©ã€ãã©ãªã®å°ããªãããžã§ã¯ãããããŸãïŒgithubãžã®ãªã³ã¯ïŒ github.com/misiam/Sandcastle-Sample ïŒã
èšçœ®
ãŸããSandcastleãã€ã³ã¹ããŒã«ããããSandcastle Help File BuilderïŒSHFBïŒãã€ã³ã¹ããŒã«ããå¿ èŠããããŸãã ããã¯ãM $ã«ãã£ãŠæªè³ªã«æŸæ£ãããEric Woodruffã«ãã£ãŠæ éã«åå²ããããããžã§ã¯ãã®ç¶ãã§ãã ããããããŠã³ããŒãïŒ shfb.codeplex.com/releases/view/121365
ãŸã第äžã«ãVS2012ãšVS2013ã®chmã³ã³ãã€ã©ãšãã©ã°ã€ã³ã¯ç§ã«ãšã£ãŠéèŠã§ããã ããã«ãSandcastle Help File Builderèªäœãã€ã³ã¹ããŒã«ãããŸããããã¯ãxmlãã¡ã€ã«ã«ãã¹ãŠãç»é²ããã®ã§ã¯ãªããã€ã³ã¿ãŒãã§ãŒã¹ã䜿çšã§ããããã«ããã¢ããªã±ãŒã·ã§ã³ã§ãã ããã¹ãç·šéããŒã«ããŒïŒå€ªåãæäœãªã©ïŒãé€ããŠãSHFBãšã¹ã¿ãžãªçšãã©ã°ã€ã³ã®éã«éãã¯èŠã€ãããŸããã§ããããŸããã¹ã¿ãžãªã¯ã€ã³ããªãžã§ã³ã¹ãåãããªãŒãã³ã³ããªãŒããæäŸããŠãããããåŸã ã«éçºãããã«ç§»ããŸããã
ãããžã§ã¯ãã®ã»ããã¢ãã
ãã¹ãŠãèšå®ããããããããžã§ã¯ãããœãªã¥ãŒã·ã§ã³ã«è¿œå ã§ããŸãã ãããã¥ã¡ã³ã/ãµã³ããã£ãã¹ã«ãã«ããã¡ã€ã«ãã«ããŒãããžã§ã¯ãããã¹ã¿ãžãªã§ãã³ãã¬ãŒãã«è¡šç€ºããããããéžæããŠãããã¥ã¡ã³ããœãŒã¹ãïŒããã¥ã¡ã³ãåãããããžã§ã¯ããžã®ãªã³ã¯ïŒãè¿œå ãããXMLããã¥ã¡ã³ããã¡ã€ã«ãããããžã§ã¯ãã«å«ãããã«ããå®è¡ããŸãã / binãã©ã«ããŒã«ç§»åããŸãããäœãèŠã€ãããŸããã ããã©ã«ãã§ã¯ãSandcastleã¯ãããžã§ã¯ããã©ã«ããŒã®\ Helpãã©ã«ããŒã«ãã¡ã€ã«ãäœæããŸãã
ãããåé¿ããã«ã¯ããããžã§ã¯ãã®ããããã£->ãã¹->ããã«ãã³ã³ãã³ãã®åºåãã¹ãã«ç§»åããããšãã°ãbin \ Help \ããªã©ããã身è¿ãªãã®ã«å€æŽããŸãã ãã«ãåŸãLastBuild.logïŒããã©ã«ãã§ã¯åºåãã©ã«ããŒã«äœæãããŸãïŒããã³chmãã¡ã€ã«ã確èªã§ããŸãã å€èŠ³ãšèŠåã«ãŸã 泚æãæã£ãŠã¯ãããŸããã
ããã§ããã«ãã¯ç®çã®ãã©ã«ããŒã«äœæãããŸããããã«ãã¯ãŠã§ãã«ã¡ã©ãããéãå¿ èŠããããchmã¯ãšã¯ã¹ãããŒã©ãŒã®ã¿ãå®å šã«ãµããŒãããŸãããä»ã®ãã©ãŠã¶ãŒã¯å¯Ÿå¿ãããã©ã°ã€ã³ã§ãã®ãããªãã«ããéãããšãã§ããŸãã ãŠã§ããµã€ããçæããæ¹ãç°¡åã§ãïŒãããžã§ã¯ãã®ããããã£->ãã«ã->ããŠã§ããµã€ãïŒHTML / ASP.NETïŒãããªã³ã«ããŸãïŒå®éãããã«ãphpããããŸãããã¹ããã«ãã€ãã³ãã§åé€ã§ããŸããã¹ã¿ãžãªãšSHFBãããã«ããããšãã«åäœããŸã-msbuildã䜿çšããŠãã«ãããŸãïŒã
Webãµã€ããè¿œå ãããšããã«ã次ã®åé¡ãèŠã€ããããšãã§ããŸãã1ã€ã®ãã©ã«ããŒã«äž¡æ¹ã®ãã«ãã衚瀺ãããŸãã ææã®äººãäžå¿«ãªäººãäžå¿«ãªäººã§ã¯ãããŸããã ãããžã§ã¯ãã®ããããã£->ãã©ã°ã€ã³->åºåã®å±é->è¿œå ã«ç§»åããŸãã ããã§ã¯ãã³ããŒã®çžå¯Ÿãã¹ã瀺ããŸãã
åºåå±éãã©ã°ã€ã³
ãããžã§ã¯ããæŽçããããã«æ®ã£ãŠãããã®ã¯ã»ãšãã©ãããŸããã
Website / htmlãã£ã¬ã¯ããªã§ã¯ããã¹ãŠã®ãã¡ã€ã«ã®åœ¢åŒã¯[GUID] .htmã§ãã ãããä¿®æ£ããã«ã¯ããããžã§ã¯ãã®ããããã£->ãã«ããã¡ã€ã«ã«ç§»åããããããã¯ãã¡ã€ã«ã®åœåæ¹æ³ãããããã£ããGUIDãããããèªã¿ããããã¡ã³ããŒåãã«å€æŽããŸãã ããã§ããã©ãŠã¶è¡ã®ã¢ãã¬ã¹ã¯ããŠãŒã¶ãŒãããããŒãžãåæ ããŸãã
ããã¥ã¡ã³ãããªãå Žæã§ã¯ãèµ€ãèŠåãµã€ã³ã...ã«ããã¥ã¡ã³ãããããŸãããããã«ãã«è¡šç€ºãããŸãã
ãã®ãããªç¢æã¯éçºã«ã¯äŸ¿å©ã§ãããå®æããææžã§ã¯å®å šã«åãå ¥ããããŸããã ããããåé€ããã«ã¯ããããžã§ã¯ãã®ããããã£->æ¬ èœããŠããã¿ã°ã«ç§»åããããã¥ã¡ã³ãããªãå Žåã«ã¡ãã»ãŒãžã衚瀺ããªãèŠçŽ ãéžæããŸãã çŸåšäœ¿çšãããŠããèšèªã¯ãCïŒãVBãC ++ãFïŒã§ãã [ãããžã§ã¯ãããããã£]-> [ãã«ããã¡ã€ã«]-> [æ§æãã£ã«ã¿ãŒ]ãã¯ãªãã¯ããå¿ èŠãªèšèªã®ã¿ãéžæããŸãã
ããã€ãã®ããŒãžãäœæããŸããã
ãŸãããããžã§ã¯ããããã¹ãŠã®ã³ã³ãã³ããšWelcome.amlããŒãžãå«ãããŒãžã§ã³å±¥æŽãã©ã«ããŒãåé€ããŸãã ããã¥ã¡ã³ãã®æ§é ã¯ContentLayout.contentãã¡ã€ã«ã«æ£ç¢ºã«æ§ç¯ãããŠããããããã®ãã¡ã€ã«ãåé€ããå¿ èŠããããŸãã
ã»ãšãã©ã®å Žåãæ°ããããã¥ã¡ã³ãããŒãžãäœæãããšãã¯ããæŠå¿µãã¿ã€ããéžæããå¿ èŠããããŸãïŒå€ãã®ã¿ã€ãããããé·ãéãããã«ã€ããŠè©±ãããšãã§ããŸãïŒã æ°ããããŒãžãäœæãããšãã¯ãContentLayoutã«è¿œå ããå¿ èŠããããŸãã çæãããã³ãŒãããã³äºãã«å¯ŸããŠéçããŒãžãæ§æããå¯èœæ§ã¯éåžžã«å€§ãããããå¿ èŠã«å¿ããŠãããã¯ããªãŒãäœæã§ããŸãã
ããã¥ã¡ã³ãããŒãžã¯ããããã¯IDã䜿çšããŠçžäºã«ãªã³ã¯ããŸãã 察å¿ããå±æ§ã®ããŒãžäžéšã«ãããŸãã
äŸïŒ
<link xlink:href="b2ac2359-2794-4644-b900-297937ffeaae" />
çæãããããŒãžã«ãªã³ã¯ããå¿ èŠããããšãã«åé¡ãå§ãŸããŸãã ãã®å ŽåãSandcastleã¯<see />ã¡ã¿ã¿ã°ã§äœ¿çšãããæ§æã«åæãããç¬èªã®æ§æã䜿çšããŸãã
<codeEntityReference qualifyHint="true">M:SandcastleSample.Samples.ConstructorsSamples.#ctor(System.String,System.Int32)</codeEntityReference> <codeEntityReference qualifyHint="true">M:SandcastleSample.Samples.MethodsSamples.MethodWithRefParameter(System.String,System.String@)</codeEntityReference>
ã¡ãœããã®ã·ã°ããã£ã衚瀺ããå Žåã qualifyHint㯠trueã«èšå®ãããŸãã
ãªã³ã¯èšèšãªã¹ã
ãªãªãžãã«
該åœãã | ã«ãŒã« | äŸ |
---|---|---|
åŒæ°ãæã€ã¡ãœãããšãããã㣠| æ¬åŒ§å ã®åŒæ°ã®ãªã¹ããå¿ èŠã§ã | MïŒFoo.Bar.FuncïŒSystem.BooleanïŒ |
åŒæ°ãªãã®ã¡ãœãããšãããã㣠| ãã©ã±ããã¯äœ¿çšããªãã§ãã ãã | MïŒFoo.Bar.Func |
ã³ã³ã¹ãã©ã¯ã¿ãŒ | ååã®ä»£ããã«#ctorã«ãã£ãŠäœ¿çšãããŸãã ã³ã³ã¹ãã©ã¯ã¿ã«ãã©ã¡ãŒã¿ãããå Žåããã©ã¡ãŒã¿ãæã€ã¡ãœãããšåãã«ãŒã«ã䜿çšãããŸã | MïŒFoo.BarãïŒCtor |
éçã³ã³ã¹ãã©ã¯ã¿ãŒ | ååã®ä»£ããã«#ctorã«ãã£ãŠäœ¿çšãããŸã | MïŒFoo.BarãïŒä¿³åª |
ãã¡ã€ãã©ã€ã¶ãŒ | ã¡ãœããåã¯Finalizeã§ãã | MïŒFoo.Bar.Finalize |
åŒæ° | ã¹ããŒã¹ãªãã§ãã³ã³ãã§åºåãããŸãã ãããã®ååã¯åå空éã§äœ¿çšãããŸãã ã€ãŸã intã®ä»£ããã«ã System.Int32ã䜿çšãããŸãã | MïŒFoo.Bar.FuncïŒSystem.Int32ãSystem.StringãFoo.WidgetïŒ |
outããã³refãã©ã¡ãŒã¿ãŒ | ååã¯@ã§çµãããŸã | MïŒFoo.Bar.FuncïŒSystem.Int32 @ïŒ |
ãã©ã¡ãŒã¿ãŒãšããŠããŒã¯ããããã©ã¡ãŒã¿ãŒ | ç¹å¥ãªè¡šèšã¯ãããŸãã | |
ãžã§ããªãã¯åãå®çŸ©ãããã©ã¡ãŒã¿ãŒ | ãžã§ããªãã¯åçªå·ãæã€ã¢ãã¹ãããã£æåãè¿œå ãããŸã | TïŒFoo.Bar`1 |
ãã©ã¡ãŒã¿ãšããŠã®é å | é åã®æ¬¡å ã¯çç¥ã§ããŸã | MïŒFoo.Bar.FuncïŒSystem.Int32 [0 :, 0ïŒ]ïŒ |
ãªã¹ã<>ãªã©ã®ã¿ã€ããåç §ãããã©ã¡ãŒã¿ãŒ | äžæ¬åŒ§ã§å²ãŸãããžã§ããªãã¯åã®ã³ã³ãåºåãã®åŒæ°ã®äœ¿çš | MïŒFoo.Bar.FuncïŒSystem.Collections.Generic.List {System.String}ïŒ |
ãªãªãžãã«
ãªã¹ãã¯é·ããããªãã¯ãã®ãããªããšãç¥ãå¿ èŠãããã ãã§ãäœãããå¿ èŠã¯ãããŸããã
ãããã¥ã¡ã³ãããããŸãã...ããšããèŠåããªã³ã«ãããšãSandcastleãã¡ãœããã®ååãã©ã®ãããªåœ¢ã§æåŸ ããŠãããã確èªã§ããŸãã
ãã³ããšã³ã
- ããŸããŸãªã€ã³ã¿ãŒãã§ã€ã¹ãã³ãã¬ãŒãããããŸãïŒvs2013ãvs2010ãvs2005ãHanaãPrototypeã å°ãªããšãvs2013ãšvs2010ãè©ŠããŠã¿ã䟡å€ããããŸããã©ã¡ããéæšå¥šã§ã¯ãªããåäœã¯ç°ãªããŸãã ããšãã°ãvs2013ã§ã¯ãæ€çŽ¢åŸããããã¯ãæ°ããã¿ãã§éããŸããããã¯ãããžã§ã¯ãã§éèŠã§ããã ãŸããWebhelpã¯Index.aspxãšindex.htmlã®äž¡æ¹ã§åç §ã§ããããšã«æ³šæããŠãã ããã 2çªç®ã®ã±ãŒã¹ã®æ©èœã®äžéšã¯äœ¿çšã§ããŸããïŒæ€çŽ¢ãªã©ïŒã
- åå空éã«èª¬æãè¿œå ããã«ã¯ããã®ã¯ã©ã¹ãããã«å«ããŸãã
///<summary>Namespace summary</summary> ///<include file='_Namespace.xml' path='Documentation/*' /> internal class NamespaceDoc { //EMPTY }
ãµã³ããã£ãã¹ã«ã§ãåãããšãã§ããŸãã
- çæããããªãŒããŒããŒãã¡ãœããã®ãããã¯ã«èª¬æãè¿œå ããã«ã¯ã次ã®ã¿ã°ã䜿çšããŸãã
/// <summary> /// Go to overload <see cref="O:SandcastleSample.Samples.MethodsSamples.MethodWithOverload"/> /// <example> /// <para>To link to both overloads use 'O': <code>O:SandcastleSample.Samples.MethodsSamples.MethodWithOverload</code></para> /// </example> /// </summary> /// <overloads> /// <para>'overloads' tag used in Sandcastle to put some additional inforation to "Ovetrload methods" page in the documentation.</para> /// </overloads> /// <param name="param"></param> public void MethodWithOverload(string param) { }
VisualStudioã¯ãã®ã¿ã°ãç¡äººã®ãŸãŸã«ããŸãããSandcastleã¯ãã®å 容ãããã¥ã¡ã³ãã«è¿œå ããŸãã
ãã®ãããªã¿ã°ã®è¡šã¯ã Sandcastleã®XMLããã¥ã¡ã³ãã³ã¡ã³ãã«ãããŸãã
ããäžåºŠã githubã®ãµã³ãã«ãå«ããããžã§ã¯ããžã®ãªã³ã¯ã