-
Notifications
You must be signed in to change notification settings - Fork 479
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
Small changes for GitLab #971
Conversation
src/Documenter.jl
Outdated
@@ -599,15 +599,15 @@ and when building docs for a tag they are deployed to a `vX.Y.Z` directory. | |||
function git_push( | |||
root, temp, repo; | |||
branch="gh-pages", dirname="", target="site", tag="", key="", sha="", devurl="dev", | |||
versions, forcepush=false, | |||
versions, forcepush=false, host="github.com", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you planning to call git_push
directly or where is this kwarg set? Couldn't we find the host from the repo
argument to deploydocs
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes currently I call git_push
directly as in the first comment. We could definitely pull the host from the repo
argument as something like split(repo, "/")[1]
if you think that would be better - it's probably more robust.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, parsing repo
seems better here.
I think currently we allow both github.com:
and github.com/
as the start of the repo
. So we could formalize that a bit and say repo has to start with the domain name, then you have /
or :
as a separator, and then the rest of the URL follows. So we should also split by :
, or probably use a regex to match the start.
a79af54
to
5c55402
Compare
Other than the |
Thanks both for the comments! I've changed to extract the host using regex and added the note to the changelog |
Thanks! |
I have been experimenting with getting docs to build on GitLab and found a few things to fix up.
For reference and to help anyone else, I've been using the following hacked together script that calls
git_push
to skip all of the travis-specific processing indeploydocs
:There are three commits each with a minor change:
host
option togit_push
so that the url rewriting and temp ssh config file work for gitlab.com urls as wellHappy to rework anything as required