From c2c5f46282b8544c10b31042ace5368d204c3186 Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Jun 23 2021 10:14:07 +0000 Subject: [PATCH 1/2] Bump to F34 & antora 2.3 & node 14 --- diff --git a/Dockerfile b/Dockerfile index e51e4bc..455cdda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM fedora:31 +FROM fedora:34 -RUN dnf -y module install nodejs:10 && \ +RUN dnf -y module install nodejs:14 && \ dnf clean all -RUN npm i -g @antora/cli@2.0 @antora/site-generator-default@2.0 +RUN npm i -g @antora/cli@2.3 @antora/site-generator-default@2.3 WORKDIR /antora ENTRYPOINT [ "antora" ] diff --git a/build-scripts/Dockerfile b/build-scripts/Dockerfile index a20ccc6..4fa459f 100644 --- a/build-scripts/Dockerfile +++ b/build-scripts/Dockerfile @@ -1,10 +1,10 @@ -FROM fedora:31 +FROM fedora:34 -RUN dnf -y module install nodejs:10/default && \ +RUN dnf -y module install nodejs:14/default && \ dnf -y install git python3-yaml && \ dnf clean all -RUN npm i -g @antora/cli@2.0 @antora/site-generator-default@2.0 +RUN npm i -g @antora/cli@2.3 @antora/site-generator-default@2.3 ADD rebuild-site.py /antora/rebuild-site.py From 55b5c96e0627fd19f14f45460e63e72b3cc742c2 Mon Sep 17 00:00:00 2001 From: Francois Andrieu Date: Jun 23 2021 10:14:07 +0000 Subject: [PATCH 2/2] disable the edit link for translated pages --- diff --git a/build-scripts/rebuild-site.py b/build-scripts/rebuild-site.py index 7801898..5a91a18 100755 --- a/build-scripts/rebuild-site.py +++ b/build-scripts/rebuild-site.py @@ -339,6 +339,8 @@ def main(): # Branches are set to HEAD because the script uses a locally-generated # content on top of the original translated-sources repo lang_site_yml["content"]["branches"] = "HEAD" + # disable the "Edit this Page" + lang_site_yml["content"]["edit_url"] = False lang_site_yml["content"]["sources"] = [] for component, versions in components.items():