Skip to content

Commit

Permalink
Add docco task
Browse files Browse the repository at this point in the history
  • Loading branch information
serkanyersen committed May 24, 2015
1 parent c0c7f29 commit 24e504a
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 20 deletions.
12 changes: 11 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,25 @@ module.exports = function(grunt) {
'src/ifvisible.min.js': ['src/ifvisible.js']
}
}
},

docco: {
build: {
src: ['src/ifvisible.coffee'],
options: {
output: 'docs/'
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-docco');

grunt.registerTask('default', function (spec) {

grunt.task.run(['coffee:compile', 'uglify:build']);
grunt.task.run(['coffee:compile', 'uglify:build', 'docco:build']);

});

Expand Down
24 changes: 6 additions & 18 deletions docs/docco.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
}

@font-face {
font-family: 'roboto-black';
src: url('public/fonts/roboto-black.eot');
src: url('public/fonts/roboto-black.eot?#iefix') format('embedded-opentype'),
url('public/fonts/roboto-black.woff') format('woff'),
url('public/fonts/roboto-black.ttf') format('truetype');
font-family: 'novecento-bold';
src: url('public/fonts/novecento-bold.eot');
src: url('public/fonts/novecento-bold.eot?#iefix') format('embedded-opentype'),
url('public/fonts/novecento-bold.woff') format('woff'),
url('public/fonts/novecento-bold.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
Expand Down Expand Up @@ -67,17 +67,14 @@ h1, h2, h3, h4, h5, h6 {
color: #112233;
line-height: 1em;
font-weight: normal;
font-family: "roboto-black";
font-family: "novecento-bold";
text-transform: uppercase;
margin: 30px 0 15px 0;
}

h1 {
margin-top: 40px;
}
h2 {
font-size: 1.26em;
}

hr {
border: 0;
Expand Down Expand Up @@ -183,18 +180,9 @@ ul.sections > li > div {
display: block;
}

#jump_page_wrapper{
position: fixed;
right: 0;
top: 0;
bottom: 0;
}

#jump_page {
padding: 5px 0 3px;
margin: 0 0 25px 25px;
max-height: 100%;
overflow: auto;
}

#jump_page .source {
Expand Down
Empty file modified docs/public/fonts/novecento-bold.eot
100755 → 100644
Empty file.
Empty file modified docs/public/fonts/novecento-bold.ttf
100755 → 100644
Empty file.
Empty file modified docs/public/fonts/novecento-bold.woff
100755 → 100644
Empty file.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-coffee": "^0.13.0",
"grunt-contrib-uglify": "^0.9.1"
"grunt-contrib-uglify": "^0.9.1",
"grunt-docco": "^0.3.3"
}
}

0 comments on commit 24e504a

Please sign in to comment.