From 98209d3da6ba10a4950eee671926ab67d1644607 Mon Sep 17 00:00:00 2001 From: Inessa Pawson Date: Fri, 2 Oct 2026 21:10:36 -0400 Subject: [PATCH] Remove learn.scientific-python.org from Netlify preview build --- Makefile | 12 ++---------- tools/add_preview_links.py | 2 +- 2 files changed, 3 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index 8f3ccefa..475b2b8f 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: doc-serve shortcode-docs netlify-preview preview-theme theme docs scipy main blog learn tools serve-dev +.PHONY: doc-serve shortcode-docs netlify-preview preview-theme theme docs scipy main blog tools serve-dev .DEFAULT_GOAL := doc-serve GH_ORG = scientific-python @@ -36,11 +36,10 @@ doc-serve: doc/content/shortcodes.md # The following is for use on netlify # ----------------------------------- -netlify-preview: preview-theme theme scipy main blog learn tools +netlify-preview: preview-theme theme scipy main blog tools mv scipy/public doc/public/scipy mv main/public doc/public/main mv blog/public doc/public/blog - mv learn/public doc/public/learn mv tools/public doc/public/tools git restore doc/content/_index.md @@ -71,13 +70,6 @@ blog: (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 $@ diff --git a/tools/add_preview_links.py b/tools/add_preview_links.py index 87e41359..630f9af1 100644 --- a/tools/add_preview_links.py +++ b/tools/add_preview_links.py @@ -1,7 +1,7 @@ filename = "doc/content/_index.md" preview_links = """ {{< admonition attention >}} -See [scientific-python](main), [blog](blog), [learn](learn), [tools](tools), [scipy](scipy), and numpy. +See [scientific-python](main), [blog](blog), [tools](tools), [scipy](scipy), and numpy. {{< /admonition >}} """