Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Headless static site subtree #25

Open
wants to merge 141 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
141 commits
Select commit Hold shift + click to select a range
45dacb7
Initial commit
stephenwf Sep 12, 2023
ea76745
fixes
stephenwf Sep 13, 2023
47e5648
Changes
stephenwf Sep 14, 2023
63e2eaa
changes
stephenwf Sep 14, 2023
774106d
0.0.2
stephenwf Sep 14, 2023
203d8f9
compile fixes
stephenwf Sep 14, 2023
4f1dc09
Fixed ignore
stephenwf Sep 14, 2023
3589488
More changes
stephenwf Sep 15, 2023
9aa3edb
0.0.5
stephenwf Sep 15, 2023
993da26
Updates
stephenwf Sep 28, 2023
35c8b82
fixed dev server
stephenwf Sep 28, 2023
663a122
Re-added build
stephenwf Sep 28, 2023
9bf0f7b
version
stephenwf Sep 28, 2023
93367e6
Fix
stephenwf Sep 28, 2023
a7bc26d
fix script
stephenwf Sep 28, 2023
6711f8b
expansion
stephenwf Oct 8, 2023
50e5cd2
refactor saved files
stephenwf Oct 23, 2023
e5c1c18
0.1.0
stephenwf Oct 23, 2023
cab362e
Fixed bug with overrides and destination
stephenwf Oct 23, 2023
f2a09e6
0.1.1
stephenwf Oct 23, 2023
d6f8fa2
Fixed bug with overrides and destination
stephenwf Oct 23, 2023
68d3705
0.1.2
stephenwf Oct 23, 2023
150fc5d
Added getCollection
stephenwf Oct 26, 2023
b36f1a0
0.1.3
stephenwf Oct 26, 2023
339cb1e
Fix types
stephenwf Oct 26, 2023
a65caf3
Fix types
stephenwf Oct 26, 2023
55849ec
Updated node client too
stephenwf Oct 26, 2023
479cabf
0.1.4
stephenwf Oct 26, 2023
4d25e49
URL to slug helper
stephenwf Oct 26, 2023
aa5211b
0.1.5
stephenwf Oct 26, 2023
8b8d5aa
Collection parsing + bug fixes
stephenwf Dec 11, 2023
76d0243
0.1.6
stephenwf Dec 11, 2023
3c3c6e2
Fix build
stephenwf Dec 11, 2023
841165d
Fixed bugs with store request cache
stephenwf Jan 4, 2024
ad99e9b
Created load-scripts helper
stephenwf Jan 4, 2024
e8424e8
Added generators, slug rewrites and generic collections
stephenwf Jan 4, 2024
df932b8
Merge pull request #2 from digirati-co-uk/feature/collections-hooks
stephenwf Jan 4, 2024
6d71174
0.2.0
stephenwf Jan 4, 2024
66496c7
Fixes for collection IDs
stephenwf Jan 15, 2024
c4893fe
0.2.1
stephenwf Jan 15, 2024
8d8b69f
Fixed type
stephenwf Jan 15, 2024
888a54a
Typesense index creation
stephenwf Feb 12, 2024
85bb17b
Added collection indexing
stephenwf Feb 15, 2024
3218663
Merge pull request #3 from digirati-co-uk/feature/typesense
stephenwf Feb 15, 2024
6aab4f9
0.2.2
stephenwf Feb 15, 2024
4f46712
Fixes for bun build
stephenwf Feb 16, 2024
e5393f6
Fixed bun text
stephenwf Feb 16, 2024
f2f0d4d
hotfix for typesense
stephenwf Feb 16, 2024
8c89fb8
0.2.3
stephenwf Feb 16, 2024
6cf6480
Refactor + add partOf collections to manifest meta
stephenwf Feb 28, 2024
5489b1f
Merge pull request #4 from digirati-co-uk/feature/collection-part-of
stephenwf Feb 28, 2024
45dc39f
0.2.4
stephenwf Feb 28, 2024
b2e92ca
Added support for virtual collections using `_collection.yml`
stephenwf Mar 15, 2024
32a0870
0.2.5
stephenwf Mar 15, 2024
75ffbbf
bunlock
stephenwf Mar 15, 2024
b12b577
Fixed few bugs
stephenwf Mar 15, 2024
85ee3df
0.2.6
stephenwf Mar 15, 2024
eeab007
Pinned parser
stephenwf May 9, 2024
b0b792a
0.2.7
stephenwf May 9, 2024
e215730
Merge remote-tracking branch 'hss/main' into feature/hss-history
stephenwf Dec 9, 2024
3de0a03
Added readme and updated bunlock
stephenwf Dec 9, 2024
051eade
Added biome and linting
stephenwf Dec 10, 2024
5ada288
Updated instructions
stephenwf Dec 10, 2024
fcb633c
Merge commit '051eadebef8ecbd22e701be26f8176d567085bd2' into feature/…
stephenwf Dec 10, 2024
9a9d4c7
Updated readme
stephenwf Dec 10, 2024
e0bb325
Added file-handler to save files together, speeding up builds
stephenwf Dec 17, 2024
5b34d99
Moved HTML to typescript for server
stephenwf Dec 17, 2024
19f44fe
New TSUP configuration for building
stephenwf Dec 17, 2024
3a722f9
Migrate to NodeJS compatible calls
stephenwf Dec 17, 2024
53a3cfc
Swapped bun for pnpm
stephenwf Jan 10, 2025
ad7eed2
dependencies
stephenwf Jan 10, 2025
29f0053
Added web-socket refreshing example to client + html pages
stephenwf Jan 10, 2025
0dc0df0
DEL-110 - Top level collection customisations
stephenwf Jan 10, 2025
b2215cc
Added library option for importing
stephenwf Jan 10, 2025
29e9ea0
Merge pull request #7 from digirati-co-uk/feature/node-compatibility
stephenwf Jan 10, 2025
80fe3c2
1.0.0
stephenwf Jan 10, 2025
e8a4b61
Merge commit '80fe3c201ceb0387cc08bc19ad400b79a6a06a93' into feature/…
stephenwf Jan 10, 2025
75a69cb
Updated headless static site + top level collection customisation
stephenwf Jan 10, 2025
1e8a357
Turbo updates
stephenwf Jan 10, 2025
c1c63a5
Small hss fixes
stephenwf Jan 10, 2025
8337780
NextJS warnings and deprecations
stephenwf Jan 10, 2025
43ab153
Small fixes
stephenwf Jan 10, 2025
6d98e76
1.0.1
stephenwf Jan 10, 2025
92cd52b
Merge commit '6d98e7628b2569c535be0f80159f73a126ca3e20' into feature/…
stephenwf Jan 10, 2025
ada0285
Updated version
stephenwf Jan 10, 2025
30ac106
Merge branch 'main' into feature/hss-history
stephenwf Jan 10, 2025
2a968a6
Disabled static pre-rendering of exhibitions for now
stephenwf Jan 10, 2025
3824a8c
Update actions for subtree
stephenwf Jan 10, 2025
bc62013
build
stephenwf Jan 10, 2025
82edce8
link cli
stephenwf Jan 10, 2025
37ce27c
Removed eslint
stephenwf Jan 10, 2025
6dce265
Compeltely disable eslint
stephenwf Jan 10, 2025
7e3a785
Trying to fix version
stephenwf Jan 10, 2025
7032818
Further fixes for react hydration errors
stephenwf Jan 10, 2025
ab47307
Small updates for SSR
stephenwf Jan 13, 2025
3b58be2
Safe inset for mobile display on modals
stephenwf Jan 13, 2025
a9c71d9
DEL-111 Sharing and viewing component on manifest page
stephenwf Jan 13, 2025
f8f5681
DEL-111 Sharing on Collection page
stephenwf Jan 13, 2025
7e5652b
Updated dependencies for RIV
stephenwf Jan 14, 2025
72d54b3
Added new page block variations for homepage
stephenwf Jan 14, 2025
2a43219
updated bun
stephenwf Jan 14, 2025
48cd302
Fixed bunlock issue
stephenwf Jan 14, 2025
78e103f
responsive fixes
stephenwf Jan 14, 2025
d5f63e7
Recirpocal links
stephenwf Jan 14, 2025
13d682a
Merge branch 'main' into feature/hss-history
stephenwf Jan 28, 2025
50c0f80
Fixes for metadata during merge
stephenwf Jan 28, 2025
9427ec6
GitButler Workspace Commit
gitbutler-client Jan 23, 2025
b31507e
New sharing language tags
stephenwf Jan 28, 2025
d0e895b
Copy to clipboard and IIIF Logo component
stephenwf Jan 28, 2025
894b7d9
Object link type
stephenwf Jan 28, 2025
662a51a
New Translations for Manifests and sharing
stephenwf Jan 28, 2025
cbd25ce
Move part of collections to related section
stephenwf Jan 28, 2025
a324f51
Content
stephenwf Jan 28, 2025
99dff61
Updates to object links
stephenwf Jan 28, 2025
9f66621
New standalone exhibition viewer
stephenwf Jan 28, 2025
0da6eac
Merge pull request #37 from digirati-co-uk/feature/exhibition-viewer
stephenwf Jan 28, 2025
9e0275e
Updated dependencies
stephenwf Jan 28, 2025
ac44049
Removed duplicate part of during merge
stephenwf Jan 28, 2025
e7752ed
Title blocks and hover states for interactive non-linear flow
stephenwf Jan 28, 2025
63f4de0
Media player
stephenwf Jan 28, 2025
2d6be02
Presentation play mode
stephenwf Jan 29, 2025
2b96a7b
Added component icons
stephenwf Feb 2, 2025
bf032b1
Added use-hash hook using mitt to avoid scroll-lag
stephenwf Feb 2, 2025
7bfb279
Added table of contents bar
stephenwf Feb 2, 2025
db97bf4
Adds intersection to base grid section with identifiers
stephenwf Feb 2, 2025
13afcec
Remove old title block
stephenwf Feb 2, 2025
45c6938
Added table of contents components to standalone exhibition
stephenwf Feb 2, 2025
c763072
Added embed mode
stephenwf Feb 2, 2025
ee98f25
New control icons
stephenwf Feb 2, 2025
748486c
Saved use-hash into store
stephenwf Feb 2, 2025
873750f
Bugs with exhibitions, mobile styling and changes
stephenwf Feb 2, 2025
c1f7bfd
Update .gitignore
stephenwf Feb 2, 2025
9232087
Added saving to new manifest editor
stephenwf Feb 10, 2025
04e3eae
Merge commit '923208779b0786d4884dc94ed1f9f0e8a32b81c7' into feature/…
stephenwf Feb 10, 2025
0cf6df2
Fixed type
stephenwf Feb 10, 2025
04485e4
1.0.2
stephenwf Feb 10, 2025
84d3582
Merge commit '04485e4be05097f88d9cdba61539ca1fba1eee8f' into feature/…
stephenwf Feb 10, 2025
cc55d11
Added new Edit In Manifest Editor component
stephenwf Feb 10, 2025
b125ec6
Added edit links to Manifest pages
stephenwf Feb 10, 2025
c867816
Swapped in the new viewer into the static site
stephenwf Feb 11, 2025
e39d9f2
Added publication manfiest workflow
stephenwf Feb 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

