From fb178b0db5a43df101757e4f41464537f734f8b3 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 4 Apr 2026 00:46:12 +0200 Subject: [PATCH] chore: various updates; pkg info; repo links --- README.md | 7 +- astro.config.mjs | 4 +- package.json | 5 +- pnpm-lock.yaml | 1934 +++++++++++++++++++++---------------------- src/Serialize.astro | 55 +- src/deserialize.ts | 8 +- 6 files changed, 968 insertions(+), 1045 deletions(-) diff --git a/README.md b/README.md index f75e01c..834a397 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,3 @@ -> [!NOTE] -> This project moved to [SourceHut](https://git.sr.ht/~ayoayco/astro-resume). - # Astro Resume [![Package information: NPM version](https://img.shields.io/npm/v/@ayco/astro-resume)](https://www.npmjs.com/package/@ayco/astro-resume) @@ -106,6 +103,7 @@ If you have shared data that needs to be initialized from the server and accesse In this example, an appConfig object is built and serialized in index.astro and accessed in child Astro components. In index.astro: + ```astro import Serialize from "@ayco/astro-resume"; @@ -120,6 +118,7 @@ export type AppConfig = typeof appConfig; ``` In Child.astro: + ```astro

I'm a child. I have access to the appConfig in index!

@@ -133,6 +132,7 @@ const data = deserialize('app-config'); ``` In GrandChild.astro: + ```astro

I'm a grand child. I also have access to the appConfig in index!

\ No newline at end of file +