Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Releases: pearmini/genji

0.2.8 (MAR 5, 2025)

Choose a tag to compare

@pearmini pearmini released this 06 Mar 01:59
914e26f

genji-theme-vitepress

Support runnable code groups!

::: code-group

```js [main.js] eval
(() => {
  const div = document.createElement("div");
  div.style.width = "100px";
  div.style.height = "100px";
  div.style.background = rgb(100);
})();
```

```js [rgb.js] eval inspector=false
function rbg(r, g = r, b = r) {
  return `rgb(${r}, ${g}, ${b})`;
}
```

:::

This produces:
image

Full Changelog: 0.2.6...0.2.8

0.2.6 (Sep 22, 2024)

Choose a tag to compare

@pearmini pearmini released this 22 Sep 13:42
204c2b6

genji-theme-docusaurus

Full Changelog: 0.2.5...0.2.6

0.2.5 (Sep 21, 2024)

Choose a tag to compare

@pearmini pearmini released this 21 Sep 21:29

Markdown Genji is now available in Docusaurus through genji-theme-docusaurus!

$ npm install genji-theme-docusaurus -D
image

What's Changed

Full Changelog: 0.2.3...0.2.5

0.2.3 (May 04, 2024)

Choose a tag to compare

@pearmini pearmini released this 04 May 02:03
ce1af31

Documentation

Genji Runtime

Full Changelog: 0.2.2...0.2.3

0.2.2 (April 27, 2024)

Choose a tag to compare

@pearmini pearmini released this 27 Apr 02:42
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

0.2.1 (Apr 13, 2024)

Choose a tag to compare

@pearmini pearmini released this 13 Apr 02:26
f5fe94d

Genji Runtime

Extract the core part of genji-theme-vitepress into a separate package called genji-runtime (#184), in preparation for supporting more SSGs with Markdown Genji in the future.

import { Page } from "genji-runtime";
import "genji-runtime/css";

const page = new Page(options);

page.render();

Genji Theme Vitepress

Export genjiAttrs (#180) to work with other Markdown plugins in VitePress:

// .vitepress/config.js
import { genjiAttrs } from "genji-theme-vitepress/config";
import otherMarkdownPlugin from "other-markdown-plugin";

export default {
  extends: config,
  markdown: {
    config: (md) => {
      md.use(otherMarkdownPlugin);
      md.use(genjiAttrs);
    },
  },
};

Full Changelog: 0.2.0...0.2.1

0.2.0 (Mar 31, 2024)

Choose a tag to compare

@pearmini pearmini released this 01 Apr 14:40
408587d

Markdown Genji is the markdown extension for authoring interactive documents, named after the coolest hero in Overwatch. It is inspired by Observable Notebook and can be used in popular Static Site Generator (SSG) frameworks, such as VitePress, through the use of plugins and themes.

iShot_2024-04-01_22 30 10

0.1.3

Choose a tag to compare

@pearmini pearmini released this 14 Sep 02:34
74e506f

What's Changed

  • fix(dep): move object-hash from the top-level package.json to genji-notebook package.json by @pearmini in #63

Full Changelog: 0.1.2...0.1.3

0.1.2

Choose a tag to compare

@pearmini pearmini released this 14 Sep 01:19
7581f16

What's Changed

Full Changelog: 0.1.11...0.1.2

0.1.11

Choose a tag to compare

@pearmini pearmini released this 15 Aug 00:49
8ff0ec5

What's Changed

  • fix(genji-notebook): fail to jump through url link (close: #54) by @pearmini in #59

Full Changelog: 0.1.0...0.1.11