7 changes: 7 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ jobs:
- name: Run bun install
run: bun install --frozen-lockfile

- name: Build HSS
working-directory: packages/headless-static-site
run: bun run build

- name: Link HSS CLI
run: bun install --frozen-lockfile

- name: Cache Next.js build cache
uses: actions/cache@v4
with:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ jobs:
- name: Run bun install
run: bun install --frozen-lockfile

- name: Build HSS
working-directory: packages/headless-static-site
run: bun run build

- name: Link HSS CLI
run: bun install --frozen-lockfile

- name: Cache .iiif/cache
uses: actions/cache@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ node_modules
.pnp.js
.iiif
.contentlayer

.wrangler

# Local env files
.env
Expand Down
28 changes: 26 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ This website provides access to the different facets of the academic heritage te
```

then run a first build, to create the IIIF:

```sh
bun run build
```
Expand Down Expand Up @@ -61,15 +62,38 @@ The project is a [Monorepo](https://turbo.build/repo/docs) with multiple project
bun run build
```

Once you have a running build push to the project repo and open a pull request. Netlify will automatically build a preview of your branch and the details are availible on the pull request if you add a label "Deploy preview" to the pull request.
Once you have a running build push to the project repo and open a pull request. Netlify will automatically build a preview of your branch and the details are availible on the pull request if you add a label "Deploy preview" to the pull request.

