diff --git a/Makefile b/Makefile index 954a3491..ee170b6b 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ prepare: git submodule update --init ((python -c 'import yaml2ics' && pre-commit) > /dev/null 2>&1) || pip install -q -r requirements.txt test -f .git/hooks/pre-commit || pre-commit install + hugo; $(SEARCH) CALENDAR_DIR = content/calendars @@ -30,6 +31,7 @@ SPEC_DIR = content/specs/steering-committee TEAMS = community-managers community-leaders emeritus-community-leaders SPEC_TEAMS = spec-steering-committee emeritus-spec-steering-committee TEAMS_QUERY = python themes/scientific-python-hugo-theme/tools/team_query.py +SEARCH = (echo "Installing \`pagefind\` and generating search index..." && npx --yes pagefind --site public) $(TEAMS_DIR)/%.toml: $(TEAMS_QUERY) --org scientific-python --team "$*" > $(TEAMS_DIR)/$*.toml diff --git a/config.yaml b/config.yaml index 6d6b35e0..55c812cc 100644 --- a/config.yaml +++ b/config.yaml @@ -20,7 +20,7 @@ params: author: name: Scientific Python team description: Community developed and owned ecosystem for scientific computing - + search: true fonts: - name: "Lato" weights: [400, 900]