-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Versioned Sage documentation #24
Comments
I've moved this to the documentation repository, because it's not about the sage website. Besides that, I don't like just throwing in "/current/" in the URL, because that would break all existing links from anywhere else worldwide. |
I agree that "current" is redundant and should just be the existing https://doc.sagemath.org/ so that external links do not need updating. |
Ok. Older versions are in the commit history, it's not lost. It's just that I don't have time to move things around properly. I also don't know if we're already hitting an overall limit regarding size. So far, I haven't seen any warnings. So, maybe for the next sage release, I'll try to setup a sub-directory for the then previous version and we can see how this works. |
Sounds great. Perhaps a deployment script running on GH Actions could help reduce your workload? |
I've opened https://trac.sagemath.org/ticket/31415 for this |
According to the Github documentation, sites on Github Pages sites are limited to 1GB with a bandwidth limit of 100GB per month. The documentation files created by running make in the sage source directory use almost 1GB. And a Github Pages user is limited to one site. So it looks to me like there is no possibility of hosting documentation for multiple versions of SageMath on Github Pages. One alternative would be to store the files in Amazon S3 and use Amazon Cloudfront as the CDN. That is not free, although it is also not super expensive. S3 storage seems to cost about $0.023 per GB per month, and the Cloudfront service appears to cost about |
I implemented serving older pages with deployment via a CI/CD job in gitlab. This works, in theory, but in practice the job fails with "too large" errors. It's simply too much to copy over. So, there is an opportunity fix this issue, but not with the deployment setup we have right now (neither github nor gitlab pages). |
The deployment of documentation to netlify for ticket branches (https://trac.sagemath.org/ticket/31415) by @tobiasdiez works nicely. |
I think there are a few things that are added in this repo here which are missing in the documentation in the sagemath repo and thus for the version deployed to netlify (for example, the index page https://doc.sagemath.org/ if I remember correctly). |
For starters, would it be possible to set up a Permanent Redirect from https://doc.sagemath.org/VERSION/ to the corresponding netlify deployment? |
(This would make it easy to add a versions menu such as https://github.com/goerz/docs_versions_menu) |
|
@tobiasdiez Would it be possible to set up an additional NETLIFY_ALIAS when the commit is tagged? |
I'm not sure if |
We don't do GitHub Releases for beta versions. I think you can just dispatch on |
Does one really need to (easily) go back to versions of the docs for different beta/rc versions? I think having older versions for each release + current develop branch should be sufficient. Otherwise the user interface for choosing the different versions gets quite complex. |
Sure, in the user interface even displaying all older versions would be too much. |
I've opened https://trac.sagemath.org/ticket/33862: doc-build.yml: Set NETLIFY_ALIAS to the tag name |
kindly assign me this issue |
what's your plan how to deal with this? Are you aware of this script, which outlines how to access older versions? https://github.com/sagemath/documentation/blob/gh-pages/old_versions.py |
no i am a newbie you can guide me
…On Fri, 29 Nov 2024 at 19:55, Harald Schilly ***@***.***> wrote:
kindly assign me this issue
what's your plan how to deal with this?
Are you aware of this script, which outlines how to access older versions?
https://github.com/sagemath/documentation/blob/gh-pages/old_versions.py
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BJCIHMNOZ4QMSTL7IMLRVV32DB2NVAVCNFSM6AAAAABSW5FE7SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBXHEZDCMBRG4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
(from https://groups.google.com/g/sage-devel/c/oWkFwhinoMc/m/EOL1TZphBgAJ)
keep online documentation of each release, that is having:
release
Currently some links on the web (e.g. on ask.sagemath.org) are outdated
as the discussion does not correspond to the current state of the doc.
The text was updated successfully, but these errors were encountered: