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

Support option for custom output directory #19

Open
orlade opened this issue Jan 11, 2016 · 5 comments
Open

Support option for custom output directory #19

orlade opened this issue Jan 11, 2016 · 5 comments

Comments

@orlade
Copy link

orlade commented Jan 11, 2016

Allows different directory structures, simplifying the use of other tools (such as watching everything in a /src folder and building to a /dist folder).

@sewe
Copy link

sewe commented Aug 17, 2016

+1

I’m currently integrating Gitbook (using frontend-maven-plugin and exec-maven-plugin) into a Maven build and it would be great if I could follow Maven’s conventions (sources in src/main/gitbook, output in target/classes). A --ouput option would thus be most helpful.

FWIW, it looks like this option was part of an earlier version of Gitbook: GitbookIO/gitbook@a8e026a. I wonder why it was removed?

@johnthepink
Copy link

@orlade @sewe This is possible by providing a second argument to the build command:

$ gitbook build src dest

https://github.com/GitbookIO/gitbook/blob/master/lib/cli/getOutputFolder.js#L12

@sewe
Copy link

sewe commented Aug 22, 2016

@johnthepink Many thanks for the pointer. Totally missed the [output] in the synopsis shown by gitbook help build and then was led astray by Google’ing, which turned up only the now-gone --output option.

@tkurki
Copy link

tkurki commented Sep 11, 2016

Maybe close the issue, since it is already resolved?

@marcopeg
Copy link

Hi guys, take a look at my answer in the gitbook repo for a simple idea how to setup the gitbook with a package.json file and use the npm start/build approach to the gitbook.

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

5 participants