-
Notifications
You must be signed in to change notification settings - Fork 43
Feat search #735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Feat search #735
Changes from 18 commits
a3e6722
43fcafd
cda79c4
455a721
6c7061b
cf7d2d1
2fb5a88
3c50e97
a5ebfa9
079bc44
c8b4bb0
70e28fd
6c60d7f
58727d1
8895aab
d134217
fdd6334
30291ea
5fe1717
29236e2
c010a96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
.DEFAULT_GOAL := help | ||
SHELL:=/bin/bash | ||
|
||
|
||
# Add help text after each target name starting with '\#\#' | ||
help: ## show this help | ||
@echo -e "Help for this makefile\n" | ||
|
@@ -30,6 +29,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 | ||
|
@@ -55,12 +55,18 @@ content/specs/core-projects/core-projects.json: content/specs/core-projects/[^_] | |
@python tools/md-header-to-json.py $? > $@ | ||
|
||
html: prepare calendars core-project-json ## build the website in ./public | ||
hugo --themesDir="./themes"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You should be able to just add:
to the prepare target and remove it everywhere else. (I also removed the |
||
$(SEARCH) | ||
@hugo | ||
|
||
serve: prepare calendars core-project-json ## serve the website | ||
hugo --themesDir="./themes"; | ||
$(SEARCH) | ||
@hugo --printI18nWarnings server | ||
|
||
serve-dev: prepare calendars | ||
hugo --themesDir="../"; | ||
$(SEARCH) | ||
@hugo --printI18nWarnings server --disableFastRender | ||
|
||
clean: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ params: | |
author: | ||
name: Scientific Python team | ||
description: Community developed and owned ecosystem for scientific computing | ||
|
||
search: true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This should be enough to pull in the JS and CSS from the theme. |
||
fonts: | ||
- name: "Lato" | ||
weights: [400, 900] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unrelated edit.