Comments (11)
/me nods
Given config file and option flag, which do you think should take precedence? (I'd say option flag.)
from bookdown.bookdown.
Definitely option flag; that's the most specific, as it's specified at time
of invocation.
On Jun 13, 2015 1:50 PM, "Paul M. Jones" [email protected] wrote:
/me nods
Given config file and option flag, which do you think should take
precedence? (I'd say option flag.)—
Reply to this email directly or view it on GitHub
#11 (comment)
.
from bookdown.bookdown.
Agreed. Let me see what I can do. (Additionally, if you have time and inclination to work up a PR, I'll review it.)
from bookdown.bookdown.
This should be fixed; try the dev-develop branch and let me know how it goes for you.
from bookdown.bookdown.
Nope, not yet -- sorry for the noise.
from bookdown.bookdown.
@weierophinney OK, now try dev-develop. You should be able override with --template=
and/or --target=
at will.
from bookdown.bookdown.
I can confirm it works... but there's one oddity. :)
So, I have a directory structure that has the following:
documentation/
doc/
templates/
a-component/
doc/
bookdown.json
book/
Inside of a-component/
, I invoked bookdown with the following:
$ bookdown --template=../documentation/doc/templates/main.php doc/bookdown.json
This failed; it could not find the template:
Cannot find template 'doc/../documentation/doc/templates/main.php'.
In other words, it was resolving the relative path relative to the bookdown.json
, not where bookdown
was actually invoked.
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 bookdown.json
, probably.
(When I re-ran and specified the path relative to the bookdown.json
, it worked perfectly.)
from bookdown.bookdown.
Mmm, I can guess what the problem is. I'll take a look.
from bookdown.bookdown.
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.
from bookdown.bookdown.
Works perfectly, @pmjones !
from bookdown.bookdown.
Finally. Sorry for the hassle, and thanks for your patience. New release forthcoming as a result!
from bookdown.bookdown.
Related Issues (20)
- Add note about rootPath to docs HOT 4
- TOC depth limit status HOT 4
- How to add the custom root page feature? HOT 2
- How to implement breadcrumbs? HOT 1
- How to add sidebar of siblings at the current level? HOT 1
- International characters not rendered correctly HOT 15
- TocDepth not working properly? HOT 2
- How to add content search like lunr.js? HOT 10
- Option to insert Disqus HOT 3
- Add to staticgen.com HOT 4
- Any option to disable rendering of heading numbers? HOT 7
- Building new site throws Fatal Errors HOT 8
- Q: template value HOT 3
- Is there a 1.0.0-beta2 already planned ? HOT 7
- Move minimum PHP version to 5.6? HOT 1
- Table and Figure caption not showing Bengali characters HOT 4
- Warning produced HOT 1
- PHP 7.2 count issue HOT 2
- Releases needed HOT 1
- Help :: Issue with numbering
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bookdown.bookdown.