Content-addressed version deploy system for Diffuse elements.diffuse.sh
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: move chronicle page to /chronicle + redirect root to latest

+30 -23
+1 -1
_config.ts
··· 4 4 5 5 const site = lume({ 6 6 dest: "./dist", 7 - src: "./index", 7 + src: "./site", 8 8 server: { 9 9 debugBar: false, 10 10 },
-10
index/_data/artifacts.ts
··· 1 - import artifactsJson from "../../artifacts/artifacts.json" with { 2 - type: "json", 3 - }; 4 - 5 - import type { Artifact } from "../../common/types.d.ts"; 6 - 7 - const artifacts: Record<string, Artifact> = artifactsJson as any; 8 - 9 - export const record = artifacts; 10 - export const list = Object.values(artifacts).reverse();
-10
index/_data/versions.ts
··· 1 - import versionsJson from "../../artifacts/versions.json" with { 2 - type: "json", 3 - }; 4 - 5 - import type { Artifact } from "../../common/types.d.ts"; 6 - 7 - const versions: Record<string, Artifact> = versionsJson as any; 8 - 9 - export const record = versions; 10 - export const list = Object.values(versions).reverse();
index/images/ahmed-yOkJDaJgFEs-unsplash.jpg site/images/ahmed-yOkJDaJgFEs-unsplash.jpg
index/images/maxx-gong-yER6L9sRPXM-unsplash.jpg site/images/maxx-gong-yER6L9sRPXM-unsplash.jpg
index/index.css site/chronicle/index.css
+2 -1
index/index.vto site/chronicle/index.vto
··· 1 1 --- 2 2 layout: diffuse/layouts/diffuse.vto 3 + base: ../ 3 4 4 5 styles: 5 6 - styles/base.css 6 7 - styles/diffuse/page.css 7 8 - styles/vendor/phosphor/fill/style.css 8 - - index.css 9 + - chronicle/index.css 9 10 --- 10 11 11 12 <header>
+10
site/chronicle/_data/artifacts.ts
··· 1 + import artifactsJson from "../../../artifacts/artifacts.json" with { 2 + type: "json", 3 + }; 4 + 5 + import type { Artifact } from "../../../common/types.d.ts"; 6 + 7 + const artifacts: Record<string, Artifact> = artifactsJson as any; 8 + 9 + export const record = artifacts; 10 + export const list = Object.values(artifacts).reverse();
+10
site/chronicle/_data/versions.ts
··· 1 + import versionsJson from "../../../artifacts/versions.json" with { 2 + type: "json", 3 + }; 4 + 5 + import type { Artifact } from "../../../common/types.d.ts"; 6 + 7 + const versions: Record<string, Artifact> = versionsJson as any; 8 + 9 + export const record = versions; 10 + export const list = Object.values(versions).reverse();
+7 -1
tasks/generate-redirects.ts
··· 180 180 status: 302, 181 181 }; 182 182 183 - rules = [latest, latestHash, latestSplat, ...rules]; 183 + const root: Rule = { 184 + from: "/", 185 + to: `/${latestRelease.version}/`, 186 + status: 302, 187 + }; 188 + 189 + rules = [root, latest, latestHash, latestSplat, ...rules]; 184 190 185 191 //////////////////////////////////////////// 186 192 // `_redirects` file