Search code examples
markdowndocusaurus

How to render a browser in Docusaurus


I am trying to render a browser, as shown in Docusaurus guide: enter image description here

  • Should the file be file-name.mdx instead of .md? (I tried it, didn't help.)
  • I tried to copy the code from here, but no luck. Can anyone help. It's pretty new framework and I couldn't find any solution on internet. Any captain for rescue?

Solution

  • I found it after going through their github a little. You need to have style components for such styling.

    I copied the /src/components/BrowserWindow contents from docusaurus' github.

    Not sure if there is any easier way to just generate/build it in my workspace.