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 demo at [vue-notion.now.sh](https://vue-notion.now.sh/) ✨
83
+
> 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).
81
85
82
-
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).
86
+
## Examples
87
+
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.
83
90
84
91
### Basic Example for Vue
85
92
86
-
This example is hosted at [vue-notion.now.sh/vue](https://vue-notion.now.sh/vue).
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).
87
94
88
95
```vue
89
96
<template>
@@ -108,12 +115,9 @@ export default {
108
115
</style>
109
116
```
110
117
111
-
The example above uses a simple wrapper around the [notion-api-worker](https://github.com/splitbee/notion-api-worker).
112
-
It is also possible to store a page received from the Notion API in `.json` and use it without the `async/await` part.
113
-
114
-
### Basic Example for Nuxt
118
+
### Basic Example for NuxtJS
115
119
116
-
This example is hosted at [vue-notion.now.sh/nuxt](https://vue-notion.now.sh/nuxt).
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).
117
121
118
122
```vue
119
123
<template>
@@ -125,25 +129,25 @@ export default {
125
129
data: () => ({ blockMap: null }),
126
130
async asyncData({ $notion }) {
127
131
// 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.
141
-
> We can not gurantee it will stay stable.
147
+
> We can NOT guarantee that it will stay stable.
142
148
> The private API is warpped by [notion-api-worker](https://github.com/splitbee/notion-api-worker).
143
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).
144
150
145
-
A [full working example using Nuxt and static generation](https://vue-notion.now.sh/) can be found inside the `example` directory.
146
-
147
151
## Roadmap
148
152
149
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!
@@ -184,7 +188,7 @@ Most common block types are supported. We happily accept pull requests to add su
184
188
| Checkbox | ❌ Not planned ||
185
189
| Table Of Contents | ❌ Not planned ||
186
190
187
-
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.
191
+
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.
188
192
189
193
## Credits
190
194
@@ -196,7 +200,7 @@ Please, feel free to [open an issue](https://github.com/janniks/vue-notion/issue
196
200
-[samwightt](https://github.com/samwightt) – react-notion Inspiration & API Typings
0 commit comments