Skip to content

Commit

Permalink
docs: update index.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pearmini committed Mar 7, 2024
1 parent 3ecaad3 commit 01003e7
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/genji-docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default defineConfig({
],
},
],

logo: "/logo.png",
socialLinks: [
{ icon: "github", link: "https://github.com/vuejs/vitepress" },
],
Expand Down
27 changes: 27 additions & 0 deletions packages/genji-docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
:root {
--vp-c-indigo-1: #50a752;
--vp-c-indigo-3: #a7eb4f;
--vp-c-indigo-2: #92dba6;
--vp-home-hero-image-filter: blur(68px);
}

:root {
--vp-home-hero-name-background: -webkit-linear-gradient(
120deg,
#a7eb4f 30%,
#50a752
);
--vp-home-hero-image-background-image: linear-gradient(
-45deg,
#a7eb4f 50%,
#50a752 50%
);
--vp-home-hero-name-color: transparent;
}

.clip {
background: var(--vp-home-hero-name-background) !important;
-webkit-background-clip: text !important;
background-clip: text !important;
-webkit-text-fill-color: var(--vp-home-hero-name-color) !important;
}
4 changes: 4 additions & 0 deletions packages/genji-docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import DefaultTheme from "vitepress/theme";
import "./custom.css";

export default DefaultTheme;
10 changes: 8 additions & 2 deletions packages/genji-docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ layout: home
hero:
name: "Genji"
text: "The interactive Markdown extension"
tagline: Create interactive documents with just Markdown.
tagline: Author interactive documents with just Markdown.
image:
src: /logo.png
alt: Genji
actions:
- theme: brand
text: Get Started
Expand All @@ -16,9 +19,12 @@ hero:

features:
- title: Executable code blocks
icon: 📝
details: Code blocks in Markdown are executable, allowing them to display their evaluated values, which can then be referenced by other code blocks.
- title: Interactive via reactivity
icon: 🧲
details: Built-in inputs and custom reactive variables can be defined to capture user input, triggering a re-render of the code blocks that reference them.
- title: Compatible with popular SSG frameworks
details: Themes and plugins are available for integrating Genji into popular SSG frameworks, embracing their features and ensuring seamless experience with existing tools.
icon: 🌍
details: Themes and plugins are available for integrating Genji into popular SSG frameworks, embracing their features and ensuring seamless experience with them.
---
5 changes: 3 additions & 2 deletions packages/genji-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"license": "MIT",
"devDependencies": {
"vitepress": "^1.0.0-rc.44"
}
}
},
"repository": "[email protected]:pearmini/genji-notebook.git"
}
Binary file added packages/genji-docs/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 01003e7

Please sign in to comment.