Skip to content
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

Add version selector to doc #38285

Merged
merged 29 commits into from
Jul 12, 2024
Merged

Conversation

kwankyu
Copy link
Collaborator

@kwankyu kwankyu commented Jun 26, 2024

as #38220 allows us to implement the version selector to sage doc.

Preview : https://doc-pr-53--sagemath-test.netlify.app/html/en/reference/

The script sage-update-version(used by the release manager) updates src/doc/website/versions.txt. The file will be accessible from https://doc-release--sagemath.netlify.app/html/en/versions.txt, after 10.4 release.

The Preview is using https://doc-release--sagemath-test.netlify.app/html/en/versions.txt for test purpose.

📝 Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

#38274

@kwankyu kwankyu force-pushed the p/add-version-selector branch 6 times, most recently from 6c6dd0c to dd02366 Compare June 27, 2024 08:25
@kwankyu kwankyu added this to the sage-10.5 milestone Jun 27, 2024
@kwankyu kwankyu marked this pull request as ready for review June 27, 2024 08:31
@kwankyu kwankyu changed the title Add doc version selector Add version selector to doc Jun 28, 2024
@mkoeppe
Copy link
Member

mkoeppe commented Jun 28, 2024

Nice! Would the selection box better be placed in the left sidebar?

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jun 28, 2024

I'd rather leave it separate from the main doc elements. I like this style: https://docs.djangoproject.com/en/5.0/

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jun 28, 2024

I think "versions" is a meta element. That it has a fixed place in the screen reflects its meta character.

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jun 28, 2024

I could publish doc-10-3 and doc-10.2 from the 10.3 and 10.2 sage installs on my system. They include also pdf docs.

But 10.1 and 10.0 on my system do not work. I tried to fix them but failed!

Where can I get docs (pdfs included) for 10.1 and 10.0?

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jun 28, 2024

artifacts in github are gone.

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jun 28, 2024

I am building them on ubuntu vm.

@mkoeppe
Copy link
Member

mkoeppe commented Jul 2, 2024

Looks good to me

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jul 2, 2024

I like it too!

@mkoeppe
Copy link
Member

mkoeppe commented Jul 2, 2024

Feel free to set to positive review when ready

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jul 2, 2024

Thanks. Many thanks for the style suggestion!

@mkoeppe
Copy link
Member

mkoeppe commented Jul 3, 2024

PR description still says "This PR is best to be merged after 10.4 release."

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jul 3, 2024

That was the plan, but now along with 38332, the versions selector and many fixes are better to be right in 10.4 release.

Thanks.

@kwankyu
Copy link
Collaborator Author

kwankyu commented Jul 3, 2024

I now learned the reality, how netlify works.

Screenshot 2024-07-03 at 9 40 38 PM

As the picture shows, old deployments, about 3 months old, are removed from netlify. We need extra resources to sustain versioned docs...

Copy link

github-actions bot commented Jul 5, 2024

Documentation preview for this PR (built with commit 663dc45; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jul 11, 2024
…lease

    
<!-- ^ Please provide a concise and informative title. -->
<!-- ^ Don't put issue numbers in the title, do this in the PR
description below. -->
<!-- ^ For example, instead of "Fixes sagemath#12345" use "Introduce new method
to calculate 1 + 2". -->
<!-- v Describe your changes below in detail. -->
<!-- v Why is this change required? What problem does it solve? -->
<!-- v If this PR resolves an open issue, please link to it here. For
example, "Fixes sagemath#12345". -->

Announcement banner should appear in sage doc both for beta release  and
PRs over beta or stable release.

Currently, as noticed while testing for
sagemath#38285, doc previews for github PRs
over a stable release won't have announcement banner at the top of the
doc. We fix it.

Test:
https://github.com/kwankyu/sage/actions/runs/9770500596/job/26971792855
https://doc-pr-53--sagemath-test.netlify.app/html/en/reference/

Changes is in https://github.com/sagemath/sage/pull/38332/commits/a9decf
4a57a11c723e38ce0dd8cdc28485fac98d, https://github.com/sagemath/sage/pul
l/38332/commits/a51b5715642b0e98fcbbd52fe8882ed75e2d059f

### 📝 Checklist

<!-- Put an `x` in all the boxes that apply. -->

- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [ ] I have created tests covering the changes.
- [ ] I have updated the documentation and checked the documentation
preview.

### ⌛ Dependencies

<!-- List all open PRs that this PR logically depends on. For example,
-->
<!-- - sagemath#12345: short description why this is a dependency -->
<!-- - sagemath#34567: ... -->

sagemath#38285
    
URL: sagemath#38332
Reported by: Kwankyu Lee
Reviewer(s):
@vbraun vbraun merged commit 5ad7ee0 into sagemath:develop Jul 12, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants