Skip to content

Commit

Permalink
add svg to doc index
Browse files Browse the repository at this point in the history
  • Loading branch information
clmath committed Nov 5, 2015
1 parent 8b00a39 commit bb7a69a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ Requirejs-dplugins provides a set of AMD plugins compatible with requirejs and g
* [jquery](jquery.md) - loads the jquery modules if they are not loaded already.
* [maybe](maybe.md) - requires modules that may or may not exist.
* [Promise](Promise.md) - provides ES6 Promise implementation.
* [svg](svg.md) - loads an svg graphic.
6 changes: 3 additions & 3 deletions docs/svg.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ define([
```

This will fetch `icon1.svg` and `icon2.svg` and define two symbols in the DOM
```svg
```xml
<svg>
...
<symbol id="icon1" viewBox="..." > ... </symbol>
Expand All @@ -29,7 +29,7 @@ This will fetch `icon1.svg` and `icon2.svg` and define two symbols in the DOM

You can then use the icons anytime with

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

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

```svg
```xml
<svg id="my-graphic" viewBox="0 0 80 120"> ... </svg>
```

Expand Down

0 comments on commit bb7a69a

Please sign in to comment.