Skip to content

Commit c32272e

Browse files
authored
chore(typos): fix typos (#102)
Co-authored-by: stavares843 <[email protected]>
1 parent 5cffe3b commit c32272e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.vitepress/theme/components/Tweet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
A simple wrapper for embeded Tweet
2+
A simple wrapper for embedded Tweet
33
44
Usage:
55

.vitepress/theme/support/sideBar.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
isArray,
44
ensureSlash,
55
ensureStartingSlash,
6-
removeExtention,
6+
removeExtension,
77
} from '../utils'
88

99
export function isSideBarConfig(
@@ -33,7 +33,7 @@ export function getSideBarConfig(
3333

3434
// get the very first segment of the path to compare with nulti sidebar keys
3535
// and make sure it's surrounded by slash
36-
path = removeExtention(path)
36+
path = removeExtension(path)
3737
path = ensureStartingSlash(path).split('/')[1] || '/'
3838
path = ensureSlash(path)
3939

@@ -57,7 +57,7 @@ export function getFlatSideBarLinks(
5757
): DefaultTheme.SideBarLink[] {
5858
return sidebar.reduce<DefaultTheme.SideBarLink[]>((links, item) => {
5959
if (item.link)
60-
links.push({ text: item.text, link: removeExtention(item.link) })
60+
links.push({ text: item.text, link: removeExtension(item.link) })
6161

6262
if (isSideBarGroup(item))
6363
links = [...links, ...getFlatSideBarLinks(item.children)]

.vitepress/theme/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ export function ensureEndingSlash(path: string): string {
6969
}
7070

7171
/**
72-
* Remove `.md` or `.html` extention from the given path. It also converts
72+
* Remove `.md` or `.html` extension from the given path. It also converts
7373
* `index` to slush.
7474
*/
75-
export function removeExtention(path: string): string {
75+
export function removeExtension(path: string): string {
7676
return path.replace(/(index)?(\.(md|html))?$/, '') || '/'
7777
}

0 commit comments

Comments
 (0)