docs.page
docs.page copied to clipboard
feat: add react-flow component
This PR adds a react-flow component.
Keeping it as a draft as I've just used their example code as a component for now. It seems to work nicely, but worth reviewing.
One thing I haven't thought about is how to include dependencies such as Marker type enums - these can be replaced by the literal strings, but this would deviate from react flow documentation slightly, i guess.
I also wonder whether they have a dark mode?
![Screenshot 2022-05-12 at 16 09 30](https://user-images.githubusercontent.com/32874567/168107897-5e4093f5-2469-40e1-b50d-bb444feea2a0.png)
Live preview:
https://staging-docs-page-website-euw1-dzpolnxswq-ew.a.run.app/cabljac/test/flow
Can we get a deployment preview CI action going or something, just deploying docs.page to firebase hosting preview channels or something - so we can preview changes like this and try them out
Seems to be broken in prod. Unsure why right now.
Can you also link to a docs page that has the component added in the PR so when preview is working we know where to go to preview it