snapguidist icon indicating copy to clipboard operation
snapguidist copied to clipboard

Provide a way to skip some examples

Open jason0x43 opened this issue 7 years ago • 3 comments
trafficstars

Snapguidist should ideally provide a way to filter which examples are tested, or to disable testing for specific code blocks. For example, users may not want snapguidist to run tests on example blocks in general doc sections.

jason0x43 avatar Feb 28 '18 16:02 jason0x43

+100 @cef62 and I talked a lot about this. PR anyone? :)

MicheleBertoli avatar Mar 01 '18 07:03 MicheleBertoli

One way to go about it would be to give snapguidist's Preview a prop that would disable testing, and have Playground set that on Preview based on a setting passed into Playground, like notest (for consistency with noeditor).

jason0x43 avatar Mar 01 '18 13:03 jason0x43

That would require duplicating a bit more of styleguidist's Playground's code in snapguidist, but it shouldn't be too bad.

jason0x43 avatar Mar 01 '18 13:03 jason0x43