Skip to content

[DEPR]: edx-sphinx-theme #200

Closed
Closed

Description

@feanil

Proposal Date

29 November 2022

Target Ticket Acceptance Date

13 December 2022

Earliest Open edX Named Release Without This Functionality

Palm - 2023-04

Rationale

  • There is no maintainer for this theme.
  • We've decided to start using an off-the-shelf them for Open edX docs(sphinx-book-theme)
  • Maintaining our own theme adds more maintenance burden.

Removal

This repository https://github.com/openedx/edx-sphinx-theme/ will be archived after doing one more PyPI release which will indicate that the project is deprecated and no longer maintained.

Replacement

Anyone building docs should use the sphinx-book-theme instead.

Deprecation

Migration

People can switch to the sphinx-book-theme by adding the sphinx-book-theme to their requirements and updating their sphinx conf.py to use the sphinx-book-theme.

Additional Info

Discourse Post: https://discuss.openedx.org/t/deprecation-removal-edx-sphinx-theme/8817

Activity

  1. added
    depr
    on Nov 29, 2022
  2. robrap commented on Nov 30, 2022

    @robrap

    Thanks @feanil. I think this is great. I wonder if we could crowdsource a doc for migrating (unless you already have that). For example, are there settings that no longer apply, or should be renamed, or new ones that are useful to know about, etc.

  3. feanil commented on Nov 30, 2022

    @feanil
    ContributorAuthor

    That's a great idea Robert, I think we can collect any items we want to cover on this ticket and then turn it into a "How to Migrate from edx-sphinx-theme to sphinx-book-theme" doc, what do you think?

  4. robrap commented on Nov 30, 2022

    @robrap

    Also, for additional "Rationale", the old theme had a bunch of styling bugs, including being broken on mobile. See "Fix Sphinx theme" in https://openedx.atlassian.net/wiki/spaces/AC/pages/2624553266/Developer+Docs+Framework+Notes, if you need more details.

  5. self-assigned this
    on Dec 1, 2022
  6. jmbowman commented on Dec 6, 2022

    @jmbowman

    I agree this is a good idea, just want to make sure we've covered two of the reasons for edx-sphinx-theme's existence that weren't mentioned in the description:

    • Way back in the early days, one of the original reasons for forking the theme was that we urgently needed to make some a11y fixes. Are we reasonably sure that the new theme is sufficiently accessible?
    • Later we added a link for providing doc feedback via a Google Form that could be used even by people unfamiliar with rST and GitHub. Does the new theme support anything comparable, and/or do we want to retain that functionality?
  7. robrap commented on Dec 6, 2022

    @robrap

    @jmbowman: It’s good to have that background:

    1. I say we review the replacement for a11y and help fix it if that is needed.
    2. For most of the time the Google Doc existed, it was a black hole that collected comments that no one ever looked at. Instead, we could have a how-to on all the ways someone could provide feedback.
  8. robrap commented on Dec 6, 2022

    @robrap

    I’d clarify that maintenance of a custom theme either adds maintenance cost, or leads to a badly broken theme if it is neglected, which was our case.

  9. feanil commented on Dec 8, 2022

    @feanil
    ContributorAuthor

    @jmbowman good context on the a11y work, I didn't know about that. I've added openedx/docs.openedx.org#224 to review the a11y of the new theme and we can update/make improvements based on that but a quick tab-through and keyboard navigation test seems to show no major issues for now. If we do find some in a more thorough test I think it makes sense to fix forward upstream.

  10. feanil commented on Dec 8, 2022

    @feanil
    ContributorAuthor

    As for the feedback form, there is a new feedback form, there is a new feedback form that Jenna and I are monitoring and it's on all the new pages:
    image

  11. feanil commented on Dec 20, 2022

    @feanil
    ContributorAuthor

    Given that there were no concerns on the discourse post and all concerns on this issue have been addressed. This deprecation is now accepted.

  12. feanil commented on Dec 20, 2022

    @feanil
    ContributorAuthor

    I've added a bunch of sub-tasks that need to be completed before this theme can be considered deprecated.

  13. MaxFrank13 commented on Jan 5, 2023

    @MaxFrank13
    Member

    I've noticed that the update to sphinx 6.0.0 has a breaking change involving the use of jquery see the changelogs.
    We use jquery in the edx-sphinx-theme repo here.

    I believe the version will need to be pinned at 5.3.0 until the deprecation is complete.

  14. robrap commented on Jan 5, 2023

    @robrap

    Something is odd about the current state of the requirements. Sphinx is supposedly constrained to 1.8.5 here in edx-sphinx-theme. Typically we include constraints for base.in requirements in the package, but that doesn't seem to be happening here, since edx-platform is at 5.3.0 for sphinx.

    I wonder if our code to publish constraints is missing this due to a difference in capitalization in base.in (Sphinx vs sphinx), or some other reason?

  15. jmbowman commented on Jan 5, 2023

    @jmbowman

    No new edx-sphinx-theme versions have been published since July 1, 2021. That predates our fix to include constraints.txt information in the package metadata, which was made on November 9, 2021.

  16. 150 remaining items

  17. xitij2000 commented on Jun 1, 2023

    @xitij2000

    @xitij2000 I think we have 3 repos left, you've got PRs in progress for credentials and blockstore it looks like, I just want to make sure you have edx-platform on your radar as well? Also, FYI, I'll be on vacation next week so I'll not be responding to reviews then. I'll be back on June 12th.

    Yes, it is on my radar, just pushed that PR as well.

  18. robrap commented on Jun 1, 2023

    @robrap

    I noticed the old theme when going to https://edx.readthedocs.io/projects/edx-toggles/en/latest/how_to/documenting_new_feature_toggles.html. I guess we don't have a step to ensure that changes have actually made it out to readthedocs, or was this repo missed?

  19. feanil commented on Jun 2, 2023

    @feanil
    ContributorAuthor

    The repo was not missed it looks like: openedx/edx-toggles#261

    So likely an issue with the publishing of that specific repo, looks like it's failing to build due to requirements issues with the RTD setup: https://readthedocs.org/projects/edx-toggles/builds/20898194/

  20. robrap commented on Jun 6, 2023

    @robrap

    Thanks @feanil. I put up openedx/edx-toggles#278 to fix the build.

  21. feanil commented on Jun 20, 2023

    @feanil
    ContributorAuthor

    The edx-sphinx theme has been removed from all openedx repositories. The last change left is to update common-constraints(openedx/edx-lint#349) and then we can close this ticket and archive this repository.

  22. moved this from Proposed to Removed in DEPR: Deprecation & Removalon Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

depr

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions