Syntaf / travis-sphinx

A standalone script for automated building and deploying of sphinx docs via travis-ci
GNU General Public License v3.0
113 stars 20 forks source link

Error: no such option: --source & [Errno 2] No such file or directory: 'target/doc/build' #30

Open tyralla opened 6 years ago

tyralla commented 6 years ago

At first, thank you very much for providing this handy tool!

Just recently (yesterday evening and this morning), I got the mentioned error messages. The related commands were:

if [ $TRAVIS_PYTHON_VERSION = "2.7" ] ; then travis-sphinx --source=hydpy/docs build; fi
if [ $TRAVIS_PYTHON_VERSION = "2.7" ] ; then python modify_html.py; fi

See the following link for more information: https://github.com/tyralla/hydpy/blob/develop/.travis.yml

Maybe this problem is related with issue #28?

Please let me know if further information is required.

Best regards, Christoph.

lmignon commented 6 years ago

@tyralla The source parameter is for the build command.... Therefore you must call travis-sphinx as

travis-sphinx build --source=hydpy/docs
Syntaf commented 6 years ago

Looks like i'm able to reproduce this error, investigating right now.

EDIT: Nevermind, seems my build ran fine and it was only a small error on my side.

Can you confirm that your build command is running and completing? One way you'd receive that error is if the build command failed

lmignon commented 6 years ago

@Syntaf The --source parameter must be put after the command... not before. The order matters

travis-sphinx build --source=hydpy/docs
Syntaf commented 6 years ago

@lmignon Whoops, you are correct.

I guess this brings up an unfortunate consequence of travis-sphinx 2.0.0 in that we're breaking legacy code. I'm going to create an issue to see if we can still support source coming before build, and simply passing it along into build if it's used beforehand

Syntaf commented 6 years ago

https://github.com/Syntaf/travis-sphinx/issues/31

tyralla commented 6 years ago

For some reasons the order --source=hydpy/docs build did work before.

However, now (with build --source=hydpy/docs) it works again. Thank you for the quick answer!

Besides: At least an additional problem lay in my script modify_html.py. It still assumed the html output path to be target/doc/build instead of doc/build.

Syntaf commented 6 years ago

@tyralla The recent major version change no longer allows --source to appear before build, but #31 will add that back for now.

Thanks for the issue report!

I will be leaving this open for a bit as the legacy source option is likely broken on some other repos right now :(