Skip to content

Commit 1684af4

Browse files
committed
Updates to bring fix deprecated config items, fix local search
1 parent c41140a commit 1684af4

File tree

9 files changed

+54
-8
lines changed

9 files changed

+54
-8
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
env:
7878
cache-name: cache-zotero_bib
7979
with:
80-
path: ~/data
80+
path: ~/static/data
8181
key: ${{ needs.check.outputs.zoteroVersion }}
8282
restore-keys: |
8383
${{ needs.check.outputs.zoteroVersion }}
@@ -88,14 +88,14 @@ jobs:
8888
run: |
8989
if [[ "$CACHE_HIT" == 'true' ]]; then
9090
echo "Use Cache"
91-
sudo cp --recursive ~/data ${GITHUB_WORKSPACE}
92-
ls -la ${GITHUB_WORKSPACE}/data
91+
sudo cp --recursive ~/static/data ${GITHUB_WORKSPACE}
92+
ls -la ${GITHUB_WORKSPACE}/static/data
9393
else
9494
echo "Retrieve bibliography"
9595
cd scripts
9696
chmod +x ./update_bibliography.sh
9797
./update_bibliography.sh
98-
sudo cp --recursive ${GITHUB_WORKSPACE}/data ~/data
98+
sudo cp --recursive ${GITHUB_WORKSPACE}/static/data ~/static/data
9999
fi
100100
shell: bash
101101

content/en/history/bibliography/_index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ aliases:
1313

1414
(This bibliography is kept in sync with our [Zotero](https://www.zotero.org/) collection [Library](https://www.zotero.org/groups/2914042/interlisp/library).
1515

16-
1716
{{< bibTable >}}

go.sum

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
2+
github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
23
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
4+
github.com/google/docsy v0.9.1 h1:+jqges1YCd+yHeuZ1BUvD8V8mEGVtPxULg5j/vaJ984=
5+
github.com/google/docsy v0.9.1/go.mod h1:saOqKEUOn07Bc0orM/JdIF3VkOanHta9LU5Y53bwN2U=
36
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg=
47
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
8+
github.com/google/docsy/dependencies v0.6.0/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE=
59
github.com/google/docsy/dependencies v0.7.2 h1:+t5ufoADQAj4XneFphz4A+UU0ICAxmNaRHVWtMYXPSI=
610
github.com/google/docsy/dependencies v0.7.2/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
711
github.com/twbs/bootstrap v4.6.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

hugo.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ enableRobotsTXT = true
77

88
assetDir = "static"
99

10+
11+
1012
# ****************************************************************************
1113
#
1214
# Docsy
@@ -214,6 +216,7 @@ sidebar_search_disable = false
214216
navbar_logo = true
215217
# Set to true to disable the About link in the site footer
216218
footer_about_enable = false
219+
217220
# Turn off transparency in nav bar
218221
navbar_translucent_over_cover_disable = true
219222

@@ -278,3 +281,10 @@ enable = false
278281
# url = "https://example.org/mail"
279282
# icon = "fa fa-envelope"
280283
# desc = "Discuss development issues around the project"
284+
285+
[params.cdn]
286+
jquery = 'https://code.jquery.com/jquery-3.7.1.min.js'
287+
jquery_hash = 'sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo='
288+
289+
[params.csp]
290+
scriptsrc = ["'self'", "'unsafe-inline'", "https://code.jquery.com"]
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
<!-- ><script type="text/javascript" src="/js/carousel.js"></script>
2+
<script src="https://code.jquery.com/jquery-3.7.1.min.js" integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
23
<link rel="stylesheet" href="/css/carousel.css"> -->
34
<link rel="stylesheet" href="/css/custom.css">

layouts/shortcodes/bibTable.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,15 @@
165165
</tr>
166166
</thead>
167167
<tbody style="overflow:auto">
168-
{{ $years_items := getJSON "data/bibliography.json" }}
168+
{{ $years_items := dict }}
169+
{{ $bib := resources.Get "data/bibliography.json" }}
170+
{{ with $bib }}
171+
{{ with . | transform.Unmarshal }}
172+
{{ $years_items = . }}
173+
{{ end }}
174+
{{ else }}
175+
{{ errorf "Unable to get global resource 'data/bibliography.json'" }}
176+
{{ end }}
169177
{{ range $year, $items := $years_items }}
170178
<tr>
171179
<th class="year"><b>{{ $year }}</b></th>

package-lock.json

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212

1313
"dependencies": {
1414

15+
"jquery": "^3.7.1",
16+
1517
"tabpanel": "^0.2.0"
1618

1719
}
18-
20+
1921
}
2022

scripts/update_bibliography.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,4 @@ items=$(jq 'include "./bib-fns";map(reconstituteGroupedEntries) | from_entries'
102102

103103
echo "Outputting CSL JSON"
104104
echo "$finalCount entries"
105-
echo "$items" > "$(dirname "$0")/../data/bibliography.json"
105+
echo "$items" > "$(dirname "$0")/../static/data/bibliography.json"

0 commit comments

Comments
 (0)