This repository has been archived by the owner on Nov 17, 2020. It is now read-only.
Releases: mpetrovich/stylemark
Releases · mpetrovich/stylemark
v4.0.0 alpha 0
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
v3.1.2
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
Bug fixes
- Show component filepaths as relative to input path, not as absolute paths
v3.1.0
New functionality
- Displays source filepath of each styleguide component (screenshot below) with included theme hooks:
theme-content-element-source
: An element's source filepath containertheme-content-element-source-label
: The text label of an element's source filepaththeme-content-element-source-path
: The filepath string of an element's source filepath
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 nearestpackage.json
directory from it.
v3.0.4
v3.0.3
v3.0.2
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
Bug fixes
- #39: hiding external files does not work
- Don't assume
theme.logo
ortheme.sidebar
are set in the config - Improve styling
v3.0.0
Breaking changes
A number of configuration properties have changed locations:
logo
is now undertheme
assets
intheme
has been split up intocss
andjs
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.