From 80bf1802d12e8cdfe5b16012a798790c8471a289 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Wed, 10 Apr 2024 09:03:00 -0700 Subject: [PATCH 1/2] Fix previews using relativeURLs --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 93106699..d225e3cb 100644 --- a/Makefile +++ b/Makefile @@ -49,8 +49,8 @@ theme: doc/content/shortcodes.md scipy: rm -rf $@ git clone --depth 1 https://github.com/scipy/scipy.org $@ - (cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml) (cd $@ ; hugo --themesDir="../..") + (cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml) main: rm -rf $@ From eda9f724b62cf9f9ff862a6b31ad606683a4c795 Mon Sep 17 00:00:00 2001 From: Jarrod Millman Date: Wed, 10 Apr 2024 09:06:49 -0700 Subject: [PATCH 2/2] Fix previews with relativeURLs --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d225e3cb..30f67453 100644 --- a/Makefile +++ b/Makefile @@ -49,8 +49,8 @@ theme: doc/content/shortcodes.md scipy: rm -rf $@ git clone --depth 1 https://github.com/scipy/scipy.org $@ - (cd $@ ; hugo --themesDir="../..") (cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml) + (cd $@ ; hugo --themesDir="../..") main: rm -rf $@ @@ -58,20 +58,24 @@ main: (cd $@ ; git submodule update --init content/specs) (cd $@ ; pip install -q -r requirements.txt) (cd $@ ; make calendars ; make core-project-json) + (cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml) (cd $@ ; hugo --themesDir="../..") blog: rm -rf $@ git clone --depth 1 https://github.com/scientific-python/blog.scientific-python.org $@ + (cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml) (cd $@ ; hugo --themesDir="../..") learn: rm -rf $@ git clone --depth 1 https://github.com/scientific-python/learn.scientific-python.org $@ (cd $@ ; perl -pi -e 's;/development/;https://learn.scientific-python.org/development/;g' content/_index.md) + (cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml) (cd $@ ; hugo --themesDir="../..") tools: rm -rf $@ git clone --depth 1 https://github.com/scientific-python/tools.scientific-python.org $@ + (cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml) (cd $@ ; hugo --themesDir="../..")