To work on the docs you need to first get the cli tool to build docs:
- checkout the
stream-chat-docusaurus-cli
repository - follow the install steps in the readme
- make sure to cd the
docusaurus/video
path of this repo npx stream-chat-docusaurus -s
starts a developer server
- documentation sections are paths under docs/api
- documentation is inside mdx files, that's a fancy extension of Markdown
- mdx files must contain the intro section (the --- bit) otherwise they will not get picked up by the server
- for code examples you can use
Tabs
andTabItem
, see here for more
- code examples with tabs are super dumb, you need to take into account that MDX is crap (indentation new lines will break the parser and lead to errors)
- the development server does not support all sorts of reload, really often if a page breaks you need to ctrl-c and restart it