You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "PsiACE (via GitHub)" <gi...@apache.org> on 2026/08/28 05:49:16 UTC
[PR] docs(bindings/python): migrate documentation to Sphinx [opendal]
PsiACE opened a new pull request, #8182:
URL: https://github.com/apache/opendal/pull/8182
# Which issue does this PR close?
N/A.
# Rationale for this change
Align the Python documentation toolchain and theme with `fsspec/opendalfs` while keeping publication integrated with the existing OpenDAL Docusaurus website instead of Read the Docs.
# What changes are included in this PR?
- Replace Zensical and MkDocs with Sphinx, MyST, and the PyData Sphinx Theme.
- Generate the API reference with autodoc and numpydoc, and keep notebook examples in the build.
- Build directory-style HTML so navigation and static assets work under `/docs/python/`.
- Update local commands and CI to build and publish the Python artifact through the existing website workflow.
# Are there any user-facing changes?
Yes. The Python documentation has a new theme and navigation, while its public path remains `https://opendal.apache.org/docs/python/`. There are no Python API behavior changes.
# AI Usage Statement
AI materially assisted with researching the existing OpenDAL and opendalfs documentation setups, implementing the migration, and running local validation. No known assumptions affect runtime behavior; reviewers should verify the generated documentation presentation and website integration.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(python): migrate API docs to Sphinx and PyData theme [opendal]
Posted by "Xuanwo (via GitHub) via commits" <co...@opendal.apache.org>.
Xuanwo commented on PR #8182:
URL: https://github.com/apache/opendal/pull/8182#issuecomment-7071778236
The side-by-side preview at `/docs/python/` compared the Sphinx/PyData build from `57bfa7d9` with Zensical on `main` and on the PR base. The strict Sphinx build reported zero Sphinx warnings. All 17 tested URLs returned HTTP 200, and all 676 distinct generated internal targets resolved. `S3Config` makes field types and requiredness clearer, for example `bucket: Required[str]`. The TOC link and search result both land on the definition, and the copied deep link reaches it in a fresh tab and after reload.
I found five regressions to address before switching the published docs.
1. The left **Section Navigation** rail is empty on the Operator and Config pages. Reloading `/docs/python/api/config/#opendal.config.S3Config` scrolls the content to the definition, but the right TOC stays near the top and leaves the matching entry offscreen.
2. The API reference loses `EntryMode.Dir`, `EntryMode.File`, and `EntryMode.Unknown`, the `Operator` and `AsyncOperator` constructor parameter descriptions, and the `Unpack[OpenKwargs]` type for `Operator.open`.
3. Six existing fragment links lose their targets even though their pages return HTTP 200. These are `#opendal.config`, `#opendal.Operator.__new__`, `#opendal.AsyncOperator.__new__`, and the three `#opendal.types.EntryMode.*` member anchors.
4. **Edit on GitHub** on the Basic, Pandas, and Polars examples points to generated `.md` files. The repository tracks the corresponding `.ipynb` sources.
5. A fresh browser profile logs `Got invalid theme mode: . Resetting to auto.` on the initial homepage load.
<details>
<summary>Preview build commands</summary>
From `bindings/python/` at `57bfa7d9`, run the following commands and serve `docs/_build/html` at `/docs/python/`.
```sh
export UV_PYTHON=3.11
uv sync --locked --managed-python --group docs
uv run maturin develop --no-default-features --features services-memory
uv run jupyter nbconvert --to markdown docs/examples/*.ipynb
uv run sphinx-build -W --keep-going -n -b dirhtml docs docs/_build/html
```
</details>
*This comment was generated with AI assistance.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(python): migrate API docs to Sphinx and PyData theme [opendal]
Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on PR #8182:
URL: https://github.com/apache/opendal/pull/8182#issuecomment-5449663999
Can you attach a screenshot about the difference?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] docs(python): migrate API docs to Sphinx and PyData theme [opendal]
Posted by "Xuanwo (via GitHub) via commits" <co...@opendal.apache.org>.
Xuanwo commented on PR #8182:
URL: https://github.com/apache/opendal/pull/8182#issuecomment-7061900521
Thanks for working on this, @PsiACE! Following up on the screenshot request, could you share a side-by-side preview or screenshots of the current Zensical docs and the Sphinx/PyData version? It would help to compare navigation and anchors for the generated `opendal.config` TypedDicts, the readability of the API reference, and how the built docs fit into the OpenDAL website at `/docs/python/`.
The new dependencies are scoped to the docs build. With a preview, we can evaluate the docs experience directly and move the review forward.
*Note: This comment was generated with AI assistance.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org