From a2a06a9791b0d00b2d7f18eab13e83b12b315c67 Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:40:35 +0000 Subject: [PATCH 1/4] fix: write earthengine token from pre_build directly --- .readthedocs.yaml | 4 +++- docs/conf.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index fc8ff53..1d2f1cc 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -8,7 +8,9 @@ build: python: "3.10" jobs: pre_build: - - sphinx-apidoc -o docs/api pygaul + - mkdir -p $HOME/.config + - mkdir -p $HOME/.config/earthengine + - echo $EARTHENGINE_TOKEN > $HOME/.config/earthengine/credentials sphinx: configuration: docs/conf.py diff --git a/docs/conf.py b/docs/conf.py index 94f592f..001fc5d 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -93,4 +93,4 @@ def gee_configure() -> None: ee.Initialize(http_transport=httplib2.Http()) -gee_configure() +#gee_configure() From 642be5c8118646a9c816a477c2f6bca4ce0202b7 Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:50:50 +0000 Subject: [PATCH 2/4] fix: test behaviour with fake creds --- .readthedocs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 1d2f1cc..daf4e24 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -11,6 +11,8 @@ build: - mkdir -p $HOME/.config - mkdir -p $HOME/.config/earthengine - echo $EARTHENGINE_TOKEN > $HOME/.config/earthengine/credentials + - echo $EARTHENgin_TOKEN + - cat $HOME/.config/earthengine/credentials sphinx: configuration: docs/conf.py From ea48c7a37a2550f2403bb70be2272b97d1fa4c3b Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:54:41 +0000 Subject: [PATCH 3/4] fix: test behaviour with fake creds --- .readthedocs.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index daf4e24..e453f98 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -11,7 +11,6 @@ build: - mkdir -p $HOME/.config - mkdir -p $HOME/.config/earthengine - echo $EARTHENGINE_TOKEN > $HOME/.config/earthengine/credentials - - echo $EARTHENgin_TOKEN - cat $HOME/.config/earthengine/credentials sphinx: From 1e9b4f27016a8972349986d5e3b93f759f582946 Mon Sep 17 00:00:00 2001 From: Rambaud Pierrick <12rambau@users.noreply.github.com> Date: Fri, 21 Jul 2023 12:57:16 +0000 Subject: [PATCH 4/4] fix: print directly the token --- .readthedocs.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index e453f98..de66671 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -12,6 +12,7 @@ build: - mkdir -p $HOME/.config/earthengine - echo $EARTHENGINE_TOKEN > $HOME/.config/earthengine/credentials - cat $HOME/.config/earthengine/credentials + - echo $EARTHENGINE_TOKEN sphinx: configuration: docs/conf.py