Skip to content

Commit

Permalink
Merge pull request #3 from GuoXiCheng/dev-c
Browse files Browse the repository at this point in the history
update docs
  • Loading branch information
GuoXiCheng authored Jan 4, 2025
2 parents 171e157 + c80ff11 commit 116cee9
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 29 deletions.
26 changes: 12 additions & 14 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
import { defineConfig } from 'vitepress'
import { defineConfig } from "vitepress";

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: "Index Fund",
title: "净值分位",
description: "Index Fund Mini Program",
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' }
{ text: "Home", link: "/" },
{ text: "Examples", link: "/markdown-examples" },
],

sidebar: [
{
text: 'Examples',
text: "Examples",
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
]
}
{ text: "Markdown Examples", link: "/markdown-examples" },
{ text: "Runtime API Examples", link: "/api-examples" },
],
},
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
}
})
socialLinks: [{ icon: "github", link: "https://github.com/GuoXiCheng/fund" }],
},
});
9 changes: 9 additions & 0 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
p img {
width: 300px;
}
:root {
--vp-home-hero-name-color: transparent;
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
/* --vp-home-hero-image-filter: blur(56px); */
/* --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%); */
}
7 changes: 7 additions & 0 deletions docs/.vitepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import DefaultTheme from 'vitepress/theme'
import './custom.css'


export default {
...DefaultTheme,
}
23 changes: 8 additions & 15 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,16 @@
layout: home

hero:
name: "Index Fund"
text: "Index Fund Mini Program"
tagline: My great project tagline
name: 净值分位
text: 指数基金净值分位微信小程序
# tagline: My great project tagline
image:
src: /images/quantile-of-net-worth-dark.jpg
actions:
- theme: brand
text: Markdown Examples
text: Get Started
link: /markdown-examples
- theme: alt
text: API Examples
link: /api-examples

features:
- title: Feature A
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature B
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature C
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
text: View on GitHub
link: https://github.com/GuoXiCheng/fund
---

Binary file added docs/public/images/quantile-of-net-worth-dark.jpg
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 116cee9

Please sign in to comment.