Skip to content

Commit d90cee2

Browse files
committed
docs(en): merging all conflicts
2 parents 7feeaa2 + 9cb6406 commit d90cee2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2859
-1258
lines changed

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
shamefully-hoist=true
2+
strict-peer-dependencies=false

.vitepress/config.js

+46-1
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,14 @@ const Guide = [
4646
link: '/guide/presenter-mode',
4747
},
4848
{
49+
<<<<<<< HEAD
4950
<<<<<<< HEAD
5051
text: 'Tích hợp trình soạn thảo',
5152
=======
5253
text: 'Drawing & Annonations',
54+
=======
55+
text: 'Drawing & Annotations',
56+
>>>>>>> 9cb6406db9a1c6f2173bfecb05a29ede60989b99
5357
link: '/guide/drawing',
5458
},
5559
{
@@ -78,6 +82,17 @@ const Theme = [
7882
},
7983
]
8084

85+
const Addon = [
86+
{
87+
text: 'Use Addon',
88+
link: '/addons/use',
89+
},
90+
{
91+
text: 'Write an Addon',
92+
link: '/addons/write-an-addon',
93+
},
94+
]
95+
8196
const Translations = [
8297
{
8398
text: 'Việt Nam'
@@ -118,6 +133,10 @@ const Translations = [
118133
text: 'Ελληνικά',
119134
link: 'https://el.sli.dev{{pathname}}',
120135
},
136+
{
137+
text: '日本語',
138+
link: 'https://ja.sli.dev{{pathname}}',
139+
},
121140
]
122141

123142
const Customizations = [
@@ -162,7 +181,15 @@ const Customizations = [
162181
link: '/custom/config-mermaid',
163182
},
164183
{
184+
<<<<<<< HEAD
165185
text: 'Cấu hình Phím tắt',
186+
=======
187+
text: 'Configure Parser',
188+
link: '/custom/config-parser',
189+
},
190+
{
191+
text: 'Configure Shortcuts',
192+
>>>>>>> 9cb6406db9a1c6f2173bfecb05a29ede60989b99
166193
link: '/custom/config-shortcuts',
167194
},
168195
{
@@ -204,7 +231,15 @@ const slidebars = [
204231
children: Theme,
205232
},
206233
{
234+
<<<<<<< HEAD
207235
text: 'Các tùy chỉnh',
236+
=======
237+
text: 'Addons',
238+
children: Addon,
239+
},
240+
{
241+
text: 'Customizations',
242+
>>>>>>> 9cb6406db9a1c6f2173bfecb05a29ede60989b99
208243
children: Customizations,
209244
},
210245
{
@@ -249,7 +284,8 @@ module.exports = {
249284
editLinkText: 'Đề xuất các thay đổi cho trang này',
250285

251286
algolia: {
252-
apiKey: '1a5c5a504139c58f428974c78c55291d',
287+
appId: 'LCBV6MIFS6',
288+
apiKey: '1ff173fe73b20edc962c1c24c0b1c160',
253289
indexName: 'slidev',
254290
searchParameters: {
255291
// for translations maintainers: change the filter to your locale code (subdomain name)
@@ -267,7 +303,15 @@ module.exports = {
267303
items: Theme,
268304
},
269305
{
306+
<<<<<<< HEAD
270307
text: 'Tùy chỉnh',
308+
=======
309+
text: 'Addon',
310+
items: Addon,
311+
},
312+
{
313+
text: 'Customize',
314+
>>>>>>> 9cb6406db9a1c6f2173bfecb05a29ede60989b99
271315
items: Customizations,
272316
},
273317
{
@@ -283,6 +327,7 @@ module.exports = {
283327
sidebar: {
284328
'/guide/': slidebars,
285329
'/themes/': slidebars,
330+
'/addons/': slidebars,
286331
'/custom/': slidebars,
287332
'/builtin/': slidebars,
288333
'/resources/': slidebars,

.vitepress/showcases.ts

+70
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,76 @@ export const showcases: ShowCaseInfo[] = [
108108
at: 'Thoughtworks Internal Lunch & Learn',
109109
datetime: '2021-11-12',
110110
},
111+
{
112+
title: 'Git\'s Most Wanted',
113+
cover: 'https://cdn.jsdelivr.net/gh/alexanderdavide/git-most-wanted@assets/slides-export/01.png',
114+
author: {
115+
name: 'Alexander Eble',
116+
link: 'https://github.com./alexanderdavide',
117+
},
118+
slidesLink: 'https://alexeble.de/talks/git-most-wanted/',
119+
sourceLink: 'https://github.com./alexanderdavide/git-most-wanted',
120+
at: 'Internal Tech Talk',
121+
datetime: '2022-03-11',
122+
},
123+
{
124+
title: 'OpenFunction 202',
125+
cover: 'https://s2.loli.net/2022/05/22/4zsCnkQRFoAU1E5.png',
126+
author: {
127+
name: 'Haili Zhang',
128+
link: 'https://github.com./webup',
129+
},
130+
slidesLink: 'https://openfunction-talks.netlify.app/2022/202-node-async/',
131+
sourceLink: 'https://github.com./webup/openfunction-talks/tree/main/202-node-async',
132+
at: 'OpenFunction Tutorial Sharing',
133+
datetime: '2022-05-08',
134+
},
135+
{
136+
title: 'Is it Okay to Pursue Functional Programming on Frontend?',
137+
author: {
138+
name: 'Minsu Kim , Changhui Lee',
139+
},
140+
at: '2022 JSConf Korea',
141+
slidesLink: 'https://moonlit-nougat-422445.netlify.app/1',
142+
sourceLink: 'https://github.com./alstn2468/2022-jsconf-presentation',
143+
cover: 'https://raw.githubusercontent.com/alstn2468/2022-jsconf-presentation/main/public/images/og.png',
144+
datetime: '2022-09-16',
145+
},
146+
{
147+
title: 'Blazing slidev ppt template with naive-ui',
148+
author: {
149+
name: 'godkun',
150+
},
151+
at: 'personal sharing',
152+
slidesLink: 'https://ppt.godkun.top',
153+
sourceLink: 'https://github.com./godkun/ppt-template',
154+
cover: 'https://github.com./godkun/ppt-template/raw/main/public/show.gif',
155+
datetime: '2022-10-24',
156+
},
157+
{
158+
title: 'Building a Polite Popup with Nuxt 3',
159+
author: {
160+
name: 'Michael Hoffmann',
161+
link: 'https://github.com./mokkapps',
162+
},
163+
at: 'Vue.js Nation 2023',
164+
slidesLink: 'https://vuejsnation-2023-talk-polite-popup.netlify.app',
165+
sourceLink: 'https://github.com./Mokkapps/vuejsnation-2023-lightning-talk-polite-popup-nuxt-3-slides',
166+
cover: 'https://raw.githubusercontent.com/Mokkapps/vuejsnation-2023-lightning-talk-polite-popup-nuxt-3-slides/main/screenshots/001.png',
167+
datetime: '2023-01-25',
168+
},
169+
{
170+
title: 'Dev Environment as Code',
171+
cover: 'https://cdn.jsdelivr.net/gh/alexanderdavide/dev-environment-as-code@assets/slides-export/001.png',
172+
author: {
173+
name: 'Alexander Eble',
174+
link: 'https://github.com./alexanderdavide',
175+
},
176+
slidesLink: 'https://alexeble.de/talks/dev-environment-as-code/',
177+
sourceLink: 'https://github.com./alexanderdavide/dev-environment-as-code',
178+
at: 'Internal Tech Talk',
179+
datetime: '2022-12-01',
180+
},
111181
// Add yours here!
112182
{
113183
title: 'Yours?',

.vitepress/theme/Layout.vue

+6-9
Original file line numberDiff line numberDiff line change
@@ -50,19 +50,17 @@
5050

5151
<!-- <Debug /> -->
5252

53-
<ClientOnly>
53+
<!-- <ClientOnly>
5454
<WorkingInProgress />
55-
</ClientOnly>
55+
</ClientOnly> -->
5656
</template>
5757

5858
<script setup lang="ts">
5959
import { ref, computed, watch, defineAsyncComponent } from 'vue'
6060
import {
6161
useRoute,
62-
useSiteData,
63-
useSiteDataByRoute,
62+
useData,
6463
} from 'vitepress'
65-
import type { DefaultTheme } from './config'
6664
6765
// components
6866
import NavBar from './components/NavBar.vue'
@@ -72,8 +70,7 @@ const Home = defineAsyncComponent(() => import('./components/Home.vue'))
7270
7371
// generic state
7472
const route = useRoute()
75-
const siteData = useSiteData<DefaultTheme.Config>()
76-
const siteRouteData = useSiteDataByRoute()
73+
const {site: siteData} = useData()
7774
const theme = computed(() => siteData.value.themeConfig)
7875
7976
const AlgoliaSearchBox = defineAsyncComponent(
@@ -87,7 +84,7 @@ const enableHome = computed(() => !!route.data.frontmatter.home)
8784
8885
// navbar
8986
const showNavbar = computed(() => {
90-
const { themeConfig } = siteRouteData.value
87+
const { themeConfig } = siteData.value
9188
const { frontmatter } = route.data
9289
if (frontmatter.navbar === false || themeConfig.navbar === false)
9390
return false
@@ -107,7 +104,7 @@ const openSideBar = ref(false)
107104
108105
const showSidebar = computed(() => {
109106
const { frontmatter } = route.data
110-
const { themeConfig } = siteRouteData.value
107+
const { themeConfig } = siteData.value
111108
return (
112109
!frontmatter.home
113110
&& frontmatter.sidebar !== false

.vitepress/theme/NotFound.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22
<div class="theme">
33
<h1>404</h1>
44
<blockquote>{{ getMsg() }}</blockquote>
5-
<a :href="$site.base" aria-label="go to home">Take me home.</a>
5+
<a :href="site.base" aria-label="go to home">Take me home.</a>
66
</div>
77
</template>
88

99
<script setup lang="ts">
10+
import { useData } from 'vitepress';
11+
12+
const {site} = useData()
1013
const msgs = [
1114
'There\'s nothing here.',
1215
'How did we get here?',

0 commit comments

Comments
 (0)