Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mermade/shins
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed Nov 10, 2017
2 parents 9c2e4f6 + 125d26c commit c293cf5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
13 changes: 11 additions & 2 deletions arapaho.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,17 @@ function check(req,res,fpath) {
console.log('Rebuilding '+fpath);
fs.readFile(path.join(__dirname,'source',fpath+'.md'),'utf8',function(err,markdown){
if (markdown) {
// TODO at the moment there's no way to specify customcss etc
shins.render(markdown,{},function(err,html){
let options = {};
if (req.query["customcss"]) {
options.customCss = true;
}
if (req.query["inline"]) {
options.inline = true;
}
if (req.query["minify"]) {
options.minify = true;
}
shins.render(markdown,options,function(err,html){
res.send(html);
fs.writeFile(path.join(__dirname,fpath),html,'utf8',function(){});
});
Expand Down
3 changes: 3 additions & 0 deletions pub/css/screen_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ div .highlight {
padding-left: 65px;
font-size: 8px;
}
.well {
background: rgba(0, 0, 0, 0.01);
}

0 comments on commit c293cf5

Please sign in to comment.