-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(vitepress): edit vitepress cli
- Loading branch information
1 parent
0d9332c
commit 4d863ed
Showing
8 changed files
with
52 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/vitepress/src/node/cli/files/.vitepress/config/constant.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export const TITLE = 'Ephemeras' | ||
export const DESCRIPTION = 'Make development easier and more efficient' | ||
export const TITLE = '{{ title }}' | ||
export const DESCRIPTION = '{{ slogan }}' | ||
|
||
export const GITHUB_URL = 'https://github.com/Kythuen/ephemeras' | ||
export const OG_URL = 'https://kythuen.github.io/ephemeras' | ||
export const GITHUB_URL = 'https://github.com/{{ user }}/{{ repo }}' | ||
export const OG_URL = 'https://{{ user | lower }}.github.io/{{ repo }}' | ||
export const OG_IMAGE = `${OG_URL}/logo.png` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 3 additions & 37 deletions
40
packages/vitepress/src/node/cli/files/.vitepress/config/routes/en.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,11 @@ | ||
import type { DefaultTheme } from 'vitepress' | ||
|
||
const SidebarGuides: DefaultTheme.NavItemWithLink[] = [ | ||
{ text: 'Getting Started', link: '/guide' }, | ||
{ text: 'Overview', link: '/guide/overview' }, | ||
{ text: 'Colors', link: '/guide/colors' } | ||
] | ||
|
||
const SidebarPackages: DefaultTheme.NavItemWithLink[] = [ | ||
{ text: 'Linter', link: '/linter/' }, | ||
{ text: 'Compiler', link: '/compiler/' }, | ||
{ text: 'File', link: '/file/' }, | ||
{ text: 'File System', link: '/fs/' }, | ||
{ text: 'Profile', link: '/profile/' }, | ||
{ text: 'Utils', link: '/utils/' } | ||
] | ||
|
||
const SidebarFS = [ | ||
{ text: 'Getting Started', link: '/fs/guide' }, | ||
{ text: 'Functions', link: '/fs/functions' } | ||
] | ||
|
||
const SidebarTP = [ | ||
{ text: 'Getting Started', link: '/parser/guide' }, | ||
{ text: 'Plugins', link: '/parser/plugins' }, | ||
{ text: 'Types', link: '/parser/types' } | ||
{ text: 'Getting Started', link: '/guide' } | ||
] | ||
|
||
export const SIDEBAR: Record<string, DefaultTheme.SidebarItem[]> = { | ||
'/guide': [{ text: 'Packages', items: SidebarGuides }], | ||
'/packages/': [{ text: 'Packages', items: SidebarPackages }], | ||
'/fs/': [ | ||
{ text: 'Guides', items: SidebarFS }, | ||
{ text: 'Packages', items: SidebarPackages } | ||
], | ||
'/parser/': [ | ||
{ text: 'Guides', items: SidebarTP }, | ||
{ text: 'Packages', items: SidebarPackages } | ||
] | ||
'/guide': [{ text: 'Guide', items: SidebarGuides }] | ||
} | ||
|
||
export const NAV = [ | ||
{ text: 'Guide', link: '/guide' }, | ||
{ text: 'Packages', link: '/packages' } | ||
] | ||
export const NAV = [{ text: 'Guide', link: '/guide' }] |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters