Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass config and theme options #27

Closed
dignifiedquire opened this issue Dec 2, 2016 · 1 comment
Closed

Pass config and theme options #27

dignifiedquire opened this issue Dec 2, 2016 · 1 comment

Comments

@dignifiedquire
Copy link

I'm trying to setup a gulp task which uses the documentation.yml from the root of the project and a custom theme, but I can't find a place to pass this option through. It seems these options are not exposed in https://github.com/documentationjs/documentation/blob/master/index.js or am I missing something?

@tmcw
Copy link
Member

tmcw commented Dec 4, 2016

Right now it's not possible to pass a configuration file through gulp-documentation: config loading is done in sharedInputOptions, which is part of the documentation bin, and not exposed in the public API. Given that gulp-documentation and there'll be other kinds of access, maybe we should take an approach like .babelrc and parse it by default, even sometimes when it's not what you asked for :)

Or we could just expose a path to loadConfig in the Node API path?

dignifiedquire added a commit to dignifiedquire/documentation that referenced this issue Dec 5, 2016
dignifiedquire added a commit to dignifiedquire/documentation that referenced this issue Dec 5, 2016
tmcw pushed a commit to documentationjs/documentation that referenced this issue Dec 5, 2016
* feat(build): load passed in config option

Fixes #documentationjs/gulp-documentation#27

* refactor(build): streamline loadConfig path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants