Skip to content

Commit

Permalink
#3 add style config with default to solarized
Browse files Browse the repository at this point in the history
  • Loading branch information
wodka committed Feb 4, 2016
1 parent c4f7a72 commit 0fa7270
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 105 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ set the filename - warning: only use one input file! else only the last one will

Type: `String`<br><br>Default `index.html.md` will become `index.html`

#### options.style
Highlighting style, use any name from https://github.com/isagalaev/highlight.js/tree/master/src/styles

Type: `String`<br><br>Default `solarized-dark`

#### options.template
Template to render - in general you should never need to touch this

Expand Down
12 changes: 11 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,17 @@ function buildAssets (opts, callback) {
return new Promise(function (resolve) {
es.concat(
gulp
.src(opts.scss, {base: '.'})
.src(
[
opts.scss,
ROOT+'node_modules/highlight.js/styles/'+opts.style+'.css'
],
{
base: '.'
}
)
.pipe(sass())
.pipe(concat("app.css"))
.pipe(rename({dirname: 'build', basename: 'app', extname: '.css'}))
.pipe(gutil.buffer(function(err, files) {
_.forEach(files, function (file) {
Expand Down Expand Up @@ -130,6 +139,7 @@ module.exports = function (opts) {
opts = _.extend({
assets: true,
filename: false,
style: 'solarized-dark',
template: ROOT+'src/layout.html',
scss: ROOT+'src/app.scss',
logo: ROOT+'node_modules/slate/source/images/logo.png',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gulp-slate",
"version": "1.0.1",
"version": "1.0.2",
"description": "Slate API Documentation built to build with gulp",
"main": "index.js",
"scripts": {
Expand Down
102 changes: 0 additions & 102 deletions src/_code.scss

This file was deleted.

1 change: 0 additions & 1 deletion src/app.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

@import "code";
@import "functions";

@media screen {
Expand Down

0 comments on commit 0fa7270

Please sign in to comment.