Skip to content

Commit

Permalink
feat: 添加文章
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerzh committed Mar 2, 2023
1 parent 33fa026 commit e3e04c8
Show file tree
Hide file tree
Showing 32 changed files with 1,074 additions and 423 deletions.
9 changes: 0 additions & 9 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,8 @@ export default defineConfig({
title: '🏠',
description: '笔记本 📚',
srcDir: 'src',
srcExclude: ['tutorial/**/description.md'],
scrollOffset: 'header',
<<<<<<< HEAD
head: [
['meta', { name: 'theme-color', content: '#3c8772' }],
['meta', { name: 'twitter:site', content: '@tigerzh' }],
['meta', { name: 'twitter:card', content: 'summary' }]
],
=======
head,
>>>>>>> c081209efb997c6cf8e1f86dab1ee05d0ef5f5c6
themeConfig: {
nav,
sidebar,
Expand Down
66 changes: 32 additions & 34 deletions .vitepress/head.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,35 @@ import fs from 'fs'
import path from 'path'

export default [
[
'link',
{
rel: 'icon',
href: 'https://image-host-1257416358.cos.accelerate.myqcloud.com/image/32x32.png',
},
],
['meta', { name: 'theme-color', content: '#3c8772' }],
['meta', { name: 'twitter:site', content: '@zh_tiger' }],
['meta', { name: 'twitter:card', content: 'summary' }],

[
'meta',
{
name: 'twitter:image',
content: 'https://image-host-1257416358.cos.accelerate.myqcloud.com/image/32x32.png'
}
],
[
'link',
{
rel: 'preconnect',
href: 'https://doc.tigerzh.com'
}
],
[
'script',
{},
fs.readFileSync(
path.resolve(__dirname, './scripts/index.js'),
'utf-8'
)
]
] as any
[
'link',
{
rel: 'icon',
href: 'https://image-host-1257416358.cos.accelerate.myqcloud.com/image/32x32.png'
}
],
['meta', { name: 'theme-color', content: '#3c8772' }],
['meta', { name: 'theme-color', content: '#3c8772' }],
['meta', { name: 'twitter:site', content: '@zh_tiger' }],
['meta', { name: 'twitter:card', content: 'summary' }],
[
'meta',
{
name: 'twitter:image',
content:
'https://image-host-1257416358.cos.accelerate.myqcloud.com/image/32x32.png'
}
],
[
'link',
{
rel: 'preconnect',
href: 'https://doc.tigerzh.com'
}
],
[
'script',
{},
fs.readFileSync(path.resolve(__dirname, './scripts/index.js'), 'utf-8')
]
] as any
150 changes: 75 additions & 75 deletions .vitepress/nav.ts
Original file line number Diff line number Diff line change
@@ -1,76 +1,76 @@

export default [
{
text: '卷集',
activeMatch: `^/(guide|style-guide|cookbook|examples|cryptocurrency)/`,
items: [
{ text: '💰 加密货币', link: '/cryptocurrency/money' },
{ text: '🚚 工具使用', link: '/tools/echarts' },
{ text: '💡 Idea日志 ', link: '/log/敏捷项目管理' },
]
},
{
text: '笔记',
activeMatch: `^/note/`,
link: '/note/前端工程化'
},
{
text: '作品集',
activeMatch: `^/products/`,
items: [
{
text: '代表作',
items: [
{ text: 'Gettr', link: '/products/gettr' },
{ text: '叮铃医生', link: '/products/doctor' },

]
},
{
text: '商业作品',
items: [
{
text: 'Fas基金研究平台',
link: '/products/fas'
},
{ text: '币傲交易所', link: '/products/btcalory' },
{
text: 'Open Alpha ',
link: '/products/openalpha'
},
{ text: '基金大V入驻小程序', link: '/products/bigv' },
{ text: '净值预估', link: '/products/valuation' }
]
},
{
text: '个人作品',
items: [
{
text: 'Wall Paper',
link: '/products/wallpaper'
},
{ text: 'Note Music', link: '/products/notemusic' },
{ text: '优惠券小程序', link: '/products/coupon' },
]
},
]
},
// {
// text: '我',
// activeMatch: `^/about/`,
// items: [
// { text: 'FAQ', link: '/about/faq' },
// { text: 'Team', link: '/about/team' },
// { text: 'Releases', link: '/about/releases' },
// {
// text: 'Community Guide',
// link: '/about/community-guide'
// },
// { text: 'Code of Conduct', link: '/about/coc' },
// {
// text: 'The Documentary',
// link: 'https://www.youtube.com/watch?v=OrxmtDw4pVI'
// }
// ]
// },
]
{
text: '卷集',
activeMatch: `^/(guide|style-guide|cookbook|examples|cryptocurrency)/`,
items: [
{ text: '💰 加密货币', link: '/cryptocurrency/money' },
{ text: '🚚 工具使用', link: '/tools/echarts' },
{ text: '💡 开发日志 ', link: '/log/敏捷项目管理' },
{ text: '❓ 常见问题 ', link: '/Q&A/Ubuntu服务器常见问题' }
]
},
{
text: '笔记',
activeMatch: `^/note/`,
link: '/note/前端工程化'
},
{
text: '作品集',
activeMatch: `^/products/`,
items: [
{
text: '代表作',
items: [
{ text: 'Gettr', link: '/products/gettr' },
{ text: '叮铃医生', link: '/products/doctor' }
]
},
{
text: '商业作品',
items: [
{
text: 'Fas基金研究平台',
link: '/products/fas'
},
{ text: '币傲交易所', link: '/products/btcalory' },
{
text: 'Open Alpha',
link: '/products/openalpha'
},
{ text: '基金大V入驻小程序', link: '/products/bigv' },
{ text: '投研模版', link: '/products/bigv' },
{ text: '净值预估', link: '/products/valuation' }
]
},
{
text: '个人作品',
items: [
{
text: 'Wall Paper',
link: '/products/wallpaper'
},
{ text: 'Note Music', link: '/products/notemusic' },
{ text: '优惠券小程序', link: '/products/coupon' }
]
}
]
}
// {
// text: '我',
// activeMatch: `^/about/`,
// items: [
// { text: 'FAQ', link: '/about/faq' },
// { text: 'Team', link: '/about/team' },
// { text: 'Releases', link: '/about/releases' },
// {
// text: 'Community Guide',
// link: '/about/community-guide'
// },
// { text: 'Code of Conduct', link: '/about/coc' },
// {
// text: 'The Documentary',
// link: 'https://www.youtube.com/watch?v=OrxmtDw4pVI'
// }
// ]
// },
]
Loading

0 comments on commit e3e04c8

Please sign in to comment.