Skip to content

Props for docusaurus#206

Merged
pearmini merged 1 commit intomainfrom
pass-props
May 4, 2024
Merged

Props for docusaurus#206
pearmini merged 1 commit intomainfrom
pass-props

Conversation

@pearmini
Copy link
Copy Markdown
Owner

@pearmini pearmini commented May 4, 2024

  • create 'genji.config.js'
  • add globals:
// genji.config.js

import { defineConfig } from "../src/config";

export default defineConfig({
  library: {
    block: (color) => {
      const div = document.createElement("div");
      div.style.width = "100px";
      div.style.height = "100px";
      div.style.background = color;
      return div;
    },
  },
});

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented May 4, 2024

Deploying genji with  Cloudflare Pages  Cloudflare Pages

Latest commit: 93c6a19
Status: ✅  Deploy successful!
Preview URL: https://9b1e31a1.genji-5td.pages.dev
Branch Preview URL: https://pass-props.genji-5td.pages.dev

View logs

@pearmini pearmini merged commit ae1ad7b into main May 4, 2024
@pearmini pearmini deleted the pass-props branch May 4, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant