Skip to content

Commit

Permalink
📖 更新文章
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzer committed Apr 19, 2024
1 parent cc4c939 commit 063d401
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 65 deletions.
130 changes: 65 additions & 65 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,74 +4,74 @@ import sidebar from './sidebar/index'
import { defineConfig } from 'vitepress'
import { withPwa } from '@vite-pwa/vitepress'
export default withPwa(defineConfig({
//根据环境变量决定打包路径
// base: process.env.NODE_ENV === 'production' ? '/zerdocs/' : '/',
// lastUpdated: true,
// base:'/',
base:'/zerdocs/',//配置打包获取静态资源路径
outDir: '../dist',
cleanUrls: true, //去掉url中的.html后缀
// srcDir:'./src', //相对于docs
title: "ZerDocs",//网站标题
description: "Front-end learning document collection.",
ignoreDeadLinks: true,//忽略无效链接
markdown: {
theme: {
// light:'github-light',
// dark: 'dracula-soft',
light: 'vitesse-light',
dark: 'vitesse-dark',
},
// lineNumbers: true,
//根据环境变量决定打包路径
// base: process.env.NODE_ENV === 'production' ? '/zerdocs/' : '/',
// lastUpdated: true,
// base:'/',
base: '/zerdocs/',//配置打包获取静态资源路径
outDir: '../dist',
cleanUrls: true, //去掉url中的.html后缀
// srcDir:'./src', //相对于docs
title: "ZerDocs",//网站标题
description: "Front-end learning document collection.",
ignoreDeadLinks: true,//忽略无效链接
markdown: {
theme: {
// light:'github-light',
// dark: 'dracula-soft',
light: 'vitesse-light',
dark: 'vitesse-dark',
},
head: [
['link', { rel: 'icon', type: 'image/svg+xml', href: '/zerdocs/logo.svg' }],
['link', { rel: 'icon', href: '/zerdocs/favicon.ico' }],
],
themeConfig: {
search: {
provider: 'local',
},
outline: 'deep',//侧边栏深度:数字或者deep
outlineTitle: '文章目录',
//TODO
// outlineBadges: true, //侧边栏是否显示标签
logo:'/logo.svg',
// lastUpdatedText: '上次更新',
returnToTopLabel: '返回顶部',
sidebarMenuLabel: '目录',
darkModeSwitchLabel: '主题切换',
footer: {
message: 'Released under the <a href="https://github.com/fxzer/zerdocs/blob/master/LICENSE">MIT License</a>.',
copyright: 'Copyright © 2023-present <a href="https://github.com/fxzer">fxzer</a>.',
},
docFooter: {
prev: '上一页',
next: '下一页'
},
nav: getNavs(),
editLink: {
pattern: "https://github.com/fxzer/zerdocs/edit/master/docs/:path",
},
socialLinks ,
sidebar,

// lineNumbers: true,
},
head: [
['link', { rel: 'icon', type: 'image/svg+xml', href: '/zerdocs/logo.svg' }],
['link', { rel: 'icon', href: '/zerdocs/favicon.ico' }],
],
themeConfig: {
search: {
provider: 'local',
},
outline: 'deep',//侧边栏深度:数字或者deep
outlineTitle: '文章目录',
//TODO
// outlineBadges: true, //侧边栏是否显示标签
logo: '/logo.svg',
// lastUpdatedText: '上次更新',
returnToTopLabel: '返回顶部',
sidebarMenuLabel: '目录',
darkModeSwitchLabel: '主题切换',
footer: {
message: 'Released under the <a href="https://github.com/fxzer/zerdocs/blob/master/LICENSE">MIT License</a>.',
copyright: 'Copyright © 2023-present <a href="https://github.com/fxzer">fxzer</a>.',
},
docFooter: {
prev: '上一页',
next: '下一页'
},
nav: getNavs(),
editLink: {
pattern: "https://github.com/fxzer/zerdocs/edit/master/docs/:path",
},
socialLinks,
sidebar,

},
pwa: {
outDir:'../dist/',
outDir: '../dist/',
manifest: {
name: 'zerdocs',
short_name: 'zerdocs',
theme_color: '#ffffff',
icons: [
{
src: 'pwa-512x512.png',
src: 'pwa-512x512.png',
types: 'img/png',
sizes: '512x512',
purpose: 'any',
},
{
src: 'pwa-192x192.png',
src: 'pwa-192x192.png',
types: 'img/png',
sizes: '192x192',
purpose: 'maskable',
Expand All @@ -84,15 +84,15 @@ export default withPwa(defineConfig({
}
},
sitemap: {
hostname: 'https://fxzer.github.io/zerdocs',
transformItems: (items) => {
// add new items or modify/filter existing items
items.push({
url: '/extra-page',
changefreq: 'monthly',
priority: 0.8
})
return items
}
}
hostname: 'https://fxzer.github.io/zerdocs',
transformItems: (items) => {
// add new items or modify/filter existing items
items.push({
url: '/extra-page',
changefreq: 'monthly',
priority: 0.8
})
return items
}
}
}))
10 changes: 10 additions & 0 deletions docs/FrontEnd/CSS/常用代码段.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,13 @@ import GridStar from './demo/GridStar.vue'
flex: 1; /* 需要给相邻元素添加 */
}
```

## 屏蔽chrome浏览器默认项输入框背景色

```css
/* 屏蔽chrome浏览器默认项输入框背景色: 解决 Element-Plus 样式问题 */
input:-internal-autofill-previewed,
input:-internal-autofill-selected {
transition: background-color 999999999s !important;
}
```

0 comments on commit 063d401

Please sign in to comment.