Skip to content

Commit

Permalink
Update Vitepress theme
Browse files Browse the repository at this point in the history
  • Loading branch information
SkwalExe committed Jun 9, 2024
1 parent 1e048d6 commit dca91fe
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 24 deletions.
52 changes: 28 additions & 24 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,33 @@ import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Octo-Logo",
description:
"A simple program that generates a logo for your open source project",
srcDir: "src",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Home", link: "/" },
{ text: "Getting Started", link: "/getting-started" },
],

sidebar: [
{
text: "Examples",
items: [
{ text: "Markdown Examples", link: "/markdown-examples" },
{ text: "Runtime API Examples", link: "/api-examples" },
title: "Octo-Logo",
description:
"A simple program that generates a logo for your open source project",
srcDir: "src",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: "Home", link: "/" },
{ text: "Getting Started", link: "/getting-started" },
],
},
],

socialLinks: [
{ icon: "github", link: "https://github.com/SkwalExe/octo-logo" },
],
},
search: {
provider: "local",
},
editLink: {
pattern: "https://github.com/skwalexe/octo-logo/edit/main/docs/src/:path",
},
sidebar: [
{
text: "Examples",
items: [
{ text: "Markdown Examples", link: "/markdown-examples" },
{ text: "Runtime API Examples", link: "/api-examples" },
],
},
],
socialLinks: [
{ icon: "github", link: "https://github.com/SkwalExe/octo-logo" },
],
},
});
6 changes: 6 additions & 0 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
:root {
--vp-c-brand-1: #ee8483;
--vp-c-brand-2: #e75351;
--vp-c-brand-3: #ee8483;
--vp-c-brand-soft: #f5b5b4;
}
4 changes: 4 additions & 0 deletions docs/.vitepress/theme/index.ts
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;
7 changes: 7 additions & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,10 @@ features:
icon: 💻
---


<style>
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #e75351 30%, #f5b5b4);
}
</style>

0 comments on commit dca91fe

Please sign in to comment.