æè¿AkkaãAlpakkaãªã©ã®ããã¥ã¡ã³ãã§ä½¿ããã¦ããLightbend製ã®Paradoxã¨ããããã¥ã¡ã³ãã¼ã·ã§ã³ãã¼ã«ã試ãã¦ã¿ã¾ããã *1
使ãæ¹ã¯ããã¥ã¡ã³ããè¦ãã°ãããã¨æãã¾ãããè¦ç¹ã ãã¾ã¨ãã¦ããã¾ãã
ã¯ããã®ä¸æ©
Paradoxã¯sbtãã©ã°ã¤ã³ã¨ãã¦å®è£
ããã¦ããã®ã§ã¾ãã¯project/plugins.sbt
ã«ä»¥ä¸ã追è¨ãã¾ãã
addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.2.12")
build.sbt
ã«ä»¥ä¸ã®è¨å®ã追å ãã¾ãã
enablePlugins(ParadoxPlugin)
paradoxTheme := Some(builtinParadoxTheme("generic"))
ããã¥ã¡ã³ãã¯src/main/paradox
ãã£ã¬ã¯ããªé
ä¸ã«ä½æãã¾ãã以ä¸ã®ãããªå
容ã§index.md
ã¨ãããã¡ã¤ã«ãä½ã£ã¦ããã¾ãã
Paradoxã®ãã¹ã
========
ããã¯Paradoxã®ãã¹ããã¼ã¸ã§ãã
ããã¾ã§è¨å®ãããsbt paradox
ãå®è¡ããã¨target/paradox/site/main
ãã£ã¬ã¯ããªé
ä¸ã«HTMLãçæããã¾ãã
ãã£ã¬ã¯ãã£ãã使ã£ã¦ã¿ã
Paradoxã§ã¯åºæ¬çã«Markdownã§ããã¥ã¡ã³ããè¨è¿°ãã¾ããã@
ï¼ã¤ã³ã©ã¤ã³ï¼ã@@
ï¼ãããã¯ï¼ã@@@
ï¼ã³ã³ããï¼ã§ç¹æ®ãªãã£ã¬ã¯ãã£ãã使ç¨ãããã¨ãã§ãã¾ããããã§ã¯ç¹ã«éè¦ãããªãã£ã¬ã¯ãã£ãã2ã¤ã ãç´¹ä»ãã¦ããã¾ãã
ãµã¤ãã¡ãã¥ã¼ã表示ãã
index.md
ã®æ«å°¾ã«ä»¥ä¸ã®ãããªè¨è¿°ãå
¥ãã¦ããã¨ãµã¤ãã¡ãã¥ã¼ã表示ãããã¨ãã§ãã¾ãã
@@@ index * [Getting started](getting-started.md) * [News](news.md) * [Documentation](documentation.md) * [Community](community.md) @@@
表示ã¯ãããªæãã«ãªãã¾ãã
ã½ã¼ã¹ã³ã¼ããå¼ç¨ãã
Paradoxã®é常ã«ä¾¿å©ãªæ©è½ã®1ã¤ããã®ã½ã¼ã¹ã³ã¼ãã®å¼ç¨æ©è½ã§ãã以ä¸ã®ãããªè¨è¿°ã§ã½ã¼ã¹ã³ã¼ãã®ä¸é¨ãåãè¾¼ããã¨ãã§ãã¾ãã
@@snip [Hello World](../../main/scala/HelloWorld.scala) { #sample }
ã½ã¼ã¹ã³ã¼ãã«ã¯ä»¥ä¸ã®ããã«ã³ã¡ã³ãã§Paradoxããåç §ããããã®ã¿ã°ãåãè¾¼ãã§ããã¾ãã
// #sample object HelloWorld extends App { println("Hello World!") } // #sample
ã½ã¼ã¹ã³ã¼ãã®å¼ç¨æ©è½ã使ããã¨ã§ã½ã¼ã¹ã³ã¼ãã¨ããã¥ã¡ã³ãå ã®ãµã³ãã«ã³ã¼ãã®äºé管çãé²ããã¨ãã§ãã¾ããããã¥ã¡ã³ãã§ä½¿ç¨ã§ããã¨ãããã¨ããã¹ãã±ã¼ã¹ãæ¸ãã¤ã³ã»ã³ãã£ãã«ãªãã¾ãããCIãåãã¦ããã°ããã¥ã¡ã³ãã«æ²è¼ããã¦ããã³ã¼ãã¯ãã«ããéãã³ã¼ãã§ãããã¨ãä¿è¨¼ã§ãã¾ãã
ãã®ä»ã®æ©è½
Paradoxã«ã¯ãã®ä»ã«ãããã¥ã¡ã³ãå ã®ã¯ãã¹ãªãã¡ã¬ã³ã¹ãScaladocã¸ã®ãªã³ã¯ãç°¡åã«å¼µããã¨ãã§ããããJava / Scalaãªã©ã½ã¼ã¹ã³ã¼ããã¿ãã§åãæ¿ãããããããªå½¢ã§è¡¨ç¤ºãããã¨ãã§ãã¾ããã·ã³ãã«ãªãããã¬ã¼ã ã¯ã¼ã¯ãã©ã¤ãã©ãªãªã©ã®ããã¥ã¡ã³ãç¨ã«ãããæãããã¼ã«ã¨è¨ããã§ãããã
å©ç¨ã·ã¼ã³ã¯ä¸»ã«Scalaã«éå®ããã¾ãããREADMEã ãã§ã¯ä½¿ãæ¹ãæ¸ããããªããªã£ã¦ãããParadoxã®å©ç¨ãæ¤è¨ãã¦ã¿ã¦ãããã®ã§ã¯ãªããã¨æãã¾ãã
*1:Unfilteredã®Webãµã¤ããParadoxã使ã£ã¦ããããã§ããsbt-siteã¨sbt-ghpagesã使ã£ã¦GitHub Pagesã«ãããã¤ãã¦ããããã
http://xuwei-k.hatenablog.com/entry/20161211/1481437560