Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Releases: mpetrovich/stylemark

v4.0.0 alpha 0

25 Feb 14:55
Compare
Choose a tag to compare
v4.0.0 alpha 0 Pre-release
Pre-release

What's new

  • Completely rewritten using unified.js for Markdown parsing and HTML generation instead of buggy regex and string replacement
  • No more iframes! Shadow DOM is now used to render interactive examples.

What's missing

  • A basic UI (right now it's a raw dump of components)
  • Support for popular UI frameworks (React, Angular, Vue, etc.)
  • Theming and HTML output customization
  • Including external files from specimen code blocks

v3.1.3

26 Jan 05:40
Compare
Choose a tag to compare

Bug fixes

  • Removes extraneous empty line from generated HTML that was breaking functionality in certain browsers (#60)

v3.1.2

16 Dec 06:10
Compare
Choose a tag to compare

Bug fixes

  • Updates all dependencies.
  • Includes examples.headHtml at the very end of the <head> block. Previously, it wasn't at the very end of the <head> block which contradicted the documentation.

v3.1.1

16 Dec 05:22
Compare
Choose a tag to compare

Bug fixes

  • Show component filepaths as relative to input path, not as absolute paths

v3.1.0

16 Dec 04:15
Compare
Choose a tag to compare

New functionality

  • Displays source filepath of each styleguide component (screenshot below) with included theme hooks:
    • theme-content-element-source: An element's source filepath container
    • theme-content-element-source-label: The text label of an element's source filepath
    • theme-content-element-source-path: The filepath string of an element's source filepath

screenshot 2018-12-15 23 08 40

Bug fixes

  • Debounces rather than throttles styleguide generation, which should address runaway styleguide generation when using the file watcher (-w option).
  • Uses baseDir config option as provided instead of trying to find the nearest package.json directory from it.

v3.0.4

16 Dec 03:27
Compare
Choose a tag to compare

Bug fixes

  • Fixes #59 by removing usage of rfr entirely

v3.0.3

09 Aug 19:57
Compare
Choose a tag to compare

Bug fixes

  • Fixes broken sidebar search filter in Firefox (#49)

v3.0.2

04 Jul 20:31
Compare
Choose a tag to compare

Bug fixes

  • Fixes incorrect base path logic when resolving config filepaths. Paths are now resolved according to the nearest ancestor directory that contains package.json rather than the current working directory. The docs said the former but the actual logic was performing the latter.
  • Fix overly aggressive loading of example iframes, which made the navigation jump links hard to use. Now, iframes will only load once they've been visible for at least 100ms.
  • Fixes styling of mobile navigation dropdown in IE 10 (#45)

v3.0.1

10 Jun 17:35
Compare
Choose a tag to compare

Bug fixes

v3.0.0

04 Jun 02:13
Compare
Choose a tag to compare

Breaking changes

A number of configuration properties have changed locations:

  • logo is now under theme
  • assets in theme has been split up into css and js

bodyHtml now represents the HTML template of the example; the example's HTML content will be inserted in place of "{html}".

New functionality

New configuration properties:

  • examples property contains settings for each rendered example:
    • css
    • js
    • htmlTag
    • bodyTag

See the configuration docs.