doc: Make more clear that stylesheets are always included in the end HTML

This commit is contained in:
Rodrigo Fernandes 2019-05-23 20:43:12 +01:00 committed by GitHub
parent 4c15a9ca93
commit ce88d603fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,6 +54,17 @@ diff2html generates pretty HTML diffs from git or unified diff output.
## How to use
To load correctly in the Browser you always need to include the stylesheet in the final HTML.
Import the stylesheet
```html
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="dist/diff2html.css">
```
You can also refer to it from a CDN like [CDNJS](https://cdnjs.com/libraries/diff2html).
### Browser Library
Import the stylesheet and the library code