Skip to content

Commit

Permalink
Fix previews using relativeURLs (#583)
Browse files Browse the repository at this point in the history
* Fix previews using relativeURLs

* Fix previews with relativeURLs
  • Loading branch information
jarrodmillman authored Apr 10, 2024
1 parent 85d9353 commit ac48aa5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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="../..")

0 comments on commit ac48aa5

Please sign in to comment.