Main branch is automatically deployed to the live site.

## Useful links


[UX Wireframe](https://www.figma.com/file/emiQTuM5feCweZT4soUY4MJg/Wires?node-id=0:1)

[Demo site](https://delft-static-site-generator.netlify.com/)

[Changelog](https://github.com/digirati-co-uk/delft-static-site-generator/issues)

## Updating Headless Static Site

Ensure you have the headless static site origin:

```sh
git remote add -f hss [email protected]:digirati-co-uk/headless-static-site.git
```

Then you can pull changes using:

```sh
git subtree pull --prefix=packages/headless-static-site hss main
```

Or contribute changes back using:

```sh
git subtree push --prefix=packages/headless-static-site hss feature/my-feature
```

Where `feature/my-feature` is the name of a branch you want to push to the headless static site repository.

Read more about this process here: https://www.atlassian.com/git/tutorials/git-subtree
9 changes: 0 additions & 9 deletions apps/docs/.eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions apps/docs/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import { Inter } from "next/font/google";

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
title: "Create Turborepo",
description: "Generated by create turbo",
};

export default function RootLayout({
children,
}: {
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
3 changes: 3 additions & 0 deletions apps/docs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/** @type {import('next').NextConfig} */
module.exports = {
transpilePackages: ["@repo/ui"],
eslint: {
ignoreDuringBuilds: true,
},
};
13 changes: 4 additions & 9 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,19 @@
"scripts": {
"_dev": "next dev --port 3001",
"build": "next build",
"start": "next start",
"lint": "eslint . --max-warnings 0"
"start": "next start"
},
"dependencies": {
"@repo/ui": "*",
"next": "^14.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0"
"next": "14.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.0.2",
"@repo/eslint-config": "*",
"@repo/typescript-config": "*",
"@types/eslint": "^8.44.7",
"@types/node": "^17.0.12",
"@types/react": "^18.0.22",
"@types/react-dom": "^18.0.7",
"eslint": "^8.53.0",
"typescript": "^5.2.2"
}
}
4 changes: 4 additions & 0 deletions apps/iiif/.iiifrc-base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ run:
- delft-image-source
- typesense-manifests

collections:
index:
label: { "en": "TU Delft Academic Heritage", "nl": "Academisch Erfgoed TU Delft" }

config:
extract-thumbnail-local:
width: 1080
Expand Down
9 changes: 8 additions & 1 deletion apps/iiif/iiif.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
import { readFileSync } from "node:fs";
import { env } from "node:process";
export * from "./.iiifrc-base.yml";
import { parse as parseYaml } from "yaml";

const config = parseYaml(readFileSync(".iiifrc-base.yml", "utf8"));

export const run = config.run;
export const collections = config.collections;
export const stores = config.stores;

const url = env["IIIF_PREVIEW_URL"] || env["IIIF_URL"] || "http://localhost:3000";

Expand Down
1 change: 1 addition & 0 deletions apps/iiif/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default {};
Loading