diff --git a/website/pages/en/sandbox.js b/website/pages/en/sandbox.js new file mode 100644 index 0000000..059cf73 --- /dev/null +++ b/website/pages/en/sandbox.js @@ -0,0 +1,26 @@ +const React = require("react"); + +// Use the CompLibrary from Docusaurus +// https://docusaurus.io/docs/en/api-pages#page-require-paths +const CompLibrary = require("../../core/CompLibrary.js"); + +const iframe = ``; + +const Container = CompLibrary.Container; + +class Sandbox extends React.Component { + render() { + // Can access siteConfig.js from here as follows + // const { config: siteConfig } = this.props; + + return ( +
+ +
+ +
+ ); + } +} + +module.exports = Sandbox; diff --git a/website/siteConfig.js b/website/siteConfig.js index d7e8939..8b0c3c7 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -24,6 +24,7 @@ const siteConfig = { // For no header links in the top nav bar -> headerLinks: [], headerLinks: [ { doc: "introduction", label: "Docs" }, + { page: "sandbox", label: "Sandbox" }, { href: "https://github.com/unmock/unmock-js", label: "GitHub" }, ],