-
-
Notifications
You must be signed in to change notification settings - Fork 275
docs: setup ghpages CNAME #463
Comments
The docs need to stay at the current address ( We just need to set up the ghpages CNAME as mentioned in JuliaLang/julia#18588 (comment), but that can only be done by someone with access to wherever the domain was registered. |
I think what we need is similar to how the |
pkg.julialang.org is easy because it is a different github org. I don't know how to have one project page in the github org (website) serve from master, and another one in a github project (docs) serve from gh-pages. cc @Keno who can help set this up as well and may know this better in any case. |
Currently, trying to see the documention from |
It's non-trivial to even find which page describes what to do: https://help.github.com/articles/setting-up-a-www-subdomain/ tl;dr: add CNAME record for the docs.julialang.org subdomain pointing at julialang.github.io. |
That does not work as I described above. It sends the request to the julialang.github.com repo, not this one. For example, I set up a newdocs.julialang.org CNAME, but gives a 404. |
The JunoLab site is setup like this as far as I can tell and seems to be all hosted from a single org. @MikeInnes was there anything special that needed to be done to make that work?
Also needs an |
Thanks. This works: http://julialang.org/julia/en/latest/ |
But this doesn't http://docs.julialang.org/ (in case you're not aware). |
I am just mucking around with it as we speak. |
Reverted it. |
AFAICT, newdocs.julialang.org has the correct setup, but doesn't work. The CNAME points to julialang.github.io. |
Here are the settings I have for docs.junolab: As well as this file at the root of the repo. I don't think I did anything special above the instructions that github gives; bear in mind can take 24 hours for DNS changes to propagate. |
Fixed by c496ab65ea0dd112fe89a317fd5778867f106e98 |
This works now: http://docs.julialang.org/en/latest/ but docs.julialang.org doesn't yet. |
@MikeInnes says we could set up redirects: |
The option is to have an index page with an HTML redirect (e.g.), which may work better on second thoughts. |
That's what I've been doing with Documenter, https://github.com/JuliaDocs/Documenter.jl/blob/gh-pages/index.html, seems to work well. Thanks @ViralBShah, @MikeInnes for sorting this out! |
Can I just add index.html to the gh-pages branch on the toplevel with similar text? |
Yes, that should work. Probably best to redirect to the stable docs. |
Did that but doesn't seem to work. Is the .nojekyll file the issue? |
Hmm, could be. We probably don't really need |
It may take a sec for github to re-cache stuff |
aaaand it works :) |
Just deleted .nojekyll. |
How does one find other versions of the manual? Should the readthedocs be available on a different URL? And how do we link to the latest docs? |
We could try manually adding a version selector to the built docs for 0.3-0.5. |
Or perhaps the index.html can just let you pick any version of the manual? |
That could as well. Simpler too. |
And Thank you for all this amazing work! I just did the dns switch. :-) |
Looks like the css is no longer loading on the docs site. Could this be due to the |
The css seems to work for /en/latest, just not for /en/stable. Thoughts? |
Actually the version picker is ok (maybe no need to have index.html), but it doesn't seem to be present on other versions except for the latest. |
The resources for stable appear to be stored in a folder called |
Yeah, I think I know what's going. One moment... |
Well, you're meant to be able to force the inclusion of certain folders with an |
Now stable points to the old-style docs for me (latest is still the new). |
The old-style docs are the "new" old docs, i.e. non-readthedocs ones, so it does seem to be working as it should now. |
Ah, yes, that makes sense: the new doc-system was not back-ported to 0.5, thus they are still as they always were. However, then the problem remains that from the older docs there is no way to switch to other versions. Only the 0.6-docs have a drop-down menu. |
I think we should backport the drop-down menu to the old versions - assuming that is not difficult to do. |
Yes, I'll see whether I can patch the version selector into the old docs. |
The new manual-system got merged: JuliaLang/julia#18588 . Shouldn't julialang.org link to that now? The links are in this post.
The text was updated successfully, but these errors were encountered: