PDFCLOUD-5582 additional documentation#27
Merged
datalogics-cgreen merged 18 commits intopdfrest:mainfrom Feb 19, 2026
Merged
Conversation
5a69556 to
48d67c2
Compare
✅ Deploy Preview for pdfrest-python ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
e326fa1 to
04a24fc
Compare
- Introduced `PdfRestFilesClient` and `AsyncPdfRestFilesClient` protocol interfaces for managing file operations, including methods to handle file uploads, retrievals, deletions, and content operations. - Updated the `PdfRestClient` and `AsyncPdfRestClient` classes to expose the file clients via the `files` property. - Updated `__all__` definitions in `__init__.py` and `client.py` to include the newly added clients. - Refactored `_FilesClient` and `_AsyncFilesClient` to adhere to the new interface protocols, improving type safety and clarity. Assisted-by: Codex
…tFilesClient - Added Google-style docstrings to all methods in `PdfRestFilesClient` and `AsyncPdfRestFilesClient`, documenting parameters, return types, and exceptions for improved clarity and usability. - This change enhances developer experience by providing comprehensive method documentation directly in the codebase. Assisted-by: Codex
- Added `line_length`, `separate_signature`, `show_signature_annotations`, and `signature_crossrefs` options in `mkdocstrings` plugin configuration. - Improves API documentation readability and presentation by better handling function signatures and annotations. Assisted-by: Codex
- Provided detailed docstrings for all properties, methods, and fields within public models to enhance clarity and usability of the API. - Added type-level descriptions for key API response types and utilities. - Improved coverage of metadata details, structured data, and edge cases for PDF processing operations. Assisted-by: Codex
- Updated `.github/workflows/test-and-publish.yml` to add a step for uploading documentation preview artifacts when triggered by pull requests. - Artifacts are retained for 7 days to aid in documentation review and testing. Assisted-by: Codex
04a24fc to
825f704
Compare
- Added `client-configuration.md` detailing setup options for `PdfRestClient` and `AsyncPdfRestClient`, including parameters, timeout configurations, custom HTTPX client usage, and headers. - Updated `index.md` to include links to the new `getting-started.md` and `client-configuration.md` guides. - Modified `mkdocs.yml` to reflect the new navigation structure. Assisted-by: Codex
- Added `using-files.md` to provide a comprehensive guide on file operations in the SDK, covering uploads, downloads, metadata retrieval, and deletions. - Updated `index.md` to include a link to the new `using-files.md` guide. - Modified `mkdocs.yml` to reflect the updated navigation structure. Assisted-by: Codex
- Introduced `PdfSignaturePoint` to the public API for handling signature placement coordinates in PDF documents. - Enhanced docstrings for `PdfSignatureLocation`, `PdfSignatureDisplay`, `PdfNewSignatureConfiguration`, and related types with detailed attribute descriptions for improved clarity. - Updated `mkdocs.yml` to include the `autorefs` plugin for better cross-referencing in documentation. Assisted-by: Codex
- Enhanced docstrings for all methods in `PdfRestClient` with Google-style formatting, detailing parameters, return types, and exceptions for improved clarity and usability. - Included comprehensive descriptions for method functionality to assist developers in understanding each operation and its use cases. - Improved documentation of common arguments like `file`, `timeout`, and `extra_*` fields for consistency across methods. Assisted-by: Codex
- Changed `members_order` in `mkdocstrings` from `source` to `alphabetical` for better organization and readability of API documentation. Assisted-by: Codex
- Added `api-guide.md` to provide an organized overview of `PdfRestClient` and `AsyncPdfRestClient` methods, grouped by workflow and functionality. - Updated `index.md` to include a link to the new API guide. - Modified `mkdocs.yml` to reflect the updated navigation structure. Assisted-by: Codex
- Adjusted indentation and formatting of docstrings in all `PdfRestClient` methods to improve readability and alignment with Google-style documentation standards. - Ensured consistent structure for sections like `Args`, `Returns`, and `Raises` across all methods. Assisted-by: Codex
- Added a new section in `client-configuration.md` detailing per-call request override options for `PdfRestClient` and `AsyncPdfRestClient`. - Explained new arguments like `extra_query`, `extra_headers`, `extra_body`, and `timeout` with example usage. - Clarified behavior notes, including merging and overriding logic for query parameters, headers, and timeouts. Assisted-by: Codex
3fb55ad to
365934f
Compare
- Added a new `brand.css` for custom palette and branding styles. - Configured `mkdocs.yml` to use the custom primary and accent colors, logo (`pdfrest-logo-dark-bg.png`), and favicon (`favicon.ico`). - Registered `brand.css` as an additional stylesheet for use in the documentation site. Assisted-by: Codex
- Renamed the title in `index.md` to "pdfRest API Toolkit Python SDK." - Added a custom sidebar separator via `brand.css` for better navigation grouping. - Configured `mkdocs.yml` to use a new `custom_dir` for overrides and branding. - Introduced `overrides/main.html` to update the page `<title>` dynamically. Assisted-by: Codex
- Enabled Pydocstyle rules (D) in the `pyproject.toml` to enforce Google-style docstring conventions using Ruff. - Configured `tool.ruff.lint.pydocstyle.convention` to "google". - Applied Pydocstyle to specific file patterns like `scripts/**/*.py`, `examples/**/*.py`, and `noxfile.py`. Assisted-by: Codex
Ran `uv run ruff check --fix`
- Revised docstrings across `PdfRestClient`, `AsyncPdfRestFilesClient`, and exception classes to follow Google-style formatting. - Improved descriptions and added missing sections like `Args`, `Returns`, and `Raises` for better usability and readability. - Updated models and types with refined docstrings to clearly explain usage, structure, and expected behaviors. Assisted-by: Codex
datalogics-cgreen
approved these changes
Feb 19, 2026
Contributor
datalogics-cgreen
left a comment
There was a problem hiding this comment.
Doc site appears to function as expected in the deployment preview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PDFCLOUD-5582
Summary
This PR expands and restructures the SDK docs so users can find the right client method quickly, understand typed inputs/outputs, and follow recommended file workflows with less trial and error.
It also promotes file helpers as first-class public SDK interfaces, adds comprehensive docstrings across public API surfaces, and refreshes docs branding/layout for a clearer reading experience.
What’s New (Outcomes)
PdfRestFilesClientandAsyncPdfRestFilesClientare now surfaced as documented public interfaces.client.filesis documented as the supported entry point (instead of constructing internals directly).docs/api-guide.md(workflow-based API navigation with symbol links)docs/client-configuration.md(including per-call overrides)docs/using-files.md(upload/process/download/delete patterns)docs/api-reference.mdnow includes package, public types, and public models.autorefsplugin enabledPdfSignaturePoint) documented and exportedoverrides/main.html)docs/assets/stylesheets/brand.css)User Impact
client.files.Tooling / Lint Changes
pyproject.toml:D+D417lint.pydocstyle.convention = "google"tests/**,scripts/**,examples/**, andnoxfile.pyCI / Workflow Changes
.github/workflows/test-and-publish.ymldocs job:uv run mkdocs build --strictsite/asdocs-siteartifact (retention-days: 7)Notes