mpetrovich / stylemark

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

Missing configuration file #51

Closed Yugloocamai closed 5 years ago

Yugloocamai commented 6 years ago

Stylemark is asking me for a configuration file, even though the docs claim that -c is optional.

stylemark -i ./sass -o ./sass-documentation -w 2000 -b 8050

Generating style guide... Missing configuration file

Yugloocamai commented 6 years ago

ok, even providing a configuration file, and adding -c generates the same error.

mpetrovich commented 6 years ago
  1. What does your file directory structure look like? (including the location of the configuration file)
  2. What is the exact command you're running when you include -c?
mpetrovich commented 5 years ago

Is your .stylemark.yml file within the input directory? sass in this case.

Per the docs:

configPath defaults to .stylemark.yml within the input directory

I'll admit that this a surprising default and is starting to make less sense over time.

To fix your issue, either move .stylemark.yml to the sass directory or explicitly include the config filepath -c ./.stylemark.yml. Please reopen if neither of those fix your issue.