ftnext / sphinx-new-tab-link

Open external links in new tabs of the browser in Sphinx HTML documents
https://ftnext.github.io/sphinx-new-tab-link/guide.html
MIT License
9 stars 2 forks source link

Declare parallel_read_safe #13

Closed ftnext closed 3 months ago

ftnext commented 3 months ago

sphinx-build -W

Warning, treated as error: 拡張 sphinx_new_tab_link は並列読み込みが可能かどうかを宣言していないため、おそらく並列読み込みに対応していないでしょう。拡張の実装者に連絡して、明示してもらってください。

parallel_read_safe https://www.sphinx-doc.org/ja/master/extdev/index.html#extension-metadata

ftnext commented 3 months ago

Currently sphinx-new-tab-link's implementation is based on pydata-sphinx-theme. pydata-sphinx-theme declares parallel_read_safe is True, https://github.com/pydata/pydata-sphinx-theme/blob/v0.15.2/src/pydata_sphinx_theme/__init__.py#L290 so sphinx-new-tab-link could declare True, too.