mpetrovich / stylemark

Generate interactive style guides from Markdown.
MIT License
218 stars 35 forks source link

Possibility to have a custom source path #78

Open yannisabel opened 5 years ago

yannisabel commented 5 years ago

Hi, I would like to be able to customize the source Path of the parsed file. For now if the documentation is in a markdown file the source path is path/to/markdown/file.md. In this documentation it will be great to override this source path with an other. Example:

---
name: Button
category: Component
source: a/custom/path/to/the/file
---

With this feature the documentation can be in external markdown file and display the source path of the style file (for example). If the source option is not specified it displays the file path as it currently does.

Is this feature possible?

thanks in advance