Adopt sphinx-scrapy, with docs dependencies in a dependency group

オープン
#1,613 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@yamilmaud がすでに取り組んでいます。

2026年11月27日 から。

  • #1614 @yamilmaud による — オープン

評価

難易度
3/5
見積もり時間
半日
初心者へのやさしさ
25/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python
領域
documentation

調査の方向性

The docs build is configured in docs/conf.py, tox.ini under [testenv:docs], and .readthedocs.yml; the dependencies live in docs/requirements.txt. A pull request #1614 is already open against this issue, so the work is claimed. Check that PR's state before starting; if you pick it up, done means the docs build passes with -W and installs from a pyproject.toml docs dependency group.

索引モデルが issue の本文から書いたものです。

説明

Summary

Adopt sphinx-scrapy 0.15.0 for the documentation build, and move the Sphinx docs dependencies out of docs/requirements.txt into a docs dependency group in pyproject.toml.

This project currently fails two checks in the zyte-oss-maintenance report:

  • sphinx-scrapy: sphinx_scrapy not in docs/conf.py.
  • no-docs-requirements: found docs/requirements.txt.

Current state

  • docs/conf.py uses sphinx_rtd_theme as both an extension and the HTML theme.
  • docs/requirements.txt pins sphinx==7.2.6 and sphinx-rtd-theme==1.3.0, installed via -rdocs/requirements.txt in tox.ini's [testenv:docs] and via requirements: docs/requirements.txt in .readthedocs.yml.

Proposed changes

  • Switch docs/conf.py from sphinx_rtd_theme to sphinx-scrapy 0.15.0, and add its pre-commit hook (pinned to the same version as the tox requires, per the sphinx-scrapy-pins check).
  • Move the docs dependencies into a docs dependency group in pyproject.toml (PEP 735 [dependency-groups]), instead of docs/requirements.in/docs/requirements.txt — the no-docs-requirements check requires the dependency-group form, not a requirements file (even a compiled one).
  • Update the docs env in tox.ini and the Python install section of .readthedocs.yml to install from that dependency group instead of docs/requirements.txt.
  • Keep tox -e docs building with -W (fail-on-warning).

Reference

主要言語
Python
スター
2.9k
フォーク
545
平均マージ
2日 4時間
マージ済み PR(30日)
17

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scrapinghub/dateparser のほかの issue

scrapinghub/dateparser の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。