Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.19 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.19 KB

Get stuff installed

To work on the docs you need to first get the cli tool to build docs:

Running docs server

  • make sure to cd the docusaurus/video path of this repo
  • npx stream-chat-docusaurus -s starts a developer server

Basic stuff

  • 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 and TabItem, see here for more

Other Notes

  • 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