Skip to content

Commit 51a5b17

Browse files
committed
Site polish, SDK rename, documentation overhaul
- OG meta URL fix, Dockerfile arch detection - Core: validation from ColumnDef on mount, print to body, change tracking lifecycle - Plugin showcase WitTable style prop, filter button CSS alignment - Extract shared DemoButton (default/primary/toggle) and DemoToolbar components across 9 demos - Cache-control headers: no-cache for HTML, immutable for hashed assets - Replace 12 ASCII diagrams with Mermaid SVGs across 9 doc pages - Rename all Wit* prefixes to Spreadsheet* in public SDK (18 identifiers, 170 files) - Pre-release SDK audit: 171 findings catalogued - Remove 13 deprecated Wit* aliases, eliminate 14 as-any casts via EventBus string overloads - Document 83 previously undocumented exports (5 .mdx files, 1040 lines) - Add 'Made with Moira' branding footer on all site pages - Remove CLAUDE.md from git tracking
1 parent 03727af commit 51a5b17

195 files changed

Lines changed: 3932 additions & 1420 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ moira-ws/
2323
.supervisor_logs/
2424
.idea/
2525
docker-compose.remote.yml
26+
CLAUDE.md

CLAUDE.md

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

config/Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ COPY packages/server/package.json packages/server/
1010
COPY packages/demo/package.json packages/demo/
1111
COPY packages/site/package.json packages/site/
1212
RUN --mount=type=cache,target=/root/.npm \
13-
npm ci && npm install @rollup/rollup-linux-x64-gnu @pagefind/linux-x64 --no-save
13+
npm ci && \
14+
ARCH=$(uname -m) && \
15+
if [ "$ARCH" = "x86_64" ]; then \
16+
npm install @rollup/rollup-linux-x64-gnu @pagefind/linux-x64 --no-save; \
17+
elif [ "$ARCH" = "aarch64" ]; then \
18+
npm install @rollup/rollup-linux-arm64-gnu @pagefind/linux-arm64 --no-save; \
19+
fi
1420

1521
FROM deps AS build
1622
COPY packages/core/ packages/core/

config/nginx.conf

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,27 @@ server {
99

1010
# Demo SPA at /demo/
1111
location /demo/visual-tests {
12+
add_header Cache-Control "no-cache";
1213
try_files $uri $uri/ /demo/visual-tests.html;
1314
}
1415

1516
location /demo/ {
17+
add_header Cache-Control "no-cache";
1618
try_files $uri $uri/ /demo/index.html;
1719
}
1820

1921
# Site (landing + docs) at /
2022
location / {
23+
add_header Cache-Control "no-cache";
2124
try_files $uri $uri/index.html $uri/ =404;
2225
}
2326

24-
# Static assets: long cache
27+
# HTML: always revalidate (ETag + Last-Modified served by nginx automatically)
28+
location ~* \.html$ {
29+
add_header Cache-Control "no-cache";
30+
}
31+
32+
# Hashed assets (Vite/Astro add content hash to filenames): long cache
2533
location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff2?)$ {
2634
expires 1y;
2735
add_header Cache-Control "public, immutable";

0 commit comments

Comments
 (0)