This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new f675c4d34c Fix fetching inventory from s3 for airflow packages (#32562)
f675c4d34c is described below

commit f675c4d34c64235358605bc92d61eaf0204c4fee
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Jul 12 18:28:48 2023 +0200

    Fix fetching inventory from s3 for airflow packages (#32562)
    
    The #32495 changed the way to run docs - with using --for-production
    flag, which means that the docs are generated under "stable" link
    rather than "latest" - in order to test document publishing.
    
    We could change it back to latest, but the problem revealed that
    we do not have to actually make a distinction there. It's ok
    to keep it all as "stable" - no problem with that - there is no
    distinction between latest and stable other than different link
    and we never mix the two (our production docs have only stable),
    so it's ok to switch everything to stable.
    
    As a follow-up `--for-production` flag will be removed and we will
    switch everything to stable for all documentation building. For
    now fetching docs from stable link should fix the problem.
---
 docs/exts/docs_build/fetch_inventories.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/exts/docs_build/fetch_inventories.py 
b/docs/exts/docs_build/fetch_inventories.py
index c2f9025646..6db368f0d0 100644
--- a/docs/exts/docs_build/fetch_inventories.py
+++ b/docs/exts/docs_build/fetch_inventories.py
@@ -43,7 +43,7 @@ CACHE_DIR = os.path.join(DOCS_DIR, "_inventory_cache")
 EXPIRATION_DATE_PATH = os.path.join(DOCS_DIR, "_inventory_cache", 
"expiration-date")
 
 S3_DOC_URL = "http://apache-airflow-docs.s3-website.eu-central-1.amazonaws.com";
-S3_DOC_URL_VERSIONED = S3_DOC_URL + "/docs/{package_name}/latest/objects.inv"
+S3_DOC_URL_VERSIONED = S3_DOC_URL + "/docs/{package_name}/stable/objects.inv"
 S3_DOC_URL_NON_VERSIONED = S3_DOC_URL + "/docs/{package_name}/objects.inv"
 
 

Reply via email to