Skip to content

Commit

Permalink
Merge pull request #585 from hannu/imrove-static-asset-doc
Browse files Browse the repository at this point in the history
Improve static asset documentation
  • Loading branch information
hannu committed Apr 20, 2015
2 parents 8567606 + 3cc0f70 commit 99baadc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ using KSS notation. It can be used as a command line utility, gulp task or grunt
* [Documenting syntax](#documenting-syntax)
* [Wrapper markup](#wrapper-markup)
* [Designer tool](#designer-tool)
* [Images, fonts and other static assets](#images-fonts-and-other-static-assets)
* [Tips and pointers](#tips-and-pointers)
* [Demo](#demo)

Expand Down Expand Up @@ -384,6 +385,22 @@ the application is served with the [built-in server](#option-server).
The changed values are checked for syntax errors before saving, and if something is wrong, nothing is written to the
source files and an error notification is shown on the client.

## Images, fonts and other static assets

Images, fonts and other static assets should be copied to style guide output folder to make them accessible in the style guide. It is recommended to create a gulp or grunt task to do the copying always when the style guide is generated.

If you modify you assets in gulp streams, you can add styleguide output directory as a second destination for your assets:

```
gulp.task('images', function() {
gulp.src(['images/**'])
// Do image sprites, optimizations etc.
.pipe(gulp.dest(buildPath + '/images'));
.pipe(gulp.dest(outputPath + '/images'));
});
```

## Tips and pointers

### `<html>` and `<body>` styles
Expand Down

0 comments on commit 99baadc

Please sign in to comment.