Skip to content

Commit dc9a613

Browse files
committed
more doc fixes #495
1 parent 0a5d1e2 commit dc9a613

7 files changed

Lines changed: 48 additions & 5 deletions

File tree

md/available-asset-procesors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@
4040

4141
* [requirejs](https://github.com/jooby-project/jooby/tree/master/jooby-assets-requirejs): r.js optimizer.
4242

43-
* [yui-js](https://github.com/jooby-project/jooby/tree/master/jooby-assets-yui-compressor): YUI JS optimizer.
43+
* [yui-js](https://github.com/jooby-project/jooby/tree/master/jooby-assets-yui-compressor#yui-js): YUI JS optimizer.

md/doc/assets-autoprefixer/autoprefixer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<groupId>org.jooby</groupId>
1212
<artifactId>jooby-assets-auto-prefixer</artifactId>
1313
<version>{{version}}</version>
14+
<scope>provided</scope>
1415
</dependency>
1516
```
1617

@@ -75,3 +76,7 @@ Output:
7576
```
7677

7778
For complete documentation about available options, please refer to the <a href="https://github.com/postcss/autoprefixer">autoprefixer</a> site.
79+
80+
# see also
81+
82+
{{available-asset-procesors.md}}

md/doc/assets-props/assets-props.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# props
22

3-
Replace ```${expressions}``` with a value from ```application.conf```.
3+
Replace ```${}``` expressions with application properties.
44

55
{{assets-require.md}}
66

@@ -18,8 +18,30 @@ assets {
1818
}
1919
```
2020

21+
## example
22+
23+
application.conf:
24+
25+
```
26+
foo = bar
27+
```
28+
29+
app.js:
30+
31+
```js
32+
(function (foo) {
33+
console.log(foo);
34+
})("${foo}")
35+
```
36+
37+
prints:
38+
39+
bar
40+
2141
## options
2242

43+
It replaces `${}` expressions, the `delims` options allow you to change this:
44+
2345
```
2446
assets {
2547
...

md/doc/assets-sass/sass.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
```xml
1010
<dependency>
1111
<groupId>org.jooby</groupId>
12-
<artifactId>jooby-sass</artifactId>
12+
<artifactId>jooby-assets-sass</artifactId>
1313
<version>{{version}}</version>
14+
<scope>provided</scope>
1415
</dependency>
1516
```
1617

@@ -51,3 +52,7 @@ assets {
5152

5253
}
5354
```
55+
56+
# see also
57+
58+
{{available-asset-procesors.md}}

md/doc/assets-svg-sprites/svg-sprites.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ An [AssetAggregator]({{defdocs}}/assets/AssetAggregator.html) that creates SVG s
99
```xml
1010
<dependency>
1111
<groupId>org.jooby</groupId>
12-
<artifactId>jooby-svg-sprites</artifactId>
12+
<artifactId>jooby-assets-svg-sprites</artifactId>
1313
<version>{{version}}</version>
14+
<scope>provided</scope>
1415
</dependency>
1516
```
1617

@@ -61,3 +62,7 @@ assets {
6162
```
6263

6364
Please refer to <a href="https://github.com/drdk/dr-svg-sprites">dr-svg-sprites</a> for more details.
65+
66+
# see also
67+
68+
{{available-asset-procesors.md}}

md/doc/assets-svg-symbol/svg-symbol.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SVG ```symbol``` for icons: merge svg files from a folder and generates a ```spr
1111
<groupId>org.jooby</groupId>
1212
<artifactId>jooby-assets-svg-symbol</artifactId>
1313
<version>{{version}}</version>
14+
<scope>provided</scope>
1415
</dependency>
1516
```
1617

@@ -131,3 +132,7 @@ svg.approved {
131132
```
132133

133134
This option is useful for generating more specific css class selectors.
135+
136+
# see also
137+
138+
{{available-asset-procesors.md}}

md/doc/assets-yui-compressor/yui-compressor.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,15 @@ assets {
4949

5050
## options
5151

52-
```
52+
```js
5353
assets {
5454
...
5555
yui-js {
5656
munge: true
5757
preserve-semi: true
5858
}
5959
}
60+
```
6061

6162
# see also
6263

0 commit comments

Comments
 (0)