Skip to content

Commit

Permalink
docs(en): merging all conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
docschina-bot committed Nov 10, 2023
2 parents 7feeaa2 + 32ffb9e commit 6ce7104
Show file tree
Hide file tree
Showing 71 changed files with 3,824 additions and 1,413 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false
79 changes: 78 additions & 1 deletion .vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ const Guide = [
link: '/guide/presenter-mode',
},
{
<<<<<<< HEAD
<<<<<<< HEAD
text: 'Tích hợp trình soạn thảo',
=======
text: 'Drawing & Annonations',
=======
text: 'Drawing & Annotations',
>>>>>>> 32ffb9e79f43a405236e06473aaf65d3cf6e9aa7
link: '/guide/drawing',
},
{
Expand Down Expand Up @@ -78,6 +82,17 @@ const Theme = [
},
]
const Addon = [
{
text: 'Use Addon',
link: '/addons/use',
},
{
text: 'Write an Addon',
link: '/addons/write-an-addon',
},
]
const Translations = [
{
text: 'Việt Nam'
Expand Down Expand Up @@ -118,6 +133,10 @@ const Translations = [
text: 'Ελληνικά',
link: 'https://el.sli.dev{{pathname}}',
},
{
text: '日本語',
link: 'https://ja.sli.dev{{pathname}}',
},
]

const Customizations = [
Expand Down Expand Up @@ -146,7 +165,15 @@ const Customizations = [
link: '/custom/config-vite',
},
{
<<<<<<< HEAD
text: 'Cấu hình Windi CSS',
=======
text: 'Configure UnoCSS',
link: '/custom/config-unocss',
},
{
text: 'Configure Windi CSS',
>>>>>>> 32ffb9e79f43a405236e06473aaf65d3cf6e9aa7
link: '/custom/config-windicss',
},
{
Expand All @@ -162,7 +189,15 @@ const Customizations = [
link: '/custom/config-mermaid',
},
{
<<<<<<< HEAD
text: 'Cấu hình Phím tắt',
=======
text: 'Configure Parser',
link: '/custom/config-parser',
},
{
text: 'Configure Shortcuts',
>>>>>>> 32ffb9e79f43a405236e06473aaf65d3cf6e9aa7
link: '/custom/config-shortcuts',
},
{
Expand All @@ -175,6 +210,17 @@ const Customizations = [
}
]
const BuiltIn = [
{
text: 'Components',
link: '/builtin/components',
},
{
text: 'Layouts',
link: '/builtin/layouts',
},
]
const Resources = [
{
text: 'Showcases',
Expand Down Expand Up @@ -204,6 +250,7 @@ const slidebars = [
children: Theme,
},
{
<<<<<<< HEAD
text: 'Các tùy chỉnh',
children: Customizations,
},
Expand All @@ -219,6 +266,18 @@ const slidebars = [
link: '/builtin/layouts',
},
],
=======
text: 'Addons',
children: Addon,
},
{
text: 'Customizations',
children: Customizations,
},
{
text: 'Built-in',
children: BuiltIn,
>>>>>>> 32ffb9e79f43a405236e06473aaf65d3cf6e9aa7
},
]
Expand Down Expand Up @@ -249,7 +308,8 @@ module.exports = {
editLinkText: 'Đề xuất các thay đổi cho trang này',

algolia: {
apiKey: '1a5c5a504139c58f428974c78c55291d',
appId: 'LCBV6MIFS6',
apiKey: '1ff173fe73b20edc962c1c24c0b1c160',
indexName: 'slidev',
searchParameters: {
// for translations maintainers: change the filter to your locale code (subdomain name)
Expand All @@ -267,11 +327,27 @@ module.exports = {
items: Theme,
},
{
<<<<<<< HEAD
text: 'Tùy chỉnh',
items: Customizations,
},
{
text: 'Tài nguyên',
=======
text: 'Addon',
items: Addon,
},
{
text: 'Customize',
items: Customizations,
},
{
text: 'Built-in',
items: BuiltIn,
},
{
text: 'Resources',
>>>>>>> 32ffb9e79f43a405236e06473aaf65d3cf6e9aa7
items: Resources,
},
{
Expand All @@ -283,6 +359,7 @@ module.exports = {
sidebar: {
'/guide/': slidebars,
'/themes/': slidebars,
'/addons/': slidebars,
'/custom/': slidebars,
'/builtin/': slidebars,
'/resources/': slidebars,
Expand Down
82 changes: 82 additions & 0 deletions .vitepress/showcases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,88 @@ export const showcases: ShowCaseInfo[] = [
at: 'Thoughtworks Internal Lunch & Learn',
datetime: '2021-11-12',
},
{
title: 'Git\'s Most Wanted',
cover: 'https://cdn.jsdelivr.net/gh/alexanderdavide/git-most-wanted@assets/slides-export/01.png',
author: {
name: 'Alexander Eble',
link: 'https://github.com/alexanderdavide',
},
slidesLink: 'https://alexeble.de/talks/git-most-wanted/',
sourceLink: 'https://github.com/alexanderdavide/git-most-wanted',
at: 'Internal Tech Talk',
datetime: '2022-03-11',
},
{
title: 'OpenFunction 202',
cover: 'https://s2.loli.net/2022/05/22/4zsCnkQRFoAU1E5.png',
author: {
name: 'Haili Zhang',
link: 'https://github.com/webup',
},
slidesLink: 'https://openfunction-talks.netlify.app/2022/202-node-async/',
sourceLink: 'https://github.com/webup/openfunction-talks/tree/main/202-node-async',
at: 'OpenFunction Tutorial Sharing',
datetime: '2022-05-08',
},
{
title: 'Is it Okay to Pursue Functional Programming on Frontend?',
author: {
name: 'Minsu Kim , Changhui Lee',
},
at: '2022 JSConf Korea',
slidesLink: 'https://moonlit-nougat-422445.netlify.app/1',
sourceLink: 'https://github.com/alstn2468/2022-jsconf-presentation',
cover: 'https://raw.githubusercontent.com/alstn2468/2022-jsconf-presentation/main/public/images/og.png',
datetime: '2022-09-16',
},
{
title: 'Blazing slidev ppt template with naive-ui',
author: {
name: 'godkun',
},
at: 'personal sharing',
slidesLink: 'https://ppt.godkun.top',
sourceLink: 'https://github.com/godkun/ppt-template',
cover: 'https://github.com/godkun/ppt-template/raw/main/public/show.gif',
datetime: '2022-10-24',
},
{
title: 'Building a Polite Popup with Nuxt 3',
author: {
name: 'Michael Hoffmann',
link: 'https://github.com/mokkapps',
},
at: 'Vue.js Nation 2023',
slidesLink: 'https://vuejsnation-2023-talk-polite-popup.netlify.app',
sourceLink: 'https://github.com/Mokkapps/vuejsnation-2023-lightning-talk-polite-popup-nuxt-3-slides',
cover: 'https://raw.githubusercontent.com/Mokkapps/vuejsnation-2023-lightning-talk-polite-popup-nuxt-3-slides/main/screenshots/001.png',
datetime: '2023-01-25',
},
{
title: 'Dev Environment as Code',
cover: 'https://cdn.jsdelivr.net/gh/alexanderdavide/dev-environment-as-code@assets/slides-export/001.png',
author: {
name: 'Alexander Eble',
link: 'https://github.com/alexanderdavide',
},
slidesLink: 'https://alexeble.de/talks/dev-environment-as-code/',
sourceLink: 'https://github.com/alexanderdavide/dev-environment-as-code',
at: 'Internal Tech Talk',
datetime: '2022-12-01',
},
{
title: 'Exploring Social Engineering',
cover: 'https://raw.githubusercontent.com/zyf722/exploring-social-engineering-slides/main/assets/Screenshot_Cover.png',
author: {
name: 'zyf722',
link: 'https://github.com/zyf722',
},
slidesLink: 'https://zyf722.github.io/exploring-social-engineering-slides/',
sourceLink: 'https://github.com/zyf722/exploring-social-engineering-slides',
at: 'Presentation on Social Engineering in Computers in Society class',
datetime: '2023-10-20',
},
// Add yours here!
{
title: 'Yours?',
Expand Down
15 changes: 6 additions & 9 deletions .vitepress/theme/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,17 @@

<!-- <Debug /> -->

<ClientOnly>
<!-- <ClientOnly>
<WorkingInProgress />
</ClientOnly>
</ClientOnly> -->
</template>

<script setup lang="ts">
import { ref, computed, watch, defineAsyncComponent } from 'vue'
import {
useRoute,
useSiteData,
useSiteDataByRoute,
useData,
} from 'vitepress'
import type { DefaultTheme } from './config'
// components
import NavBar from './components/NavBar.vue'
Expand All @@ -72,8 +70,7 @@ const Home = defineAsyncComponent(() => import('./components/Home.vue'))
// generic state
const route = useRoute()
const siteData = useSiteData<DefaultTheme.Config>()
const siteRouteData = useSiteDataByRoute()
const {site: siteData} = useData()
const theme = computed(() => siteData.value.themeConfig)
const AlgoliaSearchBox = defineAsyncComponent(
Expand All @@ -87,7 +84,7 @@ const enableHome = computed(() => !!route.data.frontmatter.home)
// navbar
const showNavbar = computed(() => {
const { themeConfig } = siteRouteData.value
const { themeConfig } = siteData.value
const { frontmatter } = route.data
if (frontmatter.navbar === false || themeConfig.navbar === false)
return false
Expand All @@ -107,7 +104,7 @@ const openSideBar = ref(false)
const showSidebar = computed(() => {
const { frontmatter } = route.data
const { themeConfig } = siteRouteData.value
const { themeConfig } = siteData.value
return (
!frontmatter.home
&& frontmatter.sidebar !== false
Expand Down
5 changes: 4 additions & 1 deletion .vitepress/theme/NotFound.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
<div class="theme">
<h1>404</h1>
<blockquote>{{ getMsg() }}</blockquote>
<a :href="$site.base" aria-label="go to home">Take me home.</a>
<a :href="site.base" aria-label="go to home">Take me home.</a>
</div>
</template>

<script setup lang="ts">
import { useData } from 'vitepress';
const {site} = useData()
const msgs = [
'There\'s nothing here.',
'How did we get here?',
Expand Down

0 comments on commit 6ce7104

Please sign in to comment.