Skip to content

Commit 45b0d90

Browse files
committed
Don't rebuild search index by default
1 parent a05071b commit 45b0d90

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/render.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
python -m pip install --upgrade pip
4343
4444
- name: Render PEPs
45-
run: make dirhtml JOBS=$(nproc)
45+
run: make dirhtml pagefind JOBS=$(nproc)
4646

4747
# remove the .doctrees folder when building for deployment as it takes two thirds of disk space
4848
- name: Clean up files

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ build:
1313
- asdf plugin add uv
1414
- asdf install uv latest
1515
- asdf global uv latest
16-
- make dirhtml JOBS=$(nproc) BUILDDIR=_readthedocs/html
16+
- make dirhtml pagefind JOBS=$(nproc) BUILDDIR=_readthedocs/html
1717

1818
sphinx:
1919
builder: dirhtml

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ ALLSPHINXOPTS = --builder $(BUILDER) \
2222
.PHONY: html
2323
html: venv
2424
$(SPHINXBUILD) $(ALLSPHINXOPTS)
25-
$(VENVDIR)/bin/python3 -m pagefind --site $(BUILDDIR) --verbose
2625

2726
## htmlview to open the index page built by the html target in your browser
2827
.PHONY: htmlview
@@ -43,6 +42,11 @@ dirhtml: BUILDER = dirhtml
4342
dirhtml: html
4443
mv $(BUILDDIR)/404/index.html $(BUILDDIR)/404.html
4544

45+
## pagefind to rebuild the search index
46+
.PHONY: pagefind
47+
pagefind: venv
48+
$(VENVDIR)/bin/python3 -m pagefind --site $(BUILDDIR) --verbose
49+
4650
## linkcheck to check validity of links within PEP sources
4751
.PHONY: linkcheck
4852
linkcheck: BUILDER = linkcheck

0 commit comments

Comments
 (0)