Skip to content

Commit bb7a69a

Browse files
committed
add svg to doc index
1 parent 8b00a39 commit bb7a69a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

docs/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ Requirejs-dplugins provides a set of AMD plugins compatible with requirejs and g
1111
* [jquery](jquery.md) - loads the jquery modules if they are not loaded already.
1212
* [maybe](maybe.md) - requires modules that may or may not exist.
1313
* [Promise](Promise.md) - provides ES6 Promise implementation.
14+
* [svg](svg.md) - loads an svg graphic.

docs/svg.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define([
1919
```
2020

2121
This will fetch `icon1.svg` and `icon2.svg` and define two symbols in the DOM
22-
```svg
22+
```xml
2323
<svg>
2424
...
2525
<symbol id="icon1" viewBox="..." > ... </symbol>
@@ -29,7 +29,7 @@ This will fetch `icon1.svg` and `icon2.svg` and define two symbols in the DOM
2929

3030
You can then use the icons anytime with
3131

32-
```
32+
```xml
3333
<svg>
3434
<use xlink:href="#icon1"></use>
3535
</svg>
@@ -40,7 +40,7 @@ It should also have a `viewBox` attribute.
4040

4141
As an example, here is the minimal markup your graphic should follow:
4242

43-
```svg
43+
```xml
4444
<svg id="my-graphic" viewBox="0 0 80 120"> ... </svg>
4545
```
4646

0 commit comments

Comments
 (0)