Theme and config file passed via cli #362

pascalduez opened this Issue Feb 9, 2015 · 0 comments


None yet
1 participant

pascalduez commented Feb 9, 2015

sassdoc $(SOURCE) --theme=./dist --config=./dist/defaults.json

[WARNING] Theme ./dist not found.

@pascalduez pascalduez added the Bug label Feb 9, 2015

valeriangalliat added a commit that referenced this issue Feb 9, 2015

Graceful relative paths in CLI and config file
Before this, `dest` was always relative to CWD even when set from config
file, and if a config file was defined, `theme` was always relative to
it even when set via CLI.

Now for all CLI-passed environment properties, a "friend" `*Cli` prperty
is set to `true` (`themeCli`, `destCli`), so the environment loader can
determine whether it's relative to CWD or config file.

Also paths are now stored absolute, but are always displayed relative to
the CWD for coherent CLI output. If you set `theme: ../../theme` in
`foo/config.yml`, the displayed theme in CLI output will be `../theme`.

This fixes #362.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment