You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Check out a full working demo at [vue-notion.now.sh](https://vue-notion.now.sh/) ✨
84
+
> The code for the demo is in [`example/`](https://github.com/janniks/vue-notion/tree/main/example).
78
85
79
-
> Check out a demo at [vue-notion.now.sh](https://vue-notion.now.sh/) ✨
86
+
## Examples
80
87
81
-
More information on the `NotionRenderer` specification, syntax-highlighting, the Notion API, and integration with Nuxt can be found at [`docs/`](https://github.com/janniks/vue-notion/tree/main/docs).
88
+
These examples use a simple wrapper around the [`notion-api-worker`](https://github.com/splitbee/notion-api-worker).
89
+
It is also possible to store a page received from the Notion API in `.json` and use it without the `async/await` part.
82
90
83
91
### Basic Example for Vue
84
92
85
-
This example is hosted at [vue-notion.now.sh/welcome](https://vue-notion.now.sh/welcome).
93
+
This example is a part of [`example/`](https://github.com/janniks/vue-notion/tree/main/example) and is hosted at [vue-notion.now.sh/vue](https://vue-notion.now.sh/vue).
86
94
87
95
```vue
88
96
<template>
@@ -107,12 +115,9 @@ export default {
107
115
</style>
108
116
```
109
117
110
-
The example above uses a simple wrapper around the [notion-api-worker](https://github.com/splitbee/notion-api-worker).
111
-
It is also possible to store and use plain `.json` objects received from the Notion API.
118
+
### Basic Example for NuxtJS
112
119
113
-
### Basic Example for Nuxt
114
-
115
-
This example is hosted at [vue-notion.now.sh/welcome](https://vue-notion.now.sh/welcome).
120
+
This example is a part of [`example/`](https://github.com/janniks/vue-notion/tree/main/example) and is hosted at [vue-notion.now.sh/nuxt](https://vue-notion.now.sh/nuxt).
116
121
117
122
```vue
118
123
<template>
@@ -123,28 +128,26 @@ This example is hosted at [vue-notion.now.sh/welcome](https://vue-notion.now.sh/
123
128
export default {
124
129
data: () => ({ blockMap: null }),
125
130
async asyncData({ $notion }) {
126
-
// use notion module to get Notion blocks from the API via a Notion pageId
> The `getPageBlocks` and `getPageTable` are based on the private Notion API.
142
-
> We can not gurantee it will stay stable.
147
+
> We can NOT guarantee that it will stay stable.
143
148
> The private API is warpped by [notion-api-worker](https://github.com/splitbee/notion-api-worker).
144
149
> If you use these methods a lot, please consider hosting you own instance, as described in [`docs#notion-api`](https://github.com/janniks/vue-notion/tree/main/docs#notion-api).
145
150
146
-
A [full working example using Nuxt and static generation](https://vue-notion.now.sh/) can be found inside the `example` directory.
147
-
148
151
## Roadmap
149
152
150
153
[Add issues](https://github.com/janniks/vue-notion/issues/new), request features and upvote [block types](https://github.com/janniks/vue-notion/issues?q=is%3Aissue+is%3Aopen+label%3Ablock) that you want to see next!
@@ -160,42 +163,45 @@ List of pages that are using this library.
160
163
161
164
Most common block types are supported. We happily accept pull requests to add support for the missing blocks.
Please, feel free to [open an issue](https://github.com/janniks/vue-notion/issues/new) if you notice any missing blocks or anything wrong with existing blocks.
Please, feel free to [open an issue](https://github.com/janniks/vue-notion/issues/new) if you notice any important blocks missing or anything wrong with existing blocks.
0 commit comments