diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-17 03:36:17 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-04-02 13:41:02 -0400 |
commit | 435267714fd9be710945d5d6c2d0ee1f18294e12 (patch) | |
tree | 49fcc2f8e5d0204658a3204b04b1a28c18076242 /examples/scalatex-example/docs | |
parent | b10412e7c29c1c0e6c46170e14696bdd48646e02 (diff) | |
download | cbt-435267714fd9be710945d5d6c2d0ee1f18294e12.tar.gz cbt-435267714fd9be710945d5d6c2d0ee1f18294e12.tar.bz2 cbt-435267714fd9be710945d5d6c2d0ee1f18294e12.zip |
Add Scalatex plugin
Diffstat (limited to 'examples/scalatex-example/docs')
-rw-r--r-- | examples/scalatex-example/docs/build/build.scala | 14 | ||||
-rw-r--r-- | examples/scalatex-example/docs/readme.scalatex | 21 | ||||
-rw-r--r-- | examples/scalatex-example/docs/static/style.css | 32 |
3 files changed, 67 insertions, 0 deletions
diff --git a/examples/scalatex-example/docs/build/build.scala b/examples/scalatex-example/docs/build/build.scala new file mode 100644 index 0000000..51b158f --- /dev/null +++ b/examples/scalatex-example/docs/build/build.scala @@ -0,0 +1,14 @@ +package cbt_examples.scalatex_example_build +import cbt._ +import java.io._ +import java.nio.file._ +import java.nio.file.attribute._ +class Build(val context: Context) extends Scalatex{ + override def dependencies = super.dependencies ++ Seq( + DirectoryDependency( projectDirectory / ".." ) + ) + override def run = { + scalatex.apply + super.run + } +} diff --git a/examples/scalatex-example/docs/readme.scalatex b/examples/scalatex-example/docs/readme.scalatex new file mode 100644 index 0000000..11f432e --- /dev/null +++ b/examples/scalatex-example/docs/readme.scalatex @@ -0,0 +1,21 @@ +@import scalatags.Text.all._ +@h1("cbt.http.client") +@p + @ul + @li + http client library + @li + super simple and easy to use + @li + type-safe and resource-leak-safe + @li + no dependencies besides JDK + @li + complete (offers everything @pre(`class`:="inline"){java.net.URLConnection} does) + @repl + cbt_example.scalatex.Foo.foo(1,2) + +@comment{ + @h3 + Usage example +}
\ No newline at end of file diff --git a/examples/scalatex-example/docs/static/style.css b/examples/scalatex-example/docs/static/style.css new file mode 100644 index 0000000..36547e0 --- /dev/null +++ b/examples/scalatex-example/docs/static/style.css @@ -0,0 +1,32 @@ +@import url('https://fonts.googleapis.com/css?family=Muli'); +body{ + font-family: 'Muli', sans-serif; + width: 600px; + left: 50%; + margin-left: -300px; + position: absolute; +} + +h1, h2, h3, h4, h5, h6{ + color: #007bbf; +} + +.path-readme li{ + font-size: 30px; +} + +pre{ + display: block; + border-top: 0px; + border-bottom: 0px; + border-left: 0; + border-right: 0; + border-color: #007bbf; + border-style: solid; + padding: 5px 0; +} + +pre.inline{ + display: inline; + border: 0; +} |