From 7dd15186e17cac0dfab6668a2941d085c15262cd Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Sun, 16 Jun 2024 08:51:12 +0100 Subject: [PATCH] chore: use relative links and update in build script --- README.md | 4 ++-- scripts/release-edge.sh | 3 +++ scripts/release-rc.sh | 3 +++ scripts/release.sh | 3 +++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 799eb802b1..a9df118209 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[![Nuxt banner](https://github.com/nuxt/nuxt/tree/main/.github/assets/banner.svg)](https://nuxt.com) +[![Nuxt banner](./.github/assets/banner.svg)](https://nuxt.com) # Nuxt @@ -115,7 +115,7 @@ If you expect to be using Nuxt 2 beyond the EOL (End of Life) date (June 30, 202 ## 🔗 Follow us

- Discord  Twitter  GitHub + Discord  Twitter  GitHub

## ⚖️ License diff --git a/scripts/release-edge.sh b/scripts/release-edge.sh index 0ce9491a61..eb04601bbc 100755 --- a/scripts/release-edge.sh +++ b/scripts/release-edge.sh @@ -18,6 +18,9 @@ if [[ ! -z ${NODE_AUTH_TOKEN} ]] ; then npm whoami fi +# use absolute urls for better rendering on npm +sed -i '' 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md + # Release packages for p in packages/* ; do if [[ $p == "packages/nuxi" ]] ; then diff --git a/scripts/release-rc.sh b/scripts/release-rc.sh index f2623c1e61..88e04e5d30 100755 --- a/scripts/release-rc.sh +++ b/scripts/release-rc.sh @@ -8,6 +8,9 @@ git restore -s@ -SW -- packages examples # Build all once to ensure things are nice pnpm build +# use absolute urls for better rendering on npm +sed -i '' 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md + # Release packages for PKG in packages/* ; do if [[ $PKG == "packages/nuxi" ]] ; then diff --git a/scripts/release.sh b/scripts/release.sh index f8fc5bd819..40c18c87cc 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -8,6 +8,9 @@ git restore -s@ -SW -- packages examples # Build all once to ensure things are nice pnpm build +# use absolute urls for better rendering on npm +sed -i '' 's/\.\/\.github\/assets/https:\/\/github.com\/nuxt\/nuxt\/tree\/main\/\.github\/assets/g' README.md + # Release packages for PKG in packages/* ; do if [[ $PKG == "packages/nuxi" ]] ; then