Skip to content

Commit

Permalink
remove broken option - highlightTutorialCode. Fixes #64
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeapage committed Dec 11, 2015
1 parent c5c6575 commit 24feaa6
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
3 changes: 1 addition & 2 deletions README.md
Expand Up @@ -82,7 +82,6 @@ DocStrap ships with a `conf.json` file in the template/ directory. It is just a
"outputSourceFiles" : "{boolean}" ,
"outputSourcePath" : "{boolean}",
"dateFormat" : "{string}",
"highlightTutorialCode" : "{boolean}",
"syntaxTheme" : "{string}"
}

Expand Down Expand Up @@ -136,7 +135,6 @@ DocStrap ships with a `conf.json` file in the template/ directory. It is just a
When `outputSourceFiles` is `false`, you may still want to name the file even without a link to the pretty printed output.
Set this to `true` when `outputSourceFiles` is `false`. `outputSourceFiles` when `true` takes precedence over this setting.
* __dateFormat__ The date format to use when printing dates. It accepts any format string understood by [moment.js](http://momentjs.com/docs/#/displaying/format/)
* __highlightTutorialCode__ Boolean used to determine whether to treat code blocks in "tutorial" markdown as examples and highlight them
* __syntaxTheme__ String that determines the theme used for code blocks. Default value is `"default"`. It can be any value supported
at [sunlight themes](https://github.com/tmont/sunlight/tree/master/src/themes) which right now consists of...uh...`"default"` and `"dark"`,
but at least you have it if you need it.
Expand Down Expand Up @@ -272,6 +270,7 @@ Yes! Contribute! Test! Share your ideas! Report Bugs!
* Bump to follow semver (initial development is well and truly over)
* Corrected list of themes
* Added Search
* Remove highlightTutorialCode option - it didnt work

## 0.5.4 ##

Expand Down
3 changes: 1 addition & 2 deletions fixtures/example.conf.json
Expand Up @@ -16,8 +16,7 @@
"theme" : "cosmo",
"linenums" : true,
"collapseSymbols" : false,
"inverseNav" : true,
"highlightTutorialCode" : true
"inverseNav" : true
},
"markdown" : {
"parser" : "gfm",
Expand Down
3 changes: 1 addition & 2 deletions fixtures/testdocs.conf.json
Expand Up @@ -22,8 +22,7 @@
"theme" : "cosmo",
"linenums" : true,
"collapseSymbols" : false,
"inverseNav" : true,
"highlightTutorialCode" : true
"inverseNav" : true
},
"markdown" : {
"parser" : "gfm",
Expand Down
1 change: 0 additions & 1 deletion template/jsdoc.conf.json
Expand Up @@ -18,7 +18,6 @@
"linenums": true,
"collapseSymbols": false,
"inverseNav": true,
"highlightTutorialCode": true,
"protocol": "html://",
"methodHeadingReturns": false
},
Expand Down
3 changes: 1 addition & 2 deletions template/publish.js
Expand Up @@ -46,7 +46,6 @@ var navOptions = {
outputSourcePath: conf.outputSourcePath,
dateFormat: conf.dateFormat,
analytics: conf.analytics || null,
highlightTutorialCode: conf.highlightTutorialCode,
methodHeadingReturns: conf.methodHeadingReturns === true
};
var searchableDocuments = {};
Expand Down Expand Up @@ -517,7 +516,7 @@ exports.publish = function(taffyData, opts, tutorials) {
return {
caption: caption || '',
code: example,
lang: (lang && navOptions.highlightTutorialCode) ? lang : "javascript"
lang: lang || "javascript"
};
});
}
Expand Down

0 comments on commit 24feaa6

Please sign in to comment.