TERASOLUNA Server Framework for Java (5.x) Development Guideline¶
TERASOLUNA Server Framework for Java (5.x) Development Guideline¶
ããã¥ã¡ã³ããã¼ã« Sphinx ã«Oktaviaãçµã¿è¾¼ãã®ã¯ç°¡åã«ã§ãã¾ãã Sphinxããã¥ã¡ã³ãã«Oktaviaãçµã¿è¾¼ãã«ã¯ãï¼ã¤ã®ã¹ããããããã¾ãã ã¤ã³ããã¯ã¹ãã¡ã¤ã«ã®æºå Sphinxãã³ãã¬ã¼ãã®å¤æ´ ã¤ã³ããã¯ã¹ãã¡ã¤ã«ã®æºå Oktaviaã®ãã¼ã«ã¨ã©ã¤ãã©ãªãgithubãããã¦ã³ãã¼ããã¾ãã https://github.com/shibukawa/oktavia ãã®ããã¥ã¡ã³ãã§ã¯ oktavia ãã©ã«ããSphinxã®ããã¥ã¡ã³ããã©ã«ãå ã«ç½®ããããã®ã¨ãã¦é²ãã¾ãã ãã¥ã¼ããªã¢ã«ãèªã¾ãã¦ããªãæ¹ã¯ãã¾ãã¯node.jsãã¤ã³ã¹ãã¼ã«ãã¾ããã¤ã³ããã¯ã¹ã¸ã§ãã¬ã¼ã¿ã¯node.jsã®ä¸ã§å®è¡ããã¾ãã node.jsã®ã¦ã§ããµã¤ã ã«ã¯ããã¾ãã¾ãªãã©ãããã©ã¼ã ã¸ã®ã¤ã³ã¹ãã¼ã«ã®ä»æ¹ãæ¸ããã¦ãã¾ãã ã¾ãæåã«ãçæããHTMLã®ããã¥ã¡
Python ã® docstring ã¨ããã®ã¯ãã¢ã¸ã¥ã¼ã«ãã¯ã©ã¹ãé¢æ°ãªã©ã«ã¤ãã説ææã®ãã¨ã åç´ãªã³ã¡ã³ãã¨ã®éãã¯ãããä»æ§ã«è¿ãå 容ãè¨è¿°ãã¦ãããã¨ã§ API ã®ããã¥ã¡ã³ãã¨ãã¦å©ç¨ã§ããä»ãå¥ã®ããã¥ã¡ã³ãããå 容ãèªã¿è¾¼ãã§ä½¿ã£ãããããã¨ãã§ããã ä»å㯠docstring ã®æ¸ããããµã³ãã«ã³ã¼ããå ã«ãREPL ãããã®å 容ãåç §ããããããã¥ã¡ã³ãã¼ã·ã§ã³ãã¼ã« Sphinx ã§ãã®å 容ãèªã¿è¾¼ãã¨ããã®ã試ãã¦ã¿ãã docstring ã®æ¸ãããã½ã¼ã¹ã³ã¼ããç¨æãã 以ä¸ã docstring ã®æ¸ããã Python ã®ã½ã¼ã¹ã³ã¼ãã å 容ã«ã¤ãã¦ã¯ FizzBuzz åé¡ãé¡æã«ãã¦ããã ã¢ã¸ã¥ã¼ã«ãé¢æ°ã®å é 㧠âââ ã âââ ã使ã£ã¦ã³ã¡ã³ããæ¸ãã¦ããã¨ããããèªåçã« docstring ã¨ãã¦æ±ããããã¨ã«ãªãã #!/usr/bi
Sphinx ã¯ããã¥ã¡ã³ãã®ã³ã³ãã³ãã¨ãã¶ã¤ã³ãåé¢ããã¦ããã ãã¶ã¤ã³ãå¤ãããã¨ãã¯ãã¼ããå¤æ´ããã°è¯ãã ãã ãæ¢åã®ãã¼ããã®ã¾ã¾ã§ã¯æºè¶³ã§ããè¦æ ãã«ãªããªãã¨ããããã ãããªã¨ãã¯æ¢åã®ãã¼ããã«ã¹ã¿ãã¤ãºããå¿ è¦ãåºã¦ããã ä»åã¯ãã®ããæ¹ã«ã¤ãã¦æ¸ãã ç°å¢ã«ã¯ Mac OS X ã使ã£ã¦ããã $ sw_vers ProductName: Mac OS X ProductVersion: 10.11.2 BuildVersion: 15C50 ä¸æºå ã¾ãã¯ä¸æºåã¨ã㦠Sphinx ãã¤ã³ã¹ãã¼ã«ããã $ pip install sphinx 次㫠sphinx-quickstart ã³ãã³ãã使ã£ã¦ããã¥ã¡ã³ããç¨æããã ããã©ã«ãã®å ¥åå¤ããå¤æ´ãã¦ããã¨ããã ã示ãã $ sphinx-quickstart > Separate source an
æè¤ã§ããããã«ã¡ã¯ã ä»æ¥ã¯ãSphinxã§HTMLã®ããã¥ã¡ã³ããçæããéãããã¥ã¡ã³ãå ¨ä½ã«å¯¾ãã¦ä½è£ã®å¤æ´ãè¡ããããããã¼ããç¶æ¿ããæ¹æ³ãã話ããã¾ããæ¬è¨äºã§ã¯ããç¶æ¿ããçç±ããçµã¿æ¹ãããã¦ã注æç¹ãã®3ç¹ã«ã¤ãã¦ã¾ã¨ãã¾ããã â»æ¤è¨¼ããã½ããã¦ã§ã¢ã®ãã¼ã¸ã§ã³ã°ãSphinxã¯1.1.3sphinxjp-latexãPythonã¯2.6.6 (CentOS 6.4æ¨æºrpm)ã§ãã ç¶æ¿ããçç± Sphinxã¨ã¯ãPythonã§åä½ããreStructuredText(以ä¸ãreST)ã§è¨è¿°ããããã¥ã¡ã³ãçæã¨ã³ã¸ã³ã§ããåºåã¯ãHTMLã°ããã§ãªããLaTeX(PDF)ãmanãªã©å¤æ§ãªå½¢å¼ããµãã¼ããã¦ãã¾ããã¾ããHTMLåºåã®éããã¼ããå©ç¨ãã¦å®¹æã«ä½è£ãå¤æ´ããäºãã§ãã¾ãã ãã¦ãæ¢åã®Sphinxã®ãã¼ããå¤æ´ããããªãæã¨ã¯ãã©ã®ãããªå ´åã§ãã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}