Skip to content

Commit b386237

Browse files
committed
docs(en): merging all conflicts
2 parents 7949917 + 8b430ee commit b386237

Some content is hidden

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

56 files changed

+2237
-1121
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
shamefully-hoist=true
2+
strict-peer-dependencies=false

.vitepress/config.js

Lines changed: 36 additions & 0 deletions
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: 'Intégrations de l\'éditeur',
5152
=======
5253
text: 'Drawing & Annonations',
54+
=======
55+
text: 'Drawing & Annotations',
56+
>>>>>>> 8b430eefeed2277fc07f273ce000804365333b56
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: 'Français',
@@ -114,6 +129,10 @@ const Translations = [
114129
text: 'Ελληνικά',
115130
link: 'https://el.sli.dev{{pathname}}',
116131
},
132+
{
133+
text: '日本語',
134+
link: 'https://ja.sli.dev{{pathname}}',
135+
},
117136
]
118137

119138
const Customizations = [
@@ -196,7 +215,15 @@ const slidebars = [
196215
children: Theme,
197216
},
198217
{
218+
<<<<<<< HEAD
199219
text: 'Personnalisations',
220+
=======
221+
text: 'Addons',
222+
children: Addon,
223+
},
224+
{
225+
text: 'Customizations',
226+
>>>>>>> 8b430eefeed2277fc07f273ce000804365333b56
200227
children: Customizations,
201228
},
202229
{
@@ -259,7 +286,15 @@ module.exports = {
259286
items: Theme,
260287
},
261288
{
289+
<<<<<<< HEAD
262290
text: 'Personnaliser',
291+
=======
292+
text: 'Addon',
293+
items: Addon,
294+
},
295+
{
296+
text: 'Customize',
297+
>>>>>>> 8b430eefeed2277fc07f273ce000804365333b56
263298
items: Customizations,
264299
},
265300
{
@@ -275,6 +310,7 @@ module.exports = {
275310
sidebar: {
276311
'/guide/': slidebars,
277312
'/themes/': slidebars,
313+
'/addons/': slidebars,
278314
'/custom/': slidebars,
279315
'/builtin/': slidebars,
280316
'/resources/': slidebars,

.vitepress/showcases.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,30 @@ 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://git-most-wanted.alex-eble.de',
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+
},
111135
// Add yours here!
112136
{
113137
title: 'Yours?',

.vitepress/theme/Layout.vue

Lines changed: 6 additions & 9 deletions
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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,18 @@
22
<div class="theme">
33
<h1>404</h1>
44
<blockquote>{{ getMsg() }}</blockquote>
5+
<<<<<<< HEAD
56
<a :href="$site.base" aria-label="go to home">Retournez à l'accueil</a>
7+
=======
8+
<a :href="site.base" aria-label="go to home">Take me home.</a>
9+
>>>>>>> 8b430eefeed2277fc07f273ce000804365333b56
610
</div>
711
</template>
812

913
<script setup lang="ts">
14+
import { useData } from 'vitepress';
15+
16+
const {site} = useData()
1017
const msgs = [
1118
'Il n\'y a rien par ici.',
1219
'Comment sommes-nous arrivé ici ?',

.vitepress/theme/components/AlgoliaSearchBox.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<script setup lang="ts">
66
import '@docsearch/css'
77
import { useRoute, useRouter } from 'vitepress'
8-
import { defineProps, getCurrentInstance, onMounted, watch } from 'vue'
8+
import { getCurrentInstance, onMounted, watch } from 'vue'
99
import docsearch from '@docsearch/js'
1010
import type { DocSearchHit } from '@docsearch/react/dist/esm/types'
1111
import type { DefaultTheme } from '../config'

.vitepress/theme/components/BooleanDisplay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { ref, defineProps } from 'vue'
2+
import { ref } from 'vue'
33
44
const props = defineProps({
55
value: {

.vitepress/theme/components/Environment.vue

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
<script setup lang="ts">
2-
import { defineProps } from 'vue'
3-
42
defineProps<{ type: 'node' | 'client' }>()
53
</script>
64

.vitepress/theme/components/HomeFeatures.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919

2020
<script setup lang="ts">
2121
import { computed } from 'vue'
22-
import { useFrontmatter } from 'vitepress'
22+
import { useData } from 'vitepress'
2323
24-
const data = useFrontmatter()
24+
const {frontmatter} = useData()
2525
2626
const hasFeatures = computed(() => {
27-
return data.value.features && data.value.features.length > 0
27+
return frontmatter.value.features && frontmatter.value.features.length > 0
2828
})
2929
3030
const features = computed(() => {
31-
return data.value.features ? data.value.features : []
31+
return frontmatter.value.features ? frontmatter.value.features : []
3232
})
3333
</script>
3434

.vitepress/theme/components/HomeHero.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616

1717
<NavLink
1818
v-if="hasAction"
19-
:item="{ link: data.actionLink, text: data.actionText }"
19+
:item="{ link: frontmatter.actionLink, text: frontmatter.actionText }"
2020
class="action mx-2"
2121
rounded="tr-4xl tl-2xl br-2xl bl-3xl"
2222
/>
2323

2424
<NavLink
2525
v-if="hasAltAction"
26-
:item="{ link: data.altActionLink, text: data.altActionText }"
26+
:item="{ link: frontmatter.altActionLink, text: frontmatter.altActionText }"
2727
class="action alt mx-2"
2828
rounded="tr-2xl tl-3xl br-4xl bl-4xl"
2929
/>
@@ -50,19 +50,19 @@
5050

5151
<script setup lang="ts">
5252
import { computed } from 'vue'
53-
import { useFrontmatter } from 'vitepress'
53+
import { useData } from 'vitepress'
5454
import NavLink from './NavLink.vue'
5555
56-
const data = useFrontmatter()
56+
const {frontmatter} = useData()
5757
58-
const hasHeroText = computed(() => data.value.heroText !== null)
59-
const hasTagline = computed(() => data.value.tagline !== null)
58+
const hasHeroText = computed(() => frontmatter.value.heroText !== null)
59+
const hasTagline = computed(() => frontmatter.value.tagline !== null)
6060
61-
const hasAction = computed(() => data.value.actionLink && data.value.actionText)
62-
const hasAltAction = computed(() => data.value.altActionLink && data.value.altActionText)
61+
const hasAction = computed(() => frontmatter.value.actionLink && frontmatter.value.actionText)
62+
const hasAltAction = computed(() => frontmatter.value.altActionLink && frontmatter.value.altActionText)
6363
6464
const showHero = computed(() => {
65-
return data.value.heroImage
65+
return frontmatter.value.heroImage
6666
|| hasHeroText.value
6767
|| hasTagline.value
6868
|| hasAction.value

0 commit comments

Comments
 (0)