Skip to content

Commit 606c01e

Browse files
authored
Update docsy version to 0.10.0 (#229)
* Update docsy version to 0.10.0 * Cleanup deprecated options * Updates to bring fix deprecated config items, fix local search * Update peaceiris action versions and github action versions. * Add .gitkeep file * Add config/development/server.yaml
1 parent 871dccb commit 606c01e

File tree

12 files changed

+81
-23
lines changed

12 files changed

+81
-23
lines changed

.github/workflows/gh-pages.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Cache Zotero Bibliography
5353
id: cache-zotero-bib
54-
uses: actions/cache@v3
54+
uses: actions/cache@v4
5555
env:
5656
cache-name: cache-zotero_bib
5757
with:
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Cache Zotero Bibliography
7575
id: cache-zotero-bib
76-
uses: actions/cache@v3
76+
uses: actions/cache@v4
7777
env:
7878
cache-name: cache-zotero_bib
7979
with:
@@ -88,25 +88,25 @@ 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 ~/data ${GITHUB_WORKSPACE}/static
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 ~/data
9999
fi
100100
shell: bash
101101

102102
- name: Setup Hugo
103-
uses: peaceiris/actions-hugo@v2
103+
uses: peaceiris/actions-hugo@v3
104104
with:
105105
hugo-version: '0.122.0'
106106
extended: true
107107

108108
- name: Setup Node
109-
uses: actions/setup-node@v3
109+
uses: actions/setup-node@v4
110110
with:
111111
node-version: 18
112112

@@ -118,7 +118,7 @@ jobs:
118118
run: hugo
119119

120120
- name: Deploy
121-
uses: peaceiris/actions-gh-pages@v3
121+
uses: peaceiris/actions-gh-pages@v4
122122
if: github.ref == 'refs/heads/main'
123123
with:
124124
github_token: ${{ secrets.GITHUB_TOKEN }}

config/development/server.yaml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
headers:
2+
- for: /**
3+
values:
4+
Content-Security-Policy: script-src 'unsafe-inline' 'unsafe-eval' localhost:1313 https://code.jquery.com https://*.google.com http://*.google.com https://partner.googleadservices.com
5+
Referrer-Policy: strict-origin-when-cross-origin
6+
X-Content-Type-Options: nosniff
7+
X-Frame-Options: DENY
8+
X-XSS-Protection: 1; mode=block
9+
10+
redirects:
11+
- from: /**
12+
status: 404
13+
to: /404.html

content/en/_index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- /hugo
55
---
66

7-
{{< blocks/cover title="The Medley Interlisp Project" subtitle="a retrofuturistic software system" image_anchor="smart" color="orange" height="min">}}
7+
{{< blocks/cover title="The Medley Interlisp Project" subtitle="a retrofuturistic software system" image_anchor="smart" color="primary" height="min">}}
88
<div class="top-summary">
99
What did we leave behind on the path to developing today's computer systems? Could there be lessons for the future of computing hidden in the past? Enter the Medley software environment to explore these questions.
1010
</div>
@@ -49,7 +49,7 @@ <h3>Have other questions?</h3>
4949

5050
{{< /blocks/section >}}
5151

52-
{{< blocks/section color="primary" >}}
52+
{{< blocks/section color="primary" type="row" >}}
5353

5454
{{% blocks/feature icon="fas fa-feather" title="History of Interlisp" %}}
5555
<p>

content/en/history/bibliography/_index.md

-1
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.mod

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ module github.com/Interlisp/Interlisp.github.io
22

33
go 1.20
44

5-
require github.com/google/docsy v0.6.0 // indirect
5+
require (
6+
github.com/google/docsy v0.10.0 // indirect
7+
github.com/google/docsy/dependencies v0.7.2 // indirect
8+
)

go.sum

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1-
github.com/FortAwesome/Font-Awesome v0.0.0-20220831210243-d3a7818c253f/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
2-
github.com/google/docsy v0.6.0 h1:43bVF18t2JihAamelQjjGzx1vO2ljCilVrBgetCA8oI=
3-
github.com/google/docsy v0.6.0/go.mod h1:VKKLqD8PQ7AglJc98yBorATfW7GrNVsn0kGXVYF6G+M=
1+
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=
3+
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=
6+
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg=
7+
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
48
github.com/google/docsy/dependencies v0.6.0/go.mod h1:EDGc2znMbGUw0RW5kWwy2oGgLt0iVXBmoq4UOqstuNE=
9+
github.com/google/docsy/dependencies v0.7.2 h1:+t5ufoADQAj4XneFphz4A+UU0ICAxmNaRHVWtMYXPSI=
10+
github.com/google/docsy/dependencies v0.7.2/go.mod h1:gihhs5gmgeO+wuoay4FwOzob+jYJVyQbNaQOh788lD4=
511
github.com/twbs/bootstrap v4.6.2+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
12+
github.com/twbs/bootstrap v5.2.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=
13+
github.com/twbs/bootstrap v5.3.3+incompatible/go.mod h1:fZTSrkpSf0/HkL0IIJzvVspTt1r9zuf7XlZau8kpcY0=

hugo.toml

+8-5
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
@@ -23,7 +25,7 @@ defaultContentLanguageInSubdir = false
2325
# Useful when translating.
2426
enableMissingTranslationPlaceholders = true
2527

26-
disableKinds = ["taxonomy", "taxonomyTerm", "RSS"]
28+
disableKinds = ["taxonomy", "RSS"]
2729

2830
# ****************************************************************************
2931
#
@@ -116,7 +118,7 @@ anchor = "smart"
116118

117119
[languages]
118120
[languages.en]
119-
description = "Dedicated to restoring and preserving the Interlisp experience"
121+
# description = "Dedicated to restoring and preserving the Interlisp experience"
120122
languageName ="English"
121123
# Weight used for sorting.
122124
weight = 1
@@ -213,7 +215,8 @@ sidebar_search_disable = false
213215
# Set to false if you don't want to display a logo (/assets/icons/logo.svg) in the top nav bar
214216
navbar_logo = true
215217
# Set to true to disable the About link in the site footer
216-
footer_about_disable = true # false
218+
footer_about_enable = false
219+
217220
# Turn off transparency in nav bar
218221
navbar_translucent_over_cover_disable = true
219222

@@ -255,8 +258,8 @@ enable = false
255258
[[params.links.user]]
256259
name ="Twitter"
257260
url = "https://twitter.com/interlisp8"
258-
icon = "fab fa-twitter"
259-
desc = "Follow us on Twitter to get the latest news!"
261+
icon = "fab fa-x-twitter"
262+
desc = "Follow us on X to get the latest news!"
260263
# [[params.links.user]]
261264
# name = "Stack Overflow"
262265
# url = "https://stackoverflow.com/questions/tagged/graphviz"

layouts/shortcodes/bibTable.html

+9-1
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

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-1
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

+1-1
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"

static/data/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)