Skip to content

Commit fc95c99

Browse files
committed
🎉 init: start my vitepress journey
0 parents  commit fc95c99

9 files changed

Lines changed: 1767 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 231 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,231 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/node,visualstudiocode,webstorm+all,macos,linux,windows
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=node,visualstudiocode,webstorm+all,macos,linux,windows
3+
4+
### Linux ###
5+
*~
6+
7+
# temporary files which can be created if a process still has a handle open of a deleted file
8+
.fuse_hidden*
9+
10+
# KDE directory preferences
11+
.directory
12+
13+
# Linux trash folder which might appear on any partition or disk
14+
.Trash-*
15+
16+
# .nfs files are created when an open file is removed but is still being accessed
17+
.nfs*
18+
19+
### macOS ###
20+
# General
21+
.DS_Store
22+
.AppleDouble
23+
.LSOverride
24+
25+
# Icon must end with two \r
26+
Icon
27+
28+
# Thumbnails
29+
._*
30+
31+
# Files that might appear in the root of a volume
32+
.DocumentRevisions-V100
33+
.fseventsd
34+
.Spotlight-V100
35+
.TemporaryItems
36+
.Trashes
37+
.VolumeIcon.icns
38+
.com.apple.timemachine.donotpresent
39+
40+
# Directories potentially created on remote AFP share
41+
.AppleDB
42+
.AppleDesktop
43+
Network Trash Folder
44+
Temporary Items
45+
.apdisk
46+
47+
### macOS Patch ###
48+
# iCloud generated files
49+
*.icloud
50+
51+
### Node ###
52+
# Logs
53+
logs
54+
*.log
55+
npm-debug.log*
56+
yarn-debug.log*
57+
yarn-error.log*
58+
lerna-debug.log*
59+
.pnpm-debug.log*
60+
61+
# Diagnostic reports (https://nodejs.org/api/report.html)
62+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
63+
64+
# Runtime data
65+
pids
66+
*.pid
67+
*.seed
68+
*.pid.lock
69+
70+
# Directory for instrumented libs generated by jscoverage/JSCover
71+
lib-cov
72+
73+
# Coverage directory used by tools like istanbul
74+
coverage
75+
*.lcov
76+
77+
# nyc test coverage
78+
.nyc_output
79+
80+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
81+
.grunt
82+
83+
# Bower dependency directory (https://bower.io/)
84+
bower_components
85+
86+
# node-waf configuration
87+
.lock-wscript
88+
89+
# Compiled binary addons (https://nodejs.org/api/addons.html)
90+
build/Release
91+
92+
# Dependency directories
93+
node_modules/
94+
jspm_packages/
95+
96+
# Snowpack dependency directory (https://snowpack.dev/)
97+
web_modules/
98+
99+
# TypeScript cache
100+
*.tsbuildinfo
101+
102+
# Optional npm cache directory
103+
.npm
104+
105+
# Optional eslint cache
106+
.eslintcache
107+
108+
# Optional stylelint cache
109+
.stylelintcache
110+
111+
# Microbundle cache
112+
.rpt2_cache/
113+
.rts2_cache_cjs/
114+
.rts2_cache_es/
115+
.rts2_cache_umd/
116+
117+
# Optional REPL history
118+
.node_repl_history
119+
120+
# Output of 'npm pack'
121+
*.tgz
122+
123+
# Yarn Integrity file
124+
.yarn-integrity
125+
126+
# dotenv environment variable files
127+
.env
128+
.env.development.local
129+
.env.test.local
130+
.env.production.local
131+
.env.local
132+
133+
# parcel-bundler cache (https://parceljs.org/)
134+
.cache
135+
.parcel-cache
136+
137+
# Next.js build output
138+
.next
139+
out
140+
141+
# Nuxt.js build / generate output
142+
.nuxt
143+
dist
144+
145+
# Gatsby files
146+
.cache/
147+
# Comment in the public line in if your project uses Gatsby and not Next.js
148+
# https://nextjs.org/blog/next-9-1#public-directory-support
149+
# public
150+
151+
# vuepress build output
152+
.vuepress/dist
153+
154+
# vuepress v2.x temp and cache directory
155+
.temp
156+
157+
# Docusaurus cache and generated files
158+
.docusaurus
159+
160+
# Serverless directories
161+
.serverless/
162+
163+
# FuseBox cache
164+
.fusebox/
165+
166+
# DynamoDB Local files
167+
.dynamodb/
168+
169+
# TernJS port file
170+
.tern-port
171+
172+
# Stores VSCode versions used for testing VSCode extensions
173+
.vscode-test
174+
175+
# yarn v2
176+
.yarn/cache
177+
.yarn/unplugged
178+
.yarn/build-state.yml
179+
.yarn/install-state.gz
180+
.pnp.*
181+
182+
### Node Patch ###
183+
# Serverless Webpack directories
184+
.webpack/
185+
186+
# Optional stylelint cache
187+
188+
# SvelteKit build / generate output
189+
.svelte-kit
190+
191+
### VisualStudioCode ###
192+
.vscode/*
193+
!.vscode/settings.json
194+
!.vscode/tasks.json
195+
!.vscode/launch.json
196+
!.vscode/extensions.json
197+
!.vscode/*.code-snippets
198+
199+
# Local History for Visual Studio Code
200+
.history/
201+
202+
# Built Visual Studio Code Extensions
203+
*.vsix
204+
205+
### VisualStudioCode Patch ###
206+
# Ignore all local history of files
207+
.history
208+
.ionide
209+
210+
### WebStorm+all ###
211+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
212+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
213+
214+
# User-specific stuff
215+
.idea/**/workspace.xml
216+
.idea/**/tasks.xml
217+
.idea/**/usage.statistics.xml
218+
.idea/**/dictionaries
219+
.idea/**/shelf
220+
221+
# AWS User-specific
222+
.idea/**/aws.xml
223+
224+
# Generated files
225+
.idea/**/contentModel.xml
226+
227+
# Sensitive or high-churn files
228+
.idea/**/dataSources/
229+
230+
# easterNday's setting
231+
cache/

‎docs/.vitepress/config.mts‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import { defineConfig } from 'vitepress'
2+
3+
// https://vitepress.dev/reference/site-config
4+
export default defineConfig({
5+
title: "Unicom Studio",
6+
description: "Studio for Unicom",
7+
themeConfig: {
8+
// https://vitepress.dev/reference/default-theme-config
9+
nav: [
10+
{ text: 'Home', link: '/' },
11+
{ text: 'Examples', link: '/markdown-examples' }
12+
],
13+
14+
sidebar: [
15+
{
16+
text: 'Examples',
17+
items: [
18+
{ text: 'Markdown Examples', link: '/markdown-examples' },
19+
{ text: 'Runtime API Examples', link: '/api-examples' }
20+
]
21+
}
22+
],
23+
24+
socialLinks: [
25+
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }
26+
]
27+
}
28+
})
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// https://vitepress.dev/guide/custom-theme
2+
import { h } from 'vue'
3+
import type { Theme } from 'vitepress'
4+
import DefaultTheme from 'vitepress/theme'
5+
import './style.css'
6+
7+
export default {
8+
extends: DefaultTheme,
9+
Layout: () => {
10+
return h(DefaultTheme.Layout, null, {
11+
// https://vitepress.dev/guide/extending-default-theme#layout-slots
12+
})
13+
},
14+
enhanceApp({ app, router, siteData }) {
15+
// ...
16+
}
17+
} satisfies Theme

0 commit comments

Comments
 (0)