Skip to content

Commit

Permalink
Update JavaScript example in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnAlbin committed Nov 12, 2016
1 parent 64e5a31 commit 88691a8
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Expand Up @@ -129,15 +129,13 @@ var kss = require('kss'),
markdown: false
};

kss.traverse('public/stylesheets/', options, function(error, styleGuide) {
if (error) throw error;

styleGuide.sections('2.1.1') // <KssSection>
styleGuide.sections('2.1.1').modifiers(0) // <KssModifier>
styleGuide.sections('2.1.1').modifiers(':hover').description() // 'Subtle hover highlight'
styleGuide.sections('2.1.1').modifiers(0).className() // 'pseudo-class-hover'
styleGuide.sections('2.x.x') // [<KssSection>, ...]
styleGuide.sections('2.1.1').modifiers() // [<KssModifier>, ...]
kss.traverse('public/stylesheets/', options).then(function(styleGuide) {
styleGuide.sections('2.1.1'); // <KssSection>
styleGuide.sections('2.1.1').modifiers(0); // <KssModifier>
styleGuide.sections('2.1.1').modifiers(':hover').description(); // 'Subtle hover highlight'
styleGuide.sections('2.1.1').modifiers(0).className(); // 'pseudo-class-hover'
styleGuide.sections('2.x.x'); // [<KssSection>, ...]
styleGuide.sections('2.1.1').modifiers(); // [<KssModifier>, ...]
});
```

Expand Down

0 comments on commit 88691a8

Please sign in to comment.