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

Comments

Projects
None yet
5 participants
@orlade

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

This comment has been minimized.

Show comment
Hide comment
@sewe

sewe 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?

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

This comment has been minimized.

Show comment
Hide comment
@johnthepink

johnthepink Aug 19, 2016

@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

johnthepink commented Aug 19, 2016

@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

This comment has been minimized.

Show comment
Hide comment
@sewe

sewe 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.

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

This comment has been minimized.

Show comment
Hide comment
@tkurki

tkurki Sep 11, 2016

Maybe close the issue, since it is already resolved?

tkurki commented Sep 11, 2016

Maybe close the issue, since it is already resolved?

@marcopeg

This comment has been minimized.

Show comment
Hide comment
@marcopeg

marcopeg Jul 10, 2018

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.

marcopeg commented Jul 10, 2018

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