有没有办法在 ReadTheDoc 中添加私钥?

Is there a way to add private keys in ReadTheDoc?

我想在 ReadTheDoc 上托管我的文档,因为......它很棒。

问题是我的存储库使用 Google Earth Engine 作为依赖项。此库需要手动认证或私钥认证。

ReadTheDoc可以使用私钥吗? (采用 Json 或字符串格式)

在您存储库的 RTD 管理面板中,转到“环境变量”。在那里你可以添加任意数量的 env 密钥。

note that once set, the key will not be publicly displayed to you or any other maintainer for security reasons obviously

疑难解答

如本 issue 所述,如果您的密钥超过 2048 个字符,RDT 将不会对其进行管理。在这种情况下,在存储库中的文件中加密密钥,并将解码密钥添加为 RDT 中的环境变量。