Skip to content

Commit

Permalink
Fix to work with sassdoc 2.2.0 (bump to 0.5.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgerigmeyer committed Feb 22, 2017
1 parent 8ddaac6 commit adf35f9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ for more info.
Releases
--------

### 0.5.5: 2017-02-22

- Fix @example macro to work with sassdoc v2.2.0. See
[https://github.com/SassDoc/sassdoc/commit/842847493f9644e50f9e2ce783eacf886ccf69a0][].

### 0.5.4: 2017-01-16

- Render type `html` examples to HTML. Closes
Expand Down
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,11 @@ module.exports.annotations = [
* and put the result in the `rendered` property of the parsed example.
*/
function example (env) {
var baseExample = require('sassdoc/dist/annotation/annotations/example')();
var baseExampleFn = require('sassdoc/dist/annotation/annotations/example');
if (typeof baseExampleFn !== 'function') {
baseExampleFn = baseExampleFn.default;
}
var baseExample = baseExampleFn();
return {
name: 'example',
parse: baseExample.parse,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sassdoc-theme-herman",
"description": "An Odd SassDoc theme.",
"version": "0.5.4",
"version": "0.5.5",
"keywords": [
"sassdoc-theme"
],
Expand Down

0 comments on commit adf35f9

Please sign in to comment.