Skip to content

Commit

Permalink
稍微修了点Bug(顺便加了点惊喜)
Browse files Browse the repository at this point in the history
  • Loading branch information
Starcloudsea committed Apr 5, 2024
1 parent c508358 commit 36c6fc1
Show file tree
Hide file tree
Showing 9 changed files with 160 additions and 138 deletions.
1 change: 1 addition & 0 deletions docs/.vitepress/config/zhCN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export const zhCNConfig = defineConfig({
text: '别人项目的文档',
items: [
{ text: 'MinecraftLaunch', link: '/zhCN/Docs/OtherPersonProjectDocs/MinecraftLaunch/Home' },
{ text: 'Architectury', link: '/zhCN/Docs/OtherPersonProjectDocs/Architectury/Home' },
{ text: '其它文档', link: '/zhCN/Docs/OtherPersonProjectDocs/OtherDocs/Home' },
]
},
Expand Down
22 changes: 2 additions & 20 deletions docs/.vitepress/theme/components/NotFound/NotFound.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<script setup lang="ts">
import { onMounted, ref } from 'vue'
import { useData } from 'vitepress'
const { site } = useData()
</script>
Expand All @@ -16,7 +15,8 @@ const { site } = useData()
<br/>If this is indeed a bug, please open an issues on GitHub.
</p>
<div class="action">
<a class="brandbutton" :href="site.base" aria-label="Back to Home"> Back to Home </a>
<a id="brandbutton" :href="site.base" aria-label="Back to Home"> Back to Home </a>
<a id="brandbutton" target="_blank" href="https://www.bilibili.com/video/BV1GJ411x7h7" aria-label="???"> ??? </a>
</div>
</div>
</template>
Expand Down Expand Up @@ -60,24 +60,6 @@ img {
white-space: pre-wrap;
color: var(--vp-c-text-2);
}
.brandbutton {
border-color: var(--vp-button-brand-border);
color: var(--vp-button-brand-text);
background-color: var(--vp-button-brand-bg);
border-radius: 20px;
padding: 0 20px;
line-height: 38px;
font-size: 14px;
display: inline-block;
border: 1px solid transparent;
text-align: center;
font-weight: 600;
white-space: nowrap;
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
text-decoration: none;
margin-right: 5px;
margin-left: 5px
}
.action {
padding-top: 20px;
}
Expand Down
115 changes: 6 additions & 109 deletions docs/.vitepress/theme/components/SubHome/SubHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,121 +33,18 @@ export default defineComponent({
<div>
<slot></slot>
</div>
<h1 class="texth1">
<span class="textspan">{{ title }}</span>
<h1 id="texth1">
<span id="textspan">{{ title }}</span>
</h1>
<p v-if="subtitle" class="subtext">{{ subtitle }}</p>
<p v-if="tagline" class="taglinetext">{{ tagline }}</p>
<div class="actions">
<a :target="item.target" :class="item.class" v-for="item in buttons" :href="item.link" :key="item">{{ item.text }}</a>
<p v-if="subtitle" id="subtext">{{ subtitle }}</p>
<p v-if="tagline" id="taglinetext">{{ tagline }}</p>
<div id="actions">
<a :target="item.target" :id="item.class" v-for="item in buttons" :href="item.link" :key="item">{{ item.text }}</a>
</div>
<h1 style="margin-top: 30px;" v-if="tiptitle">{{ tiptitle }}</h1>
</div>
</template>

<style scoped>
.texth1 {
color: var(--vp-home-hero-name-color);
max-width: 392px;
letter-spacing: -0.4px;
line-height: 40px;
font-size: 32px;
font-weight: 700;
white-space: pre-wrap;
}
@media (min-width: 640px) {
.texth1 {
max-width: 576px;
line-height: 56px;
font-size: 48px;
}
}
.texth1 {
background: var(--vp-home-hero-name-background);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: var(--vp-home-hero-name-color);
}
.subtext {
max-width: 392px;
letter-spacing: -0.4px;
line-height: 40px;
font-size: 32px;
font-weight: 700;
white-space: pre-wrap;
}
@media (min-width: 640px) {
.subtext {
max-width: 528px;
line-height: 56px;
font-size: 48px;
}
}
.taglinetext {
padding-top: 8px;
max-width: 392px;
line-height: 28px;
font-size: 18px;
font-weight: 500;
white-space: pre-wrap;
color: var(--vp-c-text-2);
}
@media (min-width: 640px) {
.taglinetext {
padding-top: 12px;
max-width: 576px;
line-height: 32px;
font-size: 20px;
}
}
.actions {
flex-shrink: 0;
padding: 6px;
}
.brandbutton {
border-color: var(--vp-button-brand-border);
color: var(--vp-button-brand-text);
background-color: var(--vp-button-brand-bg);
border-radius: 20px;
padding: 0 20px;
line-height: 38px;
font-size: 14px;
display: inline-block;
border: 1px solid transparent;
text-align: center;
font-weight: 600;
white-space: nowrap;
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
text-decoration: none;
margin-right: 5px;
margin-left: 5px
}
.altbutton {
border-color: var(--vp-button-alt-border);
color: var(--vp-button-alt-text);
background-color: var(--vp-button-alt-bg);
border-radius: 20px;
padding: 0 20px;
line-height: 38px;
font-size: 14px;
display: inline-block;
border: 1px solid transparent;
text-align: center;
font-weight: 600;
white-space: nowrap;
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
text-decoration: none;
margin-right: 5px;
margin-left: 5px
}
</style>
121 changes: 118 additions & 3 deletions docs/.vitepress/theme/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
--vp-c-default-3: var(--vp-c-gray-3);
--vp-c-default-soft: var(--vp-c-gray-soft);

--vp-c-brand-1: #0077FF;
--vp-c-brand-2: #00AAFF;
--vp-c-brand-3: #0077FF;
--vp-c-brand-1: #00AAFF;
--vp-c-brand-2: #0088FF;
--vp-c-brand-3: #0077ff;
--vp-c-brand-soft: #0077ff30;

--vp-c-tip-1: var(--vp-c-brand-1);
Expand Down Expand Up @@ -144,9 +144,124 @@
--docsearch-primary-color: var(--vp-c-brand-1) !important;
}



.subhomeimg {
margin: 50px;
max-width: 500px;
max-height: 500px;
}

#texth1 {
background: var(--vp-home-hero-name-background);
-webkit-background-clip: text;
background-clip: text;
-webkit-text-fill-color: var(--vp-home-hero-name-color);
}

@media (min-width: 640px) {
#texth1 {
max-width: 576px;
line-height: 56px;
font-size: 48px;
}
}

