Skip to content

Commit bb557d9

Browse files
Merge pull request #4 from subhendupsingh/dev
Updated Readme
2 parents ebb34ac + 579ffe3 commit bb557d9

File tree

4 files changed

+17
-6
lines changed

4 files changed

+17
-6
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,15 @@ This is a plug and play library for [`Sveltekit`](https://kit.svelte.dev/) proje
2828

2929
export const prerender = true;
3030

31-
initNotion({
32-
databaseId: PUBLIC_NOTION_DATABASE_ID, //from .env
33-
notionToken: PUBLIC_NOTION_TOKEN, //from .env
31+
initNotionBlog({
32+
tokens: {
33+
databaseId: PUBLIC_NOTION_DATABASE_ID, //from .env
34+
notionToken: PUBLIC_NOTION_TOKEN, //from .env
35+
},
36+
settings: {
37+
blogTitle: "Notion Blog",
38+
blogDescription: "A blog powered by Notion"
39+
}
3440
});
3541
```
3642

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sveltekit-notion-blog",
3-
"version": "0.1.3",
3+
"version": "0.1.4",
44
"scripts": {
55
"dev": "vite dev",
66
"build": "vite build && npm run package",

src/routes/+page.server.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ export declare const load: () => Promise<{
1010
message: string;
1111
};
1212
pages?: undefined;
13+
settings?: undefined;
1314
} | {
1415
pages: import("@notionhq/client/build/src/api-endpoints").PageObjectResponse[];
16+
settings: {
17+
blogTitle: string;
18+
blogDescription: string;
19+
};
1520
error?: undefined;
1621
} | undefined>;

0 commit comments

Comments
 (0)