首页 > 解决方案 > 将测试映像版本与 ReadTheDocs 构建系统一起使用

问题描述

我正在使用 sphinx autodoc 和 ReadTheDocs 构建系统为我的应用程序构建引用,并且一些库(实际上是 PySide6)需要 libc6 >= 2.28,但 ReadTheDocs 构建系统使用的默认映像在 libc6 2.27 随附的 Ubuntu 18.04 下运行。

我看到有一个testing可以在 Ubuntu 20.04 上运行的图像(请参阅https://github.com/readthedocs/readthedocs-docker-images)但是当我将参数更改imagetestingin 时.readthedocs.yaml(如https://docs. readthedocs.io/en/stable/config-file/v2.html#build)容器始终在 Ubuntu 18.04 上运行(当容器更新 apt 列表时,它会命中仿生存储库)。

有没有办法在使用 ReadTheDocs 构建系统构建文档时使用 Ubuntu 20.04 映像?

标签: pythonpython-sphinxread-the-docsautodoc

解决方案


推荐阅读