-
Notifications
You must be signed in to change notification settings - Fork 11
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
Command-line flags #11
Comments
/me nods Given config file and option flag, which do you think should take precedence? (I'd say option flag.) |
Definitely option flag; that's the most specific, as it's specified at time
|
Agreed. Let me see what I can do. (Additionally, if you have time and inclination to work up a PR, I'll review it.) |
This should be fixed; try the dev-develop branch and let me know how it goes for you. |
Nope, not yet -- sorry for the noise. |
@weierophinney OK, now try dev-develop. You should be able override with |
I can confirm it works... but there's one oddity. :) So, I have a directory structure that has the following:
Inside of $ bookdown --template=../documentation/doc/templates/main.php doc/bookdown.json This failed; it could not find the template:
In other words, it was resolving the relative path relative to the I would expect it to resolve the path based on where the script was invoked. This would require resolving path arguments prior to parsing the (When I re-ran and specified the path relative to the |
Mmm, I can guess what the problem is. I'll take a look. |
OK @weierophinney give it another go. The relevant commit is dee1f42 and takes away the code to "fix" the path to make it relative to the bookdown.json file. |
Works perfectly, @pmjones ! 🚢 !!! |
Finally. Sorry for the hassle, and thanks for your patience. New release forthcoming as a result! |
We're planning on using Bookdown for the documentation of the various Zend Framework components. One thing I'd like to be able to do is have a bare-minimum
bookdown.json
that specifies the title and content, and optionally the default target, and then specify the template (and possibly the target) via a command-line flag. This would allow us to have the "official" templates in a top-level repo that aggregates documentation from each of the components, but also allow developers to render the documentation using that template if it's checked out somewhere on their filesystem:$ bookdown --template=../documentation/templates/main.php doc/bookdown.json
Or, to override the target:
The text was updated successfully, but these errors were encountered: