Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
export PATH=$(pwd)/dart-sass:$PATH
hugo --gc --minify

- name: Build search index
run: npx --yes pagefind@1.5.2 --site public

- name: Deploy pages
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# type `make help` to see all options
# type `make help` to see all options

BASEURL ?=
BASEURL ?=

ifdef BASEURL
BASEURLARG=-b $(BASEURL)
endif
endif

.PHONY: help prepare teams-clean teams serve clean

Expand Down Expand Up @@ -41,8 +41,10 @@ serve-dev:
python gen_config.py
hugo $(BASEURLARG) --printI18nWarnings server --buildDrafts --disableFastRender --poll 1000ms

PAGEFIND = npx --yes pagefind@1.5.2 --site public
html: prepare ## build the website in ./public
hugo $(BASEURLARG)
$(PAGEFIND)

clean: ## remove the build artifacts, mainly the "public" directory
rm -rf public
Expand Down
1 change: 1 addition & 0 deletions config.yaml.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ markup:
disableLanguages: []

params:
search: true
colorScheme: light
author:
name: "NumPy team"
Expand Down