#subtext {
max-width: 392px;
letter-spacing: -0.4px;
line-height: 40px;
font-size: 32px;
font-weight: 700;
white-space: pre-wrap;
}

@media (min-width: 640px) {
#subtext {
max-width: 528px;
line-height: 56px;
font-size: 48px;
}
}

#taglinetext {
padding-top: 8px;
max-width: 392px;
line-height: 28px;
font-size: 18px;
font-weight: 500;
white-space: pre-wrap;
color: var(--vp-c-text-2);
}

@media (min-width: 640px) {
#taglinetext {
padding-top: 12px;
max-width: 576px;
line-height: 32px;
font-size: 20px;
}
}

#actions {
flex-shrink: 0;
padding: 6px;
}

#brandbutton {
border-color: var(--vp-button-brand-border);
color: var(--vp-button-brand-text);
background-color: var(--vp-button-brand-bg);
border-radius: 20px;
padding: 0 20px;
line-height: 38px;
font-size: 14px;
display: inline-block;
border: 1px solid transparent;
text-align: center;
font-weight: 600;
white-space: nowrap;
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
text-decoration: none;
margin-right: 5px;
margin-left: 5px
}
#brandbutton:hover {
border-color: var(--vp-button-brand-border);
color: var(--vp-button-brand-text);
background-color: var(--vp-button-brand-hover-bg);
}
#brandbutton:active {
border-color: var(--vp-button-brand-border);
color: var(--vp-button-brand-text);
background-color: var(--vp-button-brand-active-bg);
}

