docs: update content

This commit is contained in:
Philipp Kühn
2021-04-21 11:46:45 +02:00
parent 170b9b8d64
commit 36bf546c2d
6 changed files with 32 additions and 25 deletions

View File

@@ -117,7 +117,7 @@ import { RocksDB } from '@hocuspocus/extension-rocksdb'
const server = Server.configure({
port: 1234,
extensions: [
new RocksDB({ path: './database' })
new RocksDB({ path: './database' }),
],
})
@@ -308,10 +308,10 @@ your views.
This example is **not intended** to be a primary storage as serializing to and deserializing from JSON will not store the collaboration history steps but only the resulting document. Make sure to always use the RocksDB extension as primary storage.
```typescript
import {debounce} from 'debounce'
import {Server} from '@hocuspocus/server'
import {TiptapTransformer} from '@hocuspocus/transformer'
import {writeFile} from 'fs'
import { debounce } from 'debounce'
import { Server } from '@hocuspocus/server'
import { TiptapTransformer } from '@hocuspocus/transformer'
import { writeFile } from 'fs'
let debounced