Docs auto-push to gh-pages branch #1689
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This modifies the existing travis script and changes the flow some so that docs will generate & auto push to the
gh-pages
branch when builds succeed onmaster
.Was going to use
travis-scripts/update-branch
since it would do this a bit more cleanly but it has no option to preserve files on the target branch which we need for archived versions. Sogh-pages
and some flopping around it is.TODO once merged
gh-pages
branch looks correctgh-pages
branchgh-pages
branch (Only @lhorie can change repo settings)mithril.js.org
to point to Github pages (I don't know how to do that)Caveat I would love to have docs changes to
next
auto-generate docs for another site, something like mithril-next.js.org, but that doesn't seem easy currently. Closest I can get so far is to spend some time figuring out how to get it to build changes onnext
into some sort of./next
folder in thegh-pages
branch.@lhorie verbally (textually?) approved this work in gitter