-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Changes to docs deployment conventions #26825
Comments
What about |
That would work for julia base, but how should we do this for packages? For example, if the latest release is
I like the idea of having only |
Having a |
Sounds good to me. We could just keep the other version on the branch though, just exclude them from the version selector, such that links will still work. |
OTOH it might be better for the links to point to the new version of the docs, assuming that point releases won't have major structural changes. |
Trying to synthesize: In order to have a complete record available, I would keep each version on The user facing URL would be What about once we get to major releases though? I am starting to feel that we should just have a single doc for each major one (e.g. It might be good to have A couple of datapoints:
Bikeshedding |
Here is my proposal: We remove the version selector and replace it with something like:
where What does this solve?
|
Me and @mortenpi have discussed this a bit more, and here is what I think we will do unless anyone disagrees:
The version selector will include the following, in order of appearance
|
Sounds perfect. |
This is done 🎉 . |
Currently Documenter deploys documentation into various subdirectories on
gh-pages
, each of which shows up in the version selector and corresponds do a different URL (https://docs.julialang.org/en/$dir). The naming logic is as follows:Commits on the
master
branch get deployed tolatest/
Version tags (i.e.
vX.Y.Z
) get deployed tostable/
,release-X.Y/
,vX.Y.Z/
Specifically: (1) every tag/patch version gets its own directory, (2) the latest release of every minor version is available in
release-X.Y
, (3) the latest tagged release is available understable/
.In #documentation on Slack there were two suggestions to change this a bit that gathered some support:
Removal of the
release-x.y
directories/URLs. (stop deploying to the release- folder JuliaDocs/Documenter.jl#706)You can already access the docs for each individual version, so having
release-x.y
directories/URLs seems redundant.For Base docs this would mean deleting
release-0.6/
and we wouldn't haverelease-0.7/
orrelease-1.0/
in the future.release-0.3/4/5
should be kept, as there are no per-tag docs for those, but should probably be renamed.Renaming
latest
to something else (Rename "latest" to "development" JuliaDocs/Documenter.jl#337). Quoting @fredrikekre here:I.e. the URL for
master
docs would change to e.g. https://docs.julialang.org/en/master/ as opposed to the current https://docs.julialang.org/en/latest/ It should be possible to set up redirects forlatest/
to keep existings links alive.The name could use a bit of bikeshedding I guess -- I can think of
devel/
ordev/
in addition to those already suggested.My view is that Documenter's defaults should generally follow Base, to encourage packages to follow the conventions here. So I'd say we should make the changes in Documenter only if we have an agreement here to change the conventions.
The text was updated successfully, but these errors were encountered: