Skip to content

Commit 76a6d83

Browse files
committed
Remove storing of individual .json files and unused files.
Clean out some old files js & scss from earlier bibliography work.
1 parent bf785e5 commit 76a6d83

File tree

9 files changed

+15
-197
lines changed

9 files changed

+15
-197
lines changed

.github/workflows/gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ jobs:
152152
- name: Deploy to GitHub Pages
153153
id: deployment
154154
uses: actions/deploy-pages@v4
155-
155+

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,9 @@ _gen/
1818
.hugo_build.lock
1919
.idea
2020
data/bibliography.json
21+
static/data/bibliography.json
22+
static/data/bibItems/
2123
/docs
24+
/scripts/*.json
25+
/content/en/history/bibliography/**
26+
!/content/en/history/bibliography/_index.md

assets/scss/_styles_project.scss

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
1-
@import "publications/publications";
2-
31
.text-center.py-2 .text-white {
42
display: none;
53
}
64

75
div.td-page-meta {
86
display: none;
97
}
10-
11-
.article-container {
12-
max-width: 760px;
13-
padding: 0 20px;
14-
margin: 0 auto;
15-
}

config/_default/params.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -184,17 +184,3 @@ ui:
184184
custom_css:
185185
- "css/custom.css"
186186

187-
# Extensions -- From wowchemy
188-
189-
extensions:
190-
decap_cms:
191-
branch: main
192-
local_backend: false
193-
academicons:
194-
enable: true
195-
196-
# Citation style
197-
198-
publications:
199-
date_format: January 2006
200-
citation_style: apa

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module github.com/Interlisp/Interlisp.github.io
33
go 1.20
44

55
require (
6-
github.com/google/docsy v0.12.0 // indirect
6+
github.com/google/docsy v0.10.0 // indirect
77
github.com/google/docsy/dependencies v0.7.2 // indirect
88
)

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ github.com/FortAwesome/Font-Awesome v0.0.0-20230327165841-0698449d50f2/go.mod h1
22
github.com/FortAwesome/Font-Awesome v0.0.0-20240108205627-a1232e345536/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
33
github.com/FortAwesome/Font-Awesome v0.0.0-20240402185447-c0f460dca7f7/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
44
github.com/FortAwesome/Font-Awesome v0.0.0-20241216213156-af620534bfc3/go.mod h1:IUgezN/MFpCDIlFezw3L8j83oeiIuYoj28Miwr/KUYo=
5+
github.com/google/docsy v0.10.0 h1:6tMDacPwAyRWNCfvsn/9qGOZDQ8b0aRzjRZvnZPY5dg=
6+
github.com/google/docsy v0.10.0/go.mod h1:c0nIAqmRTOuJ01F85U/wJPQtc3Zj9N58Kea9bOT2AJc=
57
github.com/google/docsy v0.12.0 h1:CddZKL39YyJzawr8GTVaakvcUTCJRAAYdz7W0qfZ2P4=
68
github.com/google/docsy v0.12.0/go.mod h1:1bioDqA493neyFesaTvQ9reV0V2vYy+xUAnlnz7+miM=
79
github.com/google/docsy/dependencies v0.7.2 h1:+t5ufoADQAj4XneFphz4A+UU0ICAxmNaRHVWtMYXPSI=

scripts/bibSplit.pl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ BEGIN
3838
my $target = $json->{target} || print STDERR "Cannot find target for key \"$key\" in line: $_\n";
3939

4040
if ($key eq $target) { # only top level entries
41-
my $handle = undef;
42-
my $itemjson = "$bibItemsDir/$key.json";
43-
open($handle, ">:encoding(UTF-8)", $itemjson) || die "$0: cannot open $itemjson in write-open mode: $!";
44-
print $handle $item;
45-
close $handle || die "$0: close of file $itemjson failed: $!";
46-
41+
#my $handle = undef;
42+
#my $itemjson = "$bibItemsDir/$key.json";
43+
#open($handle, ">:encoding(UTF-8)", $itemjson) || die "$0: cannot open $itemjson in write-open mode: $!";
44+
#print $handle $item;
45+
#close $handle || die "$0: close of file $itemjson failed: $!";
4746

4847
my $obj = eval { decode_json($item) } or do { warn "Bad JSON for $key\n"; next; };
4948
delete $obj->{children};

scripts/update_bibliography.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,4 +422,4 @@ mkdir -p "$BIBLIOGRAPHY_DIR" "$BIBITEMS_DIR"
422422

423423
showInfo 1 "Outputting CSL JSON"
424424
showInfo 1 "$finalCount entries"
425-
echo "$items" > "$(dirname "$0")/../static/data/bibliography.json"
425+
#echo "$items" > "$(dirname "$0")/../static/data/bibliography.json"

static/js/publications.js

Lines changed: 0 additions & 166 deletions
This file was deleted.

0 commit comments

Comments
 (0)