#altbutton {
border-color: var(--vp-button-alt-border);
color: var(--vp-button-alt-text);
background-color: var(--vp-button-alt-bg);
border-radius: 20px;
padding: 0 20px;
line-height: 38px;
font-size: 14px;
display: inline-block;
border: 1px solid transparent;
text-align: center;
font-weight: 600;
white-space: nowrap;
transition: color 0.25s, border-color 0.25s, background-color 0.25s;
text-decoration: none;
margin-right: 5px;
margin-left: 5px
}
#altbutton:hover {
border-color: var(--vp-button-alt-border);
color: var(--vp-button-alt-text);
background-color: var(--vp-button-alt-hover-bg);
}
#altbutton:active {
border-color: var(--vp-button-alt-border);
color: var(--vp-button-alt-text);
background-color: var(--vp-button-alt-active-bg);
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,8 @@ public class MODMCMCNeoForge { // [!code ++]
}
```

4.4更新:用过Yarn了,完全不会用🥴

你可以在 https://maven.fabricmc.net/net/fabricmc/yarn/ 找到Yarn的所有版本(

别看字数1w多,其实很容易的,细心一点就好(
7 changes: 6 additions & 1 deletion docs/zhCN/Docs/Home.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ features:
- icon:
src: /Images/docs/Shared/Docs/OtherPersonProjectDocs/MinecraftLaunch/MinecraftLaunch.png
title: MinecraftLaunch
details: 这是一个基于C#的跨平台Minecraft启动核心,这只是这个核心的一个教程(核心作者:Xilu)
details: 这是一个基于C#的跨平台Minecraft启动核心,这只是这个核心的一个教程
link: ./OtherPersonProjectDocs/MinecraftLaunch/Home
- icon:
src: /Images/docs/Shared/Docs/OtherPersonProjectDocs/Architectury/MinecraftLaunch.png
title: Architectury
details: 一个可以让你同时为多个Mod加载器开发Mod的框架.
link: ./OtherPersonProjectDocs/Architectury/Home
---
19 changes: 19 additions & 0 deletions docs/zhCN/Docs/OtherPersonProjectDocs/Architectury/Home.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: Home
---

:::tip
此文档未编写完成.
:::

<subhome
title="Architectury API 文档(非官方)"
subtitle="一个抽象调用Fabric API和Forge API的API"
tagline="一个可以让你同时开发基于多个Mod加载器的Mod的框架
项目主要开发人员:Juuz,Kristiāns Micītis,Max,shedaniel 开源协议:LGPL-3.0 license"
tiptitle="<- 在侧边栏查看文档." :buttons="[
{ target: '_blank', class: 'brandbutton', text: '在GitHub上的源代码', link: 'https://github.com/architectury/architectury-api' },
{ target: '_blank', class: 'altbutton', text: '官方文档(英文)', link: 'https://docs.architectury.dev/api/introduction' }
]">
<img src="/Images/docs/Shared/Docs/OtherPersonProjectDocs/Architectury/Architectury.png" alt="Architectury文档的主页的图片" title="(这Architectury用上了Yarn这么这么难用啊QAQ)" class="subhomeimg"/>
</subhome>
11 changes: 6 additions & 5 deletions docs/zhCN/Docs/OtherPersonProjectDocs/MinecraftLaunch/Home.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
---

title: Home

---
:::warning
该页面已被标记为:暂停编写.
:::
<subhome
title="MinecraftLaunch"
title="MinecraftLaunch 文档(非官方)"
subtitle=".NET C# 跨平台Minecraft全能启动核心"
tagline="帮助使用C#制作Minecraft启动器的用户更方便的编写代码
原作者:Xilu 开源协议:MIT"
tiptitle="<- 在侧边栏查看更多." :buttons="[
tiptitle="<- 在侧边栏查看文档." :buttons="[
{ target: '_blank', class: 'brandbutton', text: '在GitHub上的源代码', link: 'https://github.com/Blessing-Studio/MinecraftLaunch' },
{ target: '_blank', class: 'altbutton', text: '官方文档', link: 'https://blessingta.link' }
]">
<img src="/Images/docs/Shared/Docs/OtherPersonProjectDocs/MinecraftLaunch/MinecraftLaunch.png" alt="MinecraftLaunch的主页的图片" title="别问我,我也不知道图片为啥长这么小Σ(っ °Д °;)っ(绝对不是因为我懒得超分辨率)" class="subhomeimg"/>
<img src="/Images/docs/Shared/Docs/OtherPersonProjectDocs/MinecraftLaunch/MinecraftLaunch.png" alt="MinecraftLaunch的主页的图片" title="文档施工ing......" class="subhomeimg"/>
</subhome>

0 comments on commit 36c6fc1

Please sign in to comment.