Skip to content

Commit 387be61

Browse files
committed
fix that pagefind was not deployed by github pages
Signed-off-by: Christoph Rueger <[email protected]>
1 parent 4327657 commit 387be61

File tree

5 files changed

+8
-7
lines changed

5 files changed

+8
-7
lines changed

.github/scripts/docs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ bundle --version
66
bundle exec jekyll build
77

88
# create search index under _site/pagefind
9-
./pagefind --verbose --site _site
9+
./pagefind --verbose --site _site --output-subdir pagefindindex

_config.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ exclude:
6262
- '.gitignore'
6363
- '.github'
6464
- '.project'
65-
- 'run.sh'
65+
- '*.sh'
6666
- '/vendor'
67-
- '/pagefind'
67+
- 'pagefind'
68+
6869

_layouts/baselayout.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<div class="row main-container">
99

10-
<link href="/pagefind/pagefind-ui.css" rel="stylesheet">
11-
<script src="/pagefind/pagefind-ui.js"></script>
10+
<link href="/pagefindindex/pagefind-ui.css" rel="stylesheet">
11+
<script src="/pagefindindex/pagefind-ui.js"></script>
1212
<div id="search"></div>
1313
<script>
1414
window.addEventListener('DOMContentLoaded', (event) => {

run-pagefind-linux.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ bundle exec jekyll build
1212
curl -L https://github.com/CloudCannon/pagefind/releases/download/v1.3.0/pagefind-v1.3.0-x86_64-unknown-linux-musl.tar.gz -o pagefind.tar.gz
1313
tar xzf pagefind.tar.gz
1414
chmod +x pagefind
15-
./pagefind --site _site --serve
15+
./pagefind --site _site --serve --output-subdir pagefindindex

run-pagefind-macos.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ bundle exec jekyll build
1212
curl -L https://github.com/CloudCannon/pagefind/releases/download/v1.3.0/pagefind-v1.3.0-aarch64-apple-darwin.tar.gz -o pagefind.tar.gz
1313
tar xzf pagefind.tar.gz
1414
chmod +x pagefind
15-
./pagefind --site _site --serve
15+
./pagefind --site _site --serve --output-subdir pagefindindex

0 commit comments

Comments
 (0)