nix(release): automate updating source file links in the docs
Closes #5133. Signed-off-by: Taimoor Zaeem <taimoorzaeem@gmail.com>
This commit is contained in:
committed by
Wolfgang Walther
parent
f21949a517
commit
89fe63fce0
@@ -45,7 +45,10 @@ let
|
|||||||
echo "Updating docs/conf.py ..."
|
echo "Updating docs/conf.py ..."
|
||||||
sed -i -E "s/^(version = ).*$/\1\"$new_docs_version\"/" docs/conf.py > /dev/null
|
sed -i -E "s/^(version = ).*$/\1\"$new_docs_version\"/" docs/conf.py > /dev/null
|
||||||
|
|
||||||
git add postgrest.cabal docs/conf.py > /dev/null
|
echo "Updating Haskell source file links ..."
|
||||||
|
sed -i -E "s#(github\.com/PostgREST/postgrest/blob)/main/#\1/$new_version/#g" docs/explanations/architecture.rst
|
||||||
|
|
||||||
|
git add postgrest.cabal docs/conf.py docs/explanations/architecture.rst > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
today_date_for_changelog="$(date '+%Y-%m-%d')"
|
today_date_for_changelog="$(date '+%Y-%m-%d')"
|
||||||
|
|||||||
Reference in New Issue
Block a user