From 5b2c9076df29bcc288384b57de08d971c2e986a8 Mon Sep 17 00:00:00 2001 From: Stephen Curran Date: Thu, 22 Feb 2024 06:55:41 -0800 Subject: [PATCH] More updates to get docs publishing Signed-off-by: Stephen Curran --- .github/workflows/publish-docs.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index be7d5de0ca..4da56d8a58 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -46,9 +46,10 @@ jobs: # Copy all of the root level md files into the docs folder for deployment, tweaking the relative paths for i in *.md; do sed -e "s#docs/#./#g" $i >docs/$i; done # Populate overrides for the current version, and then remove to not apply if VERSION is main branch - echo -e "{% extends "base.html" %}\n\n{% block outdated %}\n You are viewing the documentation for ACA-Py Release $VERSION.\n{% endblock %}" >overrides/main.html - # If building from main, use latest as ALIAS and remove the base.html override - [ "$VERSION" == "main" ] && ALIAS=latest && rm overrides/base.html + OVERRIDE=overrides/main.html + echo -e "{% extends \"base.html\" %}\n\n{% block outdated %}\n You are viewing the documentation for ACA-Py Release $ALIAS.\n{% endblock %}" >$OVERRIDE + # If building from main, use latest as ALIAS and remove the override + [ "$VERSION" == "main" ] && ALIAS=latest && rm $OVERRIDE echo $VERSION $ALIAS mike deploy --push --update-aliases $VERSION $ALIAS mike set-default latest