Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/.vitepress/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig({
description: "The JavaScript library for expressive creative coding",
cleanUrls: true,
extends: config,
head: [["link", { rel: "icon", type: "image/png", href: "/logo.png" }]],
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
Expand All @@ -27,5 +28,6 @@ export default defineConfig({
},
],
socialLinks: [{icon: "github", link: "https://github.com/charming-art/charming"}],
logo: "/logo.svg",
},
});
10 changes: 10 additions & 0 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
:root {
--vp-home-hero-name-background: -webkit-linear-gradient(315deg, #00adb5 25%, #393e46);
--vp-home-hero-name-color: transparent;
}

:root {
--vp-c-indigo-1: #005559;
--vp-c-indigo-2: #00797f;
--vp-c-indigo-3: #00adb5;
}
1 change: 1 addition & 0 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import DefaultTheme from "vitepress/theme";
import Layout from "genji-theme-vitepress";
import {h} from "vue";
import * as cm from "../../../src/index.js";
import "./custom.css";

// More props: https://genji-md.dev/reference/props
const props = {
Expand Down
3 changes: 3 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ hero:
name: "Charming"
text: "The JavaScript library for reactive SVG manipulation"
tagline: "Craft dynamic and expressive SVGs with minimal effort"
image:
src: /logo.svg
alt: Charming
actions:
- theme: brand
text: Get Started
Expand Down
Binary file added 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.
1 change: 1 addition & 0 deletions docs/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.