Closed tomschr closed 8 years ago
It should limit the build for the master and develop branches only
Isn't it either-or? Wouldn't the documentation for develop overwrite the documentation for master if both branches are specified?
Isn't it either-or? Wouldn't the documentation for develop overwrite the documentation for master if both branches are specified?
Good catch. Probably yes. The question is, if we want it.
My assumption was that both are (should be?) useful. When you create a release on master, it should overwrite anything that was deployed on develop before. On the other side, if you change anything in develop, it will be also published (assuming the there are doc changes).
If we allow publishing only on master, documentation is not always up-to-date. Depends probably on how often we create a release.
I'm open for suggestions. :)
I wonder if is possible with travis-sphinx to upload the documentation into a subdirectory on gh-pages. I doubt that though, as that sounds like it breaks down with concurrent builds.
I wonder if is possible with travis-sphinx to upload the documentation into a subdirectory on gh-pages.
As far as I know, I don't think this is possible.
IMO it makes sense to only deploy documentation of the master branch. Those using the develop branch either don't need the documentation or are able to build it manually.
I'll implement this after there is a generatable documentation in the master branch.
Sounds good to me. :+1:
Fixed, now with a clean usable design: https://opensuse.github.io/dbxincluder
It would be nice to have an up-to-date documentation published on GitHub Pages after a successful Travis build.
Requirements:
gh-pages
branchtravis-sphinx
intext_requirement.txt
or intox.ini
tox.ini
with adoc_travis_deploy
, see https://github.com/SUSE/kiwi/blob/master/tox.ini#L84 for an example..travis.yml
It should limit the build for the
master
anddevelop
branches only (use the--branches
option). You also need to create a token on GitHub which is then pasted in the Travis settings dialog. Find more information on its homepage https://github.com/Syntaf/travis-sphinx