Skip to content

Commit

Permalink
fix: fix code theme & format some code
Browse files Browse the repository at this point in the history
  • Loading branch information
Renovamen committed Feb 26, 2021
1 parent 38bc90c commit cecf854
Show file tree
Hide file tree
Showing 24 changed files with 479 additions and 479 deletions.
105 changes: 53 additions & 52 deletions example/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,39 @@ module.exports = {
title: "vuepress-theme-gungnir",
description: "Renovamen's blog, also VuePress theme Gungnir.",
head: [
["link", { rel: "icon", href: "/img/logo.svg"}],
["meta", { name: "viewport", content: "width=device-width,initial-scale=1,user-scalable=no"}]
["link", { rel: "icon", href: "/img/logo.svg" }],
["meta", { name: "viewport", content: "width=device-width,initial-scale=1,user-scalable=no" }]
],
theme: 'gungnir',
theme: "gungnir",
locales: {
'/': {
lang: 'en-US'
"/": {
lang: "en-US"
},
'/zh/': {
lang: 'zh-CN'
"/zh/": {
lang: "zh-CN"
}
},
themeConfig: {
repo: 'Renovamen/vuepress-theme-gungnir',
docsDir: 'example',
repo: "Renovamen/vuepress-theme-gungnir",
docsDir: "example",
editLinks: true,
lastUpdated: true,
hitokoto: true, // enable hitokoto (一言) or not?
codeTheme: 'gungnir-dark',
hitokoto: true, // enable hitokoto (一言) or not?
codeTheme: "gungnir-dark",
rss: {
site_url: 'https://vuepress-theme-gungnir.vercel.app',
copyright: 'Renovamen 2018-2021',
site_url: "https://vuepress-theme-gungnir.vercel.app",
copyright: "Renovamen 2018-2021",
count: 20
},
comment: {
owner: 'This-is-an-Apple',
repo: 'gitalk-comments',
clientId: 'd6247712dc288a5a60ca',
clientSecret: 'ed1ec72417828343c79ed910a1b77d140fa715a7'
owner: "This-is-an-Apple",
repo: "gitalk-comments",
clientId: "d6247712dc288a5a60ca",
clientSecret: "ed1ec72417828343c79ed910a1b77d140fa715a7"
},
analytics: {
ga: 'UA-146858305-4',
ba: '0958eaa31f4f4656f36bd33673332939'
ga: "UA-146858305-4",
ba: "0958eaa31f4f4656f36bd33673332939"
},
katex: true,
mermaid: true,
Expand All @@ -44,63 +44,64 @@ module.exports = {
all: true
},
locales: {
'/': {
label: 'English',
selectText: 'Languages',
nav: require('./configs/nav/en'),
sidebar: require('./configs/sidebar/en')
"/": {
label: "English",
selectText: "Languages",
nav: require("./configs/nav/en"),
sidebar: require("./configs/sidebar/en")
},
'/zh/': {
label: '简体中文',
selectText: '选择语言',
nav: require('./configs/nav/zh'),
sidebar: require('./configs/sidebar/zh')
"/zh/": {
label: "简体中文",
selectText: "选择语言",
nav: require("./configs/nav/zh"),
sidebar: require("./configs/sidebar/zh")
}
},
personalInfo: {
name: "Gungnir",
avatar: "/img/avatar.jpeg",
description: 'A blog theme for VuePress.',
description: "A blog theme for VuePress.",
sns: {
"github": "Renovamen",
"linkedin": "xiaohan-zou-55bba0160",
"facebook": "renovamen.zou",
"twitter": "renovamen_zxh",
"zhihu": "chao-neng-gui-su",
"email": "renovamenzxh@gmail.com",
github: "Renovamen",
linkedin: "xiaohan-zou-55bba0160",
facebook: "renovamen.zou",
twitter: "renovamen_zxh",
zhihu: "chao-neng-gui-su",
email: "renovamenzxh@gmail.com"
}
},
homeHeaderImages: [
{
"path": "/img/home-bg/1.jpg",
"mask": "rgba(40, 57, 101, .4)"
path: "/img/home-bg/1.jpg",
mask: "rgba(40, 57, 101, .4)"
},
{
"path": "/img/home-bg/2.jpg",
"mask": "rgb(251, 170, 152, .2)"
path: "/img/home-bg/2.jpg",
mask: "rgb(251, 170, 152, .2)"
},
{
"path": "/img/home-bg/3.jpg",
"mask": "rgba(68, 74, 83, .1)"
path: "/img/home-bg/3.jpg",
mask: "rgba(68, 74, 83, .1)"
},
{
"path": "/img/home-bg/4.jpg",
"mask": "rgba(19, 75, 50, .2)"
path: "/img/home-bg/4.jpg",
mask: "rgba(19, 75, 50, .2)"
}
],
pages: {
tags: {
subtitle: 'Black Sheep Wall',
subtitle: "Black Sheep Wall",
bgImage: {
path: '/img/pages/tags.jpg',
mask: 'rgba(211, 136, 37, .5)'
path: "/img/pages/tags.jpg",
mask: "rgba(211, 136, 37, .5)"
}
},
links: {
subtitle: 'When you are looking at the stars, please put the brightest star shining night sky as my soul.',
subtitle:
"When you are looking at the stars, please put the brightest star shining night sky as my soul.",
bgImage: {
path: '/img/pages/links.jpg',
mask: 'rgba(64, 118, 190, 0.5)'
path: "/img/pages/links.jpg",
mask: "rgba(64, 118, 190, 0.5)"
}
}
},
Expand All @@ -113,6 +114,6 @@ module.exports = {
},
markdown: {
// lineNumbers: true,
extractHeaders: [ 'h2', 'h3', 'h4', 'h5' ]
extractHeaders: ["h2", "h3", "h4", "h5"]
}
}
};
42 changes: 21 additions & 21 deletions example/.vuepress/configs/nav/en.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
module.exports = [
{
text: 'Home',
link: '/',
icon: 'fa-fort-awesome'
text: "Home",
link: "/",
icon: "fa-fort-awesome"
},
{
text: 'Tags',
link: '/tags/',
icon: 'fa-tag'
text: "Tags",
link: "/tags/",
icon: "fa-tag"
},
{
text: 'Links',
link: '/links/',
icon: 'fa-satellite-dish'
text: "Links",
link: "/links/",
icon: "fa-satellite-dish"
},
{
text: 'Docs',
link: '/docs/',
icon: 'fa-book'
text: "Docs",
link: "/docs/",
icon: "fa-book"
},
{
text: 'v0.1.4',
icon: 'fa-github',
text: "v0.1.4",
icon: "fa-github",
items: [
{
text: 'Repository',
link: 'https://github.com/Renovamen/vuepress-theme-gungnir',
icon: 'oi-repo'
text: "Repository",
link: "https://github.com/Renovamen/vuepress-theme-gungnir",
icon: "oi-repo"
},
{
text: 'Changelog',
link: 'https://github.com/Renovamen/vuepress-theme-gungnir/blob/main/CHANGELOG.md',
icon: 'oi-git-compare'
text: "Changelog",
link: "https://github.com/Renovamen/vuepress-theme-gungnir/blob/main/CHANGELOG.md",
icon: "oi-git-compare"
}
]
}
]
];
42 changes: 21 additions & 21 deletions example/.vuepress/configs/nav/zh.js
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
module.exports = [
{
text: '首页',
link: '/',
icon: 'fa-fort-awesome'
text: "首页",
link: "/",
icon: "fa-fort-awesome"
},
{
text: '标签',
link: '/tags/',
icon: 'fa-tag'
text: "标签",
link: "/tags/",
icon: "fa-tag"
},
{
text: '链接',
link: '/links/',
icon: 'fa-satellite-dish'
text: "链接",
link: "/links/",
icon: "fa-satellite-dish"
},
{
text: '文档',
link: '/zh/docs/',
icon: 'fa-book'
text: "文档",
link: "/zh/docs/",
icon: "fa-book"
},
{
text: 'v0.1.4',
icon: 'fa-github',
text: "v0.1.4",
icon: "fa-github",
items: [
{
text: '仓库地址',
link: 'https://github.com/Renovamen/vuepress-theme-gungnir',
icon: 'oi-repo'
text: "仓库地址",
link: "https://github.com/Renovamen/vuepress-theme-gungnir",
icon: "oi-repo"
},
{
text: '更新日志',
link: 'https://github.com/Renovamen/vuepress-theme-gungnir/blob/main/CHANGELOG.md',
icon: 'oi-git-compare'
text: "更新日志",
link: "https://github.com/Renovamen/vuepress-theme-gungnir/blob/main/CHANGELOG.md",
icon: "oi-git-compare"
}
]
}
]
];
12 changes: 6 additions & 6 deletions example/.vuepress/configs/sidebar/en.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = {
"/docs/": [
{
title: 'Basic',
title: "Basic",
collapsable: false,
children: [
'',
'basic/installation',
'basic/config'
],
"",
"basic/installation",
"basic/config"
]
}
]
}
};
12 changes: 6 additions & 6 deletions example/.vuepress/configs/sidebar/zh.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
module.exports = {
"/zh/docs/": [
{
title: '基础',
title: "基础",
collapsable: false,
children: [
'',
'basic/installation',
'basic/config'
],
"",
"basic/installation",
"basic/config"
]
}
]
}
};
6 changes: 3 additions & 3 deletions example/.vuepress/enhanceApp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import VueIcon from 'oh-vue-icons/components/Icon'
import VueIcon from "oh-vue-icons/components/Icon";
import {
FaFortAwesome,
FaTag,
Expand All @@ -7,7 +7,7 @@ import {
FaGithub,
OiRepo,
OiGitCompare
} from 'oh-vue-icons/icons'
} from "oh-vue-icons/icons";

VueIcon.add([
FaFortAwesome,
Expand All @@ -17,4 +17,4 @@ VueIcon.add([
FaGithub,
OiRepo,
OiGitCompare
])
]);
12 changes: 0 additions & 12 deletions example/.vuepress/public/highlight/gungnir-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ pre code, pre[class*="language-"] code {
color: #fff;
}

/* :not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #282c34;
} */

/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}

.token.comment,
.token.block-comment,
.token.prolog,
Expand Down
2 changes: 1 addition & 1 deletion example/.vuepress/styles/palette.styl
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$codeBgColor = #282c34
$codeHighlightLineColor = rgba(0, 0, 0, 66%)
$codeHighlightLineColor = rgba(0, 0, 0, 66%)

1 comment on commit cecf854

@vercel
Copy link

@vercel vercel bot commented on cecf854 Feb 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.