Skip to content

0.2.2 (April 27, 2024)

Compare
Choose a tag to compare
@pearmini pearmini released this 27 Apr 02:42
· 17 commits to main since this release
debed75

Documentation

Add the showcase page! If your are building something cool with Markdown Genji, please add it here!

image

Genji Runtime

Add page.emit and page.on to communicate between the selected SSG and genji-runtime.

 watch(
    () => isDark.value,
    () => {
      page.emit("dark", isDark.value);
    },
  );

Genji Theme Vitepress

Add dark signal, which helps watch if the current theme is set to dark mode. (#194)

```js eval
(() => {
  const div = document.createElement("div");
  div.style.width = "100px";
  div.style.height = "100px";
  div.style.background = dark ? "#fff" : "#000";
  return div;
})();
```

This produces:

image

Full Changelog: 0.2.1...0.2.2