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

Update docs engine deps #854

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

matejmatuska
Copy link
Member

@matejmatuska matejmatuska commented Mar 14, 2024

The the previously used version of the docs engine (sphinx) was very old and long unmaintained.

Going with version 7.2.6, which requires Python 3.10, because it's relatively recent (released Sep 13, 2023), also works on Python 3.12 and all the features we need are there.
The 3.12 requires manually update of the six package until the version is bumped in requirements.txt.

NOTE: There is still a bunch of warnings, however those don't seem to affect the docs in any way and the documentation is going to be refactored in the near future.

Copy link

Thank you for contributing to the Leapp project!

Please note that every PR needs to comply with the Leapp Guidelines and must pass all tests in order to be mergeable.
If you want to request a review or rebuild a package in copr, you can use following commands as a comment:

  • review please @oamg/developers to notify leapp developers of the review request
  • /packit copr-build to submit a public copr build using packit

To launch regression testing public members of oamg organization can leave the following comment:

  • /rerun to schedule basic regression tests using this pr build and leapp-repository*master* as artifacts
  • /rerun 42 to schedule basic regression tests using this pr build and leapp-repository*PR42* as artifacts
  • /rerun-sst to schedule sst tests using this pr build and leapp-repository*master* as artifacts
  • /rerun-sst 42 to schedule sst tests using this pr build and leapp-repository*PR42* as artifacts

Please open ticket in case you experience technical problem with the CI. (RH internal only)

Note: In case there are problems with tests not being triggered automatically on new PR/commit or pending for a long time, please consider rerunning the CI by commenting leapp-ci build (might require several comments). If the problem persists, contact leapp-infra.

@matejmatuska matejmatuska force-pushed the update-docs-deps branch 3 times, most recently from 9ae1adc to e65076a Compare July 17, 2024 15:26
@matejmatuska matejmatuska marked this pull request as ready for review July 17, 2024 15:27
@matejmatuska
Copy link
Member Author

/rerun

The biggest changes is the replacement of recommonmark with MyST for markdown
parsing. The recommonmark library is no longer maintained and is also deprecated
in sphinx. The recommended replacement is MyST library. In our case it seems
like a drop-in replacement with only errors being "non-consecutive header level
increment", which shouldn't be a problem and the docs build successfully.
No major changes, just some deprecated APIs are replaced.
Instead of linking to autodoc generated HTML files (in the pydoc dir), use cross
references. Also fix some of the ambiguous references and repair some of
the broken ones.
No breaking changes.

This version requires Python 3.10 for deps to correctly install,
otherwise the version of sphinx-autobuild and sphinxcontrib-* packages
would have to pinned.
No breaking changes.

Works properly on Python >= 3.10. On Python 3.12 requires manual upgrade
of the six package until the version is bumped in requirements.txt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant