-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add option to transfer post-processing scripts #353
Comments
The --exclude thing is probably a bug. --transfer as you describe it is already what the deploy directory is. I think we just need to add support for multiple deploy directories/files, and fix --exclude so that it works (and also document this whole thing in the recipes docs). |
Do you mean multiple
Actually, that seems weird, since currently (if I undestand correctly) To be honest, I don't have a clear mental picture of how
That wouldn't delete files that are missing in the Here's the simpler model that I initially thought was what
I have no idea what the For now, I've managed to get by post-processing to work by using
|
Reading the source code was illuminating regarding the deployment procedure. The missing piece was the |
I have a folder that contains a python script that I want to use for post-processing (
doctr deploy --command ...
), along with python modules that the script depends on. Sincedoctr
runs the--command
from within the deploy branch (gh-pages
), that folder has to be available in doctr's checkout ofgh-pages
. However, I'd very much like to keep the folder on mymaster
branch, notgh-pages
, for a number of reasons:doctr
on a new repo that doesn't have agh-pages
branch yet: I'd have to creategh-pages
manually and place the post-processing script in it.travis.yml
and the post-processing script are very much interdependent, so for any changes to the doc-building process I'd have to work simultaneously in two different branches of the projectgh-pages
branch.gh-pages
as a "deployment branch" that I don't want to have to touch by hand.I would propose to add e.g. a
--transfer
flag to thedoctr
command that would transfer files/folders from the build-branch (master
/version-tag) to the deploy branch (gh-pages
). The transferred files/folders should not be commited togh-pages
.For the time being, I'm trying to work around this by copying the folder containing the post-processing script (
.travis
) to the deploy directory (cp -r .travis docs/build/html/_doctr
) in my.travis.yml
before the call todoctr deploy
. However, I'm having a very hard time preventing the_doctr
directory from being pushed togh-pages
. Isn't that what--exclude _doctr
should do?The text was updated successfully, but these errors were encountered: