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

DOC: Update references and formatting #2529

Merged
merged 3 commits into from Mar 19, 2024
Merged

Conversation

j-t-1
Copy link
Contributor

@j-t-1 j-t-1 commented Mar 19, 2024

Also OSX --> macOS

@j-t-1
Copy link
Contributor Author

j-t-1 commented Mar 19, 2024

Have I formatted correctly lines 978-979 and 982-983 of generic/_data_structures.py (i.e. is adding a tab correct)?

The xmp_metadata Returns documentation ({@link #xmp.XmpInformation XmlInformation}) needs changing, how to fix this?

@stefan6419846
Copy link
Collaborator

Have I formatted correctly lines 978-979 and 982-983 of generic/_data_structures.py (i.e. is adding a tab correct)?

This depends on how you have configured your tabs - it should map to four whitespace characters.

Apart from this, I recommend you to check the rendered docs locally to verify that everything looks correct. You can do so by installing the package with the docs extras (pip install .[docs]) and then run

sphinx-build -n -W --keep-going -T -b html docs build/sphinx/html
You should get a HTML build of the docs you can start browsing by opening the root-level index.html file.

The xmp_metadata Returns documentation ({https://github.com/link #xmp.XmpInformation XmlInformation}) needs changing, how to fix this?

Please we more specific about what you are trying to achieve. In general, the return type is derived from the typing information.

Copy link

codecov bot commented Mar 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.52%. Comparing base (bbbc9dd) to head (2e5a426).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2529   +/-   ##
=======================================
  Coverage   94.52%   94.52%           
=======================================
  Files          49       49           
  Lines        8178     8178           
  Branches     1659     1659           
=======================================
  Hits         7730     7730           
  Misses        277      277           
  Partials      171      171           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@j-t-1
Copy link
Contributor Author

j-t-1 commented Mar 19, 2024

Apart from this, I recommend you to check the rendered docs locally to verify that everything looks correct. You can do so by installing the package with the docs extras (pip install .[docs]) and then run

I searched for docs extras, what is the package name to pip install (it is not .doc?)?

The xmp_metadata Returns documentation ({https://github.com/link #xmp.XmpInformation XmlInformation}) needs changing, how to fix this?

Please we more specific about what you are trying to achieve. In general, the return type is derived from the typing information.

The display of the return value in generic.html is wrong, but do not yet know how to correct this reStructuredText.

@stefan6419846
Copy link
Collaborator

I searched for docs extras, what is the package name to pip install (it is not .doc?)?

As mentioned before, just run pip install .[docs] from your Git checkout of the repository. This should install the necessary dependencies.

The display of the return value in generic.html is wrong, but do not yet know how to correct this reStructuredText.

Are you looking for something like this?

:class:`~pypdf.xmp.XmpInformation`

@j-t-1
Copy link
Contributor Author

j-t-1 commented Mar 19, 2024

The display of the return value in generic.html is wrong, but do not yet know how to correct this reStructuredText.

Are you looking for something like this?

:class:`~pypdf.xmp.XmpInformation`

Yes, I have now included this in this commit.

@stefan6419846 stefan6419846 added the nf-documentation Non-functional change: Documentation label Mar 19, 2024
@stefan6419846 stefan6419846 merged commit 033e763 into py-pdf:main Mar 19, 2024
15 checks passed
@j-t-1 j-t-1 deleted the documentation branch March 23, 2024 14:38
stefan6419846 added a commit that referenced this pull request Apr 7, 2024
REL: 4.2.0

## What's new

### New Features (ENH)
- Allow multiple charsets for NameObject.read_from_stream (#2585) by @pubpub-zz
- Add support for /Kids in page labels (#2562) by @stefan6419846
- Allow to update fields on many pages (#2571) by @pubpub-zz
- Tolerate PDF with invalid xref pointed objects (#2335) by @pubpub-zz
- Add Enforce from PDF2.0 in viewer_preferences (#2511) by @pubpub-zz
- Add += and -= operators to ArrayObject (#2510) by @pubpub-zz

### Bug Fixes (BUG)
- Fix merge_page sometimes generating unknown operator 'QQ' (#2588) by @rfotino
- Fix fields update where annotations are kids of field (#2570) by @pubpub-zz
- Process CMYK images without a filter correctly (#2557) by @pubpub-zz
- Extract text in layout mode without finding resources (#2555) by @pubpub-zz
- Prevent recursive loop in some PDF files (#2505) by @pubpub-zz

### Robustness (ROB)
- Tolerate "truncated" xref (#2580) by @pubpub-zz
- Replace error by warning for EOD in RunLengthDecode/ASCIIHexDecode (#2334) by @pubpub-zz
- Rebuild xref table if one entry is invalid (#2528) by @pubpub-zz
- Robustify stream extraction (#2526) by @pubpub-zz

### Documentation (DOC)
- Update release process for latest changes (#2564) by @stefan6419846
- Encryption/decryption: Clone document instead of copying all pages (#2546) by @redfast00
- Minor improvements (#2542) by @j-t-1
- Update annotation list (#2534) by @j-t-1
- Update references and formatting (#2529) by @j-t-1
- Correct threads reference, plus minor changes (#2521) by @j-t-1
- Minor readability increases (#2515) by @j-t-1
- Simplify PaperSize examples (#2504) by @j-t-1
- Minor improvements (#2501) by @j-t-1

### Developer Experience (DEV)
- Remove unused dependencies (#2572) by @stefan6419846
- Remove page labels PR link from message (#2561) by @stefan6419846
- Fix changelog generator regarding whitespace and handling of "Other" group (#2492) by @stefan6419846
- Add REL to known PR prefixes (#2554) by @stefan6419846
- Release using the REL commit instead of git tag (#2500) by @MartinThoma
- Unify code between PdfReader and PdfWriter (#2497) by @pubpub-zz
- Bump softprops/action-gh-release from 1 to 2 (#2514) by @dependabot[bot]

### Maintenance (MAINT)
- Ressources → Resources (and internal name childs) (#2550) by @pubpub-zz
- Fix typos found by codespell (#2549) by @stefan6419846
- Update Read the Docs configuration (#2538) by @j-t-1
- Add root_object, _info and _ID to PdfReader (#2495) by @pubpub-zz

### Testing (TST)
- Allow loading truncated images if required (#2586) by @stefan6419846
- Fix download issues from #2562 (#2578) by @pubpub-zz
- Improve test_get_contents_from_nullobject to show real use-case (#2524) by @stefan6419846
- Add missing test annotations (#2507) by @stefan6419846

[Full Changelog](4.1.0...4.2.0)
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 this pull request may close these issues.

None yet

2 participants