hocuspocus icon indicating copy to clipboard operation
hocuspocus copied to clipboard

Documentation mistakes to fix

Open dkrym opened this issue 5 years ago • 1 comments

Not sure what is good way to report mistakes in doc as I don't have line numbers but you should be able to Ctrl+F these to easily find them

where: https://github.com/ueberdosis/hocuspocus/blob/main/docs/src/docPages/provider/events.md is: onSynced: ({ status }) => { should be: onSynced: ({ state }) => {

is: provider.on('onMessage', message) should be: provider.on('message', onMessage)

is: provider.off('onMessage', message) should be: provider.off('message', onMessage)

where: https://github.com/ueberdosis/hocuspocus/blob/main/docs/src/docPages/provider/awareness.md is: }), (line under console.log(states) has extra closing bracket) should be: },

where: https://github.com/ueberdosis/hocuspocus/blob/main/docs/src/docPages/api/hooks/on-change.md where: https://github.com/ueberdosis/hocuspocus/blob/main/docs/src/docPages/guide/documents.md is: debounced = debounce(() => save, 4000) should be: debounced = debounce(save, 4000)

dkrym avatar Aug 19 '21 10:08 dkrym

Amazing, thanks! :)

hanspagel avatar Aug 19 '21 13:08 hanspagel