doctr icon indicating copy to clipboard operation
doctr copied to clipboard

Support any gh-pages branch

Open asmeurer opened this issue 3 years ago • 3 comments

GitHub now supports any gh-pages branch https://github.blog/changelog/2020-07-31-build-and-deploy-github-pages-from-any-branch-beta/

asmeurer avatar Jul 31 '20 20:07 asmeurer

Also it can be root or docs/ in any branch. Not sure if it used to be that way.

asmeurer avatar Jul 31 '20 20:07 asmeurer

Maybe this already works, at least for the branch name bit. We have the --deploy-branch-name flag and it doesn't seem to check anywhere that it is 'master' or 'gh-pages'. I thought it did, but all it does is use those as the defaults.

asmeurer avatar Aug 04 '20 18:08 asmeurer

So this probably just needs to be documented. And we should double check that it all works.

Also, does the API let you see what the gh-pages branch is? If so, we should use it in doctr configure?

At some point GitHub will probably change the default from master to main for .github.io repos.

asmeurer avatar Aug 04 '20 18:08 asmeurer