diff --git a/scripts/run-docs-build b/scripts/run-docs-build index b3cd75c..3db4a97 100755 --- a/scripts/run-docs-build +++ b/scripts/run-docs-build @@ -7,6 +7,7 @@ ypdocs=$2/documentation/ bbdocs=$3/doc/ docs_buildtools=/srv/autobuilder/autobuilder.yoctoproject.org/pub/buildtools/x86_64-buildtools-docs-nativesdk-standalone-3.2+snapshot-20201105.sh outputdir=$builddir/output +scriptdir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" cd $builddir @@ -84,6 +85,13 @@ for tag in $(git tag --list 'yocto-*'); do if [ "$first" = "$v_sphinx" ]; then cd $ypdocs git checkout $tag + # yocto-3.3 and yocto-3.4 were tagged before the current_version in + # conf.py was changed resulting in sphinx believing these are + # development branches which breaks all sorts of assumptions. Moving a + # tag isn't best practice so we just patch the releases here instead. + if [ "$tag" = "yocto-3.3" ] || [ "$tag" = "yocto-3.4" ]; then + git am "${scriptdir}/${tag}/0001-conf-update-for-release.patch" + fi make clean make publish version=$(echo $tag | cut -c7-) diff --git a/scripts/yocto-3.3/0001-conf-update-for-release.patch b/scripts/yocto-3.3/0001-conf-update-for-release.patch new file mode 100644 index 0000000..79b4cde --- /dev/null +++ b/scripts/yocto-3.3/0001-conf-update-for-release.patch @@ -0,0 +1,48 @@ +From 02f6e97894aa768ca1a7546646c35a175aca9a33 Mon Sep 17 00:00:00 2001 +From: Quentin Schulz +Date: Fri, 1 Oct 2021 17:21:48 +0200 +Subject: [PATCH] conf: update for release 3.3 + +conf.py: +* set version to 3.3 + +switchers.js: +* add 3.3 release +* update 'dev' to 3.4 + +Signed-off-by: Quentin Schulz +--- + documentation/conf.py | 2 +- + documentation/sphinx-static/switchers.js | 3 ++- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/documentation/conf.py b/documentation/conf.py +index 5a2e25f7b..ab1b2b14c 100644 +--- a/documentation/conf.py ++++ b/documentation/conf.py +@@ -16,7 +16,7 @@ import os + import sys + import datetime + +-current_version = "dev" ++current_version = "3.3" + + # String used in sidebar + version = 'Version: ' + current_version +diff --git a/documentation/sphinx-static/switchers.js b/documentation/sphinx-static/switchers.js +index 7a4edc9e7..96efab2e8 100644 +--- a/documentation/sphinx-static/switchers.js ++++ b/documentation/sphinx-static/switchers.js +@@ -2,7 +2,8 @@ + 'use strict'; + + var all_versions = { +- 'dev': 'dev (3.3)', ++ 'dev': 'dev (3.4)', ++ '3.3': '3.3', + '3.2.3': '3.2.3', + '3.1.6': '3.1.6', + '3.0.4': '3.0.4', +-- +2.31.1 + diff --git a/scripts/yocto-3.4/0001-conf-update-for-release.patch b/scripts/yocto-3.4/0001-conf-update-for-release.patch new file mode 100644 index 0000000..a940eb0 --- /dev/null +++ b/scripts/yocto-3.4/0001-conf-update-for-release.patch @@ -0,0 +1,54 @@ +From f6dcef2532c741c8b3ad251152b45e4079062ee3 Mon Sep 17 00:00:00 2001 +From: Quentin Schulz +Date: Thu, 21 Oct 2021 10:36:37 +0200 +Subject: [PATCH] [honister] conf: update for release 3.4 + +conf.py: +* set version to 3.4 + +switchers.js: +* add 3.4 release +* update 'dev' to 3.5 + +Signed-off-by: Quentin Schulz +--- + +Not tested + Assumed to be enough +No need to wait for the new release as the honister branch will be +integrated in the docs only when tagged but let's make sure we don't +forget to do this change before tagging a release. + + documentation/conf.py | 2 +- + documentation/sphinx-static/switchers.js | 3 ++- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/documentation/conf.py b/documentation/conf.py +index 8e0847938..104b49ea0 100644 +--- a/documentation/conf.py ++++ b/documentation/conf.py +@@ -16,7 +16,7 @@ import os + import sys + import datetime + +-current_version = "dev" ++current_version = "3.4" + + # String used in sidebar + version = 'Version: ' + current_version +diff --git a/documentation/sphinx-static/switchers.js b/documentation/sphinx-static/switchers.js +index 1e37b625a..6038dbb5a 100644 +--- a/documentation/sphinx-static/switchers.js ++++ b/documentation/sphinx-static/switchers.js +@@ -2,7 +2,8 @@ + 'use strict'; + + var all_versions = { +- 'dev': 'dev (3.4)', ++ 'dev': 'dev (3.5)', ++ '3.4': '3.4', + '3.3.3': '3.3.3', + '3.2.4': '3.2.4', + '3.1.11': '3.1.11', +-- +2.31.1 +