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

ReadTheDocs doesn't contain latest docs from GitHub repo #1455

Closed
yasoob opened this issue Nov 27, 2022 · 6 comments · Fixed by #1485
Closed

ReadTheDocs doesn't contain latest docs from GitHub repo #1455

yasoob opened this issue Nov 27, 2022 · 6 comments · Fixed by #1485
Labels
nf-documentation Non-functional change: Documentation

Comments

@yasoob
Copy link

yasoob commented Nov 27, 2022

I was reading the docs on RTD and observed that there was a mistake in the PageObject module documentation. It states the following about visitor_text:

It has three arguments: text,
current transformation matrix and text matrix.

image

I confirmed that I was on the latest docs page:

image

But when I came to GitHub to submit a PR, I saw that the docs were already fixed here:

image

It seems like the latest docs have not been deployed from GitHub to RTD.

@MartinThoma
Copy link
Member

Is that change already in a release?

I would need to check, but I guess read the docs does a pip install from pypi. Not sure if that is the most reasonable

https://pypdf2.readthedocs.io/en/latest/modules/PageObject.html

@MasterOdin
Copy link
Member

MasterOdin commented Nov 30, 2022

The latest tag should correspond (by default) with the latest commit on main branch, and can verified as such at https://readthedocs.org/projects/pypdf2/builds/.

Looking at the latest build, it does indeed use the latest git commit, but that the PageObject page has been broken for some amount of time (along with maybe some other pages?):

/home/docs/checkouts/readthedocs.org/user_builds/pypdf2/checkouts/latest/PyPDF2/_page.py:docstring of PyPDF2._page.PageObject.extract_text:22: ERROR: Unexpected indentation.
/home/docs/checkouts/readthedocs.org/user_builds/pypdf2/checkouts/latest/PyPDF2/_page.py:docstring of PyPDF2._page.PageObject.extract_text:25: ERROR: Unexpected indentation.
/home/docs/checkouts/readthedocs.org/user_builds/pypdf2/checkouts/latest/PyPDF2/_page.py:docstring of PyPDF2._page.PageObject.extract_text:28: ERROR: Unexpected indentation.
/home/docs/checkouts/readthedocs.org/user_builds/pypdf2/checkouts/latest/PyPDF2/_writer.py:docstring of PyPDF2.PdfWriter.open_destination:7: ERROR: Unexpected indentation.
/home/docs/checkouts/readthedocs.org/user_builds/pypdf2/checkouts/latest/PyPDF2/_page.py:docstring of PyPDF2._page.Transformation:21: CRITICAL: Unexpected section title.

and maybe this explains why it doesn't show any version after 2.3.0 in that little modal on the site. Not sure if there's an easy way to have RTD backfill versions if that was desired.

@MartinThoma
Copy link
Member

Readthedocs was building correctly. The issue was that we had two times almost exactly the same docstring. See #1485.

@MartinThoma MartinThoma added the nf-documentation Non-functional change: Documentation label Dec 10, 2022
@MasterOdin
Copy link
Member

@MartinThoma would you want a CI workflow that validates the sphinx build works, as hopefully a better signal to catch things breaking as doesn't seem like RTD offers a good way to monitor?

@MartinThoma
Copy link
Member

Nothing was broken. We were just looking at the wrong function.

@MartinThoma
Copy link
Member

Sphinx lets you know if the build fails ... but we could add a readthedocs-badge to the readme (replacing the current documentation badge)

https://docs.readthedocs.io/en/stable/badges.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nf-documentation Non-functional change: Documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants