我制作了一个完全依赖于 Google Earth Engine Python API的 python 包( https://github.com/gee-community/gee_tools )。虽然earthengine-api包是本地安装的,但要获得对对象的完整和真实访问,您需要以简单的方式进行身份验证:
import ee
ee.Initialize()
但为了让它发挥作用,你必须
通过运行 earthengine authenticate 授权访问您的 Earth Engine 帐户
该软件包对我和所有可以进行身份验证的用户都可以正常工作。因此,我使用 sphinx 构建了文档,它看起来非常好 ( http://geetools.readthedocs.io )。问题是在我的环境中构建完美,但在阅读文档时没有,因为它无法在他们的环境中进行身份验证,所以文档没有正确构建。
这是阅读文档的日志:
python /home/docs/checkouts/readthedocs.org/user_builds/geetools/envs/latest/bin/sphinx-build -T -E -b readthedocs -d _build/doctrees-readthedocs -D language=en 。_build/html
Running Sphinx v1.5.6
making output directory...
loading translations [en]... done
building [mo]: targets for 0 po files that are out of date
building [readthedocs]: targets for 7 source files that are out of date
updating environment: 7 added, 0 changed, 0 removed
reading sources... [ 14%] Documentation
reading sources... [ 28%] Introduction
reading sources... [ 42%] cloud_mask
try n° 0 ERROR: Please authorize access to your Earth Engine account by running
earthengine authenticate
in your command line, and then retry.
我不想将我的凭据放入代码中,所以,我的问题是:
有没有办法只“上传”我在本地构建的文档文件夹来阅读文档?或者我只需要使用另一个托管服务提供商?
我阅读了http://dont-be-afraid-to-commit.readthedocs.io/en/latest/documentation.html并发现
你不想提交你的渲染文件,只是源文件