Skip to content

Commit

Permalink
feat: change vitepress config.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
fanyushun committed Jul 19, 2024
1 parent 36b7f6e commit 1ab9b10
Show file tree
Hide file tree
Showing 9 changed files with 83 additions and 10 deletions.
77 changes: 75 additions & 2 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,21 @@ export default defineConfig({
title: "conversion-library",
description: "conversion-library",
base,
lastUpdated: true,
markdown: {
lineNumbers: true
},
sitemap: {
hostname: 'https://fxss5201.github.io',
transformItems: (items) => {
return items.map(item => {
return {
...item,
url: base + item.url
}
})
}
},
locales: {
root: {
label: 'English',
Expand All @@ -31,6 +46,51 @@ export default defineConfig({
items: typedocZhSidebar,
},
],
returnToTopLabel: '返回顶部',

socialLinks: [
{ icon: 'github', link: 'https://github.com/fxss5201/conversion-library' },
],

editLink: {
pattern: 'https://github.com/fxss5201/conversion-library/edit/main/docs/:path',
text: '在 GitHub 上编辑此页',
},

lastUpdated: {
text: '最后更新于',
},

docFooter: {
prev: '上一页',
next: '下一页'
},

footer: {
message: 'Released under the <a href="https://github.com/fxss5201/conversion-library/blob/main/LICENSE">MIT License</a>.',
copyright: 'Copyright © 2024-present <a href="https://github.com/fxss5201">fxss5201</a>',
},

search: {
provider: 'local',
options: {
translations: {
button: {
buttonText: '搜索文档',
buttonAriaLabel: '搜索文档'
},
modal: {
noResultsText: '无法找到相关结果',
resetButtonTitle: '清除查询条件',
footer: {
selectText: '选择',
navigateText: '切换',
closeText: '关闭',
}
}
}
},
},
}
}
},
Expand All @@ -50,7 +110,20 @@ export default defineConfig({
],

socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
]
{ icon: 'github', link: 'https://github.com/fxss5201/conversion-library' },
],

editLink: {
pattern: 'https://github.com/fxss5201/conversion-library/edit/main/docs/:path',
},

footer: {
message: 'Released under the <a href="https://github.com/fxss5201/conversion-library/blob/main/LICENSE">MIT License</a>.',
copyright: 'Copyright © 2024-present <a href="https://github.com/fxss5201">fxss5201</a>',
},

search: {
provider: 'local',
}
}
})
2 changes: 1 addition & 1 deletion docs/api/functions/binaryToDecimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ binaryToDecimal('1010') // 10

## Defined in

[decimalAndBinary.ts:42](https://github.com/fxss5201/conversion-library/blob/9af897b733f816386974ba9caeb48523af77dce3/lib/decimal-conversion/decimalAndBinary.ts#L42)
[decimalAndBinary.ts:42](https://github.com/fxss5201/conversion-library/blob/36b7f6e03c331c9a7b909e428a7e604c93f92f63/lib/decimal-conversion/decimalAndBinary.ts#L42)
2 changes: 1 addition & 1 deletion docs/api/functions/decimalToBinary.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ decimalToBinary(10) // '1010'

## Defined in

[decimalAndBinary.ts:16](https://github.com/fxss5201/conversion-library/blob/9af897b733f816386974ba9caeb48523af77dce3/lib/decimal-conversion/decimalAndBinary.ts#L16)
[decimalAndBinary.ts:16](https://github.com/fxss5201/conversion-library/blob/36b7f6e03c331c9a7b909e428a7e604c93f92f63/lib/decimal-conversion/decimalAndBinary.ts#L16)
2 changes: 1 addition & 1 deletion docs/api/functions/decimalToOtherBase.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ decimalToOtherBase(10, 2) // '1010'

## Defined in

[decimalAndOtherBase.ts:19](https://github.com/fxss5201/conversion-library/blob/9af897b733f816386974ba9caeb48523af77dce3/lib/decimal-conversion/decimalAndOtherBase.ts#L19)
[decimalAndOtherBase.ts:19](https://github.com/fxss5201/conversion-library/blob/36b7f6e03c331c9a7b909e428a7e604c93f92f63/lib/decimal-conversion/decimalAndOtherBase.ts#L19)
2 changes: 1 addition & 1 deletion docs/api/functions/otherBaseToDecimal.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ decimalToOtherBase('1010', 2) // 10

## Defined in

[decimalAndOtherBase.ts:64](https://github.com/fxss5201/conversion-library/blob/9af897b733f816386974ba9caeb48523af77dce3/lib/decimal-conversion/decimalAndOtherBase.ts#L64)
[decimalAndOtherBase.ts:64](https://github.com/fxss5201/conversion-library/blob/36b7f6e03c331c9a7b909e428a7e604c93f92f63/lib/decimal-conversion/decimalAndOtherBase.ts#L64)
2 changes: 1 addition & 1 deletion docs/api/functions/otherToTen.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ decimalToOtherBase('1010', 2) // 10

## Defined in

[decimalAndOtherBase.ts:93](https://github.com/fxss5201/conversion-library/blob/9af897b733f816386974ba9caeb48523af77dce3/lib/decimal-conversion/decimalAndOtherBase.ts#L93)
[decimalAndOtherBase.ts:93](https://github.com/fxss5201/conversion-library/blob/36b7f6e03c331c9a7b909e428a7e604c93f92f63/lib/decimal-conversion/decimalAndOtherBase.ts#L93)
2 changes: 1 addition & 1 deletion docs/api/functions/tenToOther.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ decimalToOtherBase(10, 2) // '1010'

## Defined in

[decimalAndOtherBase.ts:46](https://github.com/fxss5201/conversion-library/blob/9af897b733f816386974ba9caeb48523af77dce3/lib/decimal-conversion/decimalAndOtherBase.ts#L46)
[decimalAndOtherBase.ts:46](https://github.com/fxss5201/conversion-library/blob/36b7f6e03c331c9a7b909e428a7e604c93f92f63/lib/decimal-conversion/decimalAndOtherBase.ts#L46)
2 changes: 1 addition & 1 deletion docs/api/functions/tenToTwo.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ decimalToBinary(10) // '1010'

## Defined in

[decimalAndBinary.ts:25](https://github.com/fxss5201/conversion-library/blob/9af897b733f816386974ba9caeb48523af77dce3/lib/decimal-conversion/decimalAndBinary.ts#L25)
[decimalAndBinary.ts:25](https://github.com/fxss5201/conversion-library/blob/36b7f6e03c331c9a7b909e428a7e604c93f92f63/lib/decimal-conversion/decimalAndBinary.ts#L25)
2 changes: 1 addition & 1 deletion docs/api/functions/twoToTen.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ binaryToDecimal('1010') // 10

## Defined in

[decimalAndBinary.ts:52](https://github.com/fxss5201/conversion-library/blob/9af897b733f816386974ba9caeb48523af77dce3/lib/decimal-conversion/decimalAndBinary.ts#L52)
[decimalAndBinary.ts:52](https://github.com/fxss5201/conversion-library/blob/36b7f6e03c331c9a7b909e428a7e604c93f92f63/lib/decimal-conversion/decimalAndBinary.ts#L52)

0 comments on commit 1ab9b10

Please # to comment.