Skip to content

Commit ac48aa5

Browse files
Fix previews using relativeURLs (#583)
* Fix previews using relativeURLs * Fix previews with relativeURLs
1 parent 85d9353 commit ac48aa5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,24 @@ main:
5858
(cd $@ ; git submodule update --init content/specs)
5959
(cd $@ ; pip install -q -r requirements.txt)
6060
(cd $@ ; make calendars ; make core-project-json)
61+
(cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml)
6162
(cd $@ ; hugo --themesDir="../..")
6263

6364
blog:
6465
rm -rf $@
6566
git clone --depth 1 https://github.com/scientific-python/blog.scientific-python.org $@
67+
(cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml)
6668
(cd $@ ; hugo --themesDir="../..")
6769

6870
learn:
6971
rm -rf $@
7072
git clone --depth 1 https://github.com/scientific-python/learn.scientific-python.org $@
7173
(cd $@ ; perl -pi -e 's;/development/;https://learn.scientific-python.org/development/;g' content/_index.md)
74+
(cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml)
7275
(cd $@ ; hugo --themesDir="../..")
7376

7477
tools:
7578
rm -rf $@
7679
git clone --depth 1 https://github.com/scientific-python/tools.scientific-python.org $@
80+
(cd $@ ; perl -pi -e 'print "relativeURLs: true\n" if $$. == 1' config.yaml)
7781
(cd $@ ; hugo --themesDir="../..")

0 commit comments

Comments
 (0)