Skip to content

Commit

Permalink
[5_30] 为英文主页添加features
Browse files Browse the repository at this point in the history
  • Loading branch information
MathAgape authored and da-liii committed Oct 29, 2024
1 parent 303c2b8 commit 7290d69
Show file tree
Hide file tree
Showing 11 changed files with 600 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ doxyfile
compile_commands.json

docs/**/plugin_binary.md
docs/.vitepress/cache/

# Binary of the goldfish plugin
TeXmacs/plugins/goldfish/bin/goldfish
Expand Down
52 changes: 52 additions & 0 deletions docs/.vitepress/theme/MyLayout.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<!--
- Copyright (c) 2022-2023, Mybatis-Flex ([email protected]).
- <p>
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
- <p>
- http://www.apache.org/licenses/LICENSE-2.0
- <p>
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-->

<!--.vitepress/theme/MyLayout.vue-->


<script setup>
import DefaultTheme from 'vitepress/theme'
import {useData} from "vitepress";
const {Layout} = DefaultTheme
const {lang} = useData()
// console.log(">>>data",data)
</script>


<template>
<Layout>




<template #home-hero-image>
<div style="z-index: 9999">
<img v-if="lang === 'en'" src="/assets/image/video-placeholder-en.png">
<img v-else src="/assets/image/video-placeholder.png">
</div>
</template>





</Layout>
</template>
15 changes: 15 additions & 0 deletions docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// https://vitepress.dev/guide/custom-theme
import {h} from 'vue'
import Theme from 'vitepress/theme'
import './style.css'
import MyLayout from "./MyLayout.vue";



export default {
...Theme,
Layout: MyLayout,
async enhanceApp({app, router, siteData}) {

}
}
Loading

0 comments on commit 7290d69

Please sign in to comment.