You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/09/27 16:42:47 UTC

[GitHub] [arrow] raulcd commented on a diff in pull request #14247: ARROW-17854: [CI][Developer] Host preview docs on S3

raulcd commented on code in PR #14247:
URL: https://github.com/apache/arrow/pull/14247#discussion_r981477858


##########
dev/tasks/docs/github.linux.yml:
##########
@@ -44,23 +44,18 @@ jobs:
           ref: {{ default_branch|default("master") }}
           path: crossbow
           fetch-depth: 1
-      - name: Move docs
+      - name: Prepare docs
         run: |
           # build files are created by the docker user
           sudo chown -R ${USER}: build
-          PR_DIR=crossbow/docs/pr_docs/{{ pr_number }}
-          mkdir -p $PR_DIR
-          rsync -a --delete build/docs/ $PR_DIR
-      - name: Push changes
+          # These are only used while generating the page
+          rm -rf build/docs/.doctrees
+      - name: Upload preview to S3
+        env: 
+          AWS_ACCESS_KEY_ID: {{ '${{ secrets.CROSSBOW_DOCS_AWS_ACCESS_KEY_ID }}' }}

Review Comment:
   I see, it is a way of escaping the `{{ }}` on Jinja. I suppose you could use the following tags? I haven't tested so I might be wrong but I understand why you are doing it now: https://jinja.palletsprojects.com/en/3.1.x/templates/#escaping
   ```
   {% raw %}
   {% endraw %}
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org