Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Adjusting sidebar #32

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Checkout linglong release
uses: actions/checkout@v4
with:
ref: 72b18a16c3221b2577ed750e52028e6bc21520b2 # 指定玲珑项目的 commit 提交,可能文档有小部分修改,不需要从 tag 获取
ref: 653c82dbfabbbedfb27d354f2b03af12ced4acbd # 指定玲珑项目的 commit 提交,可能文档有小部分修改,不需要从 tag 获取
path: tmp
repository: linuxdeepin/linglong
sparse-checkout: |
Expand Down
12 changes: 6 additions & 6 deletions .vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = {
text: "文档",
ariaLabel: "doc",
items: [
{ text: "开始", link: "/guide/start/install.md" },
{ text: "开始", link: "/guide/start/whatis.md" },
{
text: "命令行工具",
link: "/guide/ll-cli/introduction.md",
Expand All @@ -83,11 +83,11 @@ module.exports = {
items: [
{
text: "简体中文",
link: "/guide/start/install.md",
link: "/guide/start/whatis.md",
},
{
text: "English",
link: "/en/guide/start/install.md",
link: "/en/guide/start/whatis.md",
},
],
},
Expand All @@ -107,7 +107,7 @@ module.exports = {
items: [
{
text: "Getting Start",
link: "/en/guide/start/install.md",
link: "/en/guide/start/whatis.md",
},
{
text: "Command Line Tools",
Expand All @@ -127,11 +127,11 @@ module.exports = {
items: [
{
text: "简体中文",
link: "/guide/start/install.md",
link: "/guide/start/whatis.md",
},
{
text: "English",
link: "/en/guide/start/install.md",
link: "/en/guide/start/whatis.md",
},
],
},
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/en/header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
<div class="nav u-flex u-item-center u-justify-start">
<a class="selected" href="/" style="padding-left: 10px;">Home</a>
<a href="https://store.linglong.dev/" target="_blank">Linglong Store</a>
<a href="javascript:void(0);" @click="jump('/en/guide/start/install.html')">User Manual</a>
<a href="javascript:void(0);" @click="jump('/en/guide/start/whatis.html')">User Manual</a>
<!-- <i class="active"></i> -->
</div>
<!-- 语言切换 -->
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/en/header/tiny-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
<div class="nav">
<a class="selected" href="/">Home</a>
<a href="https://store.linglong.dev/" target="_blank">Linglong Store</a>
<a href="javascript:void(0);" @click="jump('/en/guide/start/install.html')">User Manual</a>
<a href="javascript:void(0);" @click="jump('/en/guide/start/whatis.html')">User Manual</a>
</div>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/en/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
security risks caused by decentralized control of permissions.
</p>
<div class="link-wrap">
<a href="/en/guide/ll-builder/introduction.html" class="link quick">Quick build in 10 mins</a>
<a href="/en/guide/start/how_to_use.html" class="link quick">Quick build in 10 mins</a>
<a href="/en/guide/ll-builder/manifests.html#runtime-20-5-0-includes-dependencies" class="link plain ml-15">Runtime list</a>
<a href="https://bbs.deepin.org/module/detail/230" target="_blank" class="link plain ml-15">Discussions</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/en/home/tiny.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
security risks caused by decentralized control of permissions.
</p>
<div class="link-wrap">
<a href="javascript:void(0);" @click="jump('/en/guide/ll-builder/introduction.html')" class="link quick">Quick build in 10 mins</a>
<a href="javascript:void(0);" @click="jump('/en/guide/start/how_to_use.html')" class="link quick">Quick build in 10 mins</a>
<a href="javascript:void(0);" @click="jump('/en/guide/ll-builder/manifests.html#runtime-20-5-0-includes-dependencies')" class="link plain ml-15">Runtime list</a>
<a href="https://bbs.deepin.org/module/detail/230" target="_blank" class="link plain ml-15">Discussions</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/zh/header/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
<div class="nav u-flex u-item-center u-justify-start">
<a class="selected" href="/">首页</a>
<a href="https://store.linglong.dev/" target="_blank">玲珑商店</a>
<a href="javascript:void(0);" @click="jump('/guide/start/install.html')">使用手册</a>
<a href="javascript:void(0);" @click="jump('/guide/start/whatis.html')">使用手册</a>
<!-- <i class="active"></i> -->
</div>
<!-- 语言切换 -->
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/zh/header/tiny-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
<div class="nav">
<a class="selected" href="/">首页</a>
<a href="https://store.linglong.dev/" target="_blank">玲珑商店</a>
<a href="javascript:void(0);" @click="jump('/guide/start/install.html')">使用手册</a>
<a href="javascript:void(0);" @click="jump('/guide/start/whatis.html')">使用手册</a>
</div>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/zh/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
玲珑是一种新型的独立包管理工具集,致力于治理Linux系统下传统软件包格式复杂、交叉的依赖关系导致的各种兼容性问题,以及过于松散的权限管控导致的安全风险。
</p>
<div class="link-wrap">
<a href="javascript:void(0);" @click="jump('/guide/ll-builder/introduction.html')" class="link quick">10分钟快速构建</a>
<a href="javascript:void(0);" @click="jump('/guide/start/how_to_use.html')" class="link quick">10分钟快速构建</a>
<a href="javascript:void(0);" @click="jump('/guide/ll-builder/manifests.html#runtime-20-5-0-包含依赖项')" class="link plain ml-15">Runtime清单</a>
<a href="https://bbs.deepin.org/module/detail/230" target="_blank" class="link plain ml-15">社区讨论</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/zh/home/tiny.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ SPDX-License-Identifier: LGPL-3.0-or-later
玲珑是一种新型的独立包管理工具集,致力于治理Linux系统下传统软件包格式复杂、交叉的依赖关系导致的各种兼容性问题,以及过于松散的权限管控导致的安全风险。
</p>
<div class="link-wrap">
<a href="javascript:void(0);" @click="jump('/guide/ll-builder/introduction.html')" class="link quick">10分钟快速构建</a>
<a href="javascript:void(0);" @click="jump('/guide/start/how_to_use.html')" class="link quick">10分钟快速构建</a>
<a href="javascript:void(0);" @click="jump('/guide/ll-builder/manifests.html#runtime-20-5-0-包含依赖项')" class="link plain ml-15">Runtime清单</a>
<a href="https://bbs.deepin.org/module/detail/230" target="_blank" class="link plain ml-15">社区讨论</a>
</div>
Expand Down
4 changes: 2 additions & 2 deletions .vitepress/theme/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ const categoryMappings = {
"zh": {
"item": "文档版本",
"defaultVersion": defaultVersion,
"link": "/start/install.md"
"link": "/start/whatis.md"
},
"en": {
"item": "Doc Version",
"defaultVersion": defaultVersion,
"link": "/start/install.md"
"link": "/start/whatis.md"
}
}

Expand Down
46 changes: 23 additions & 23 deletions .vitepress/theme/sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ let sidebar = {};
// 定义每个类别及其子项的映射
const categoryMappings = {
"zh": {
"命令行工具": {
"开始": {
"概述": "/start/whatis.md",
"安装": "/start/install.md",
"简单示例": "/start/how_to_use.md",
},
"ll-cli": {
"简介": "/ll-cli/introduction.md",
"列出已安装的应用": "/ll-cli/list.md",
"从远程仓库查询应用": "/ll-cli/query.md",
Expand All @@ -24,37 +29,37 @@ const categoryMappings = {
"进入容器内部": "/ll-cli/exec.md",
"强制退出应用": "/ll-cli/kill.md"
},
"构建工具": {
"ll-builder": {
"简介": "/ll-builder/introduction.md",
"创建项目": "/ll-builder/create.md",
"构建应用": "/ll-builder/build.md",
"运行应用": "/ll-builder/run.md",
"转换 appimage": "/ll-builder/convert.md",
"导出uab格式应用": "/ll-builder/export.md",
"导出 layer 文件": "/ll-builder/export.md",
"配置文件": "/ll-builder/manifests.md",
"上架应用到商店": "/ll-builder/github.md"
},
"转换工具": {
"ll-pica 简介": "/ll-pica/introduction.md",
"ll-pica": {
"简介": "/ll-pica/introduction.md",
"初始化配置": "/ll-pica/init.md",
"转换应用": "/ll-pica/convert.md",
"添加依赖": "/ll-pica/adep.md",
"转换配置文件简介": "/ll-pica/manifests.md",
"常见问题": "/ll-pica/faq.md",
},
"开始": {
"安装玲珑": "/start/install.md",
"安装 Pica": "/start/install_pica.md",
"从0开始构建": "/start/how_to_use.md",
},
"调试应用": {
"IDE中调试应用": "/debug/debug.md",
"常见构建问题": "/debug/ll-builder-faq.md",
"常见运行问题": "/debug/faq.md"
"常见运行问题": "/debug/faq.md",
"常见转换问题": "/debug/ll-pica-faq.md",
}
},
"en": {
"Command Line Tools": {
"Getting Started": {
"summary": "/start/whatis.md",
"Install": "/start/install.md",
"Simple example": "/start/how_to_use.md",
},
"ll-cli": {
"Introduction": "/ll-cli/introduction.md",
"List Installed Apps": "/ll-cli/list.md",
"Query Apps From Remote": "/ll-cli/query.md",
Expand All @@ -66,33 +71,28 @@ const categoryMappings = {
"Attach To Container": "/ll-cli/exec.md",
"Force Quit App": "/ll-cli/kill.md",
},
"Build Tools": {
"ll-builder": {
"Introduction": "/ll-builder/introduction.md",
"Create Project": "/ll-builder/create.md",
"Build App": "/ll-builder/build.md",
"Run Compiled App": "/ll-builder/run.md",
"Convert AppImage": "/ll-builder/convert.md",
"Export Uab Format": "/ll-builder/export.md",
"Export Layer File": "/ll-builder/export.md",
"Manifests": "/ll-builder/manifests.md",
"App To Store": "/ll-builder/github.md"
},
"Conversion application": {
"ll-pica": {
"ll-pica Introduction": "/ll-pica/introduction.md",
"Initialization configuration": "/ll-pica/init.md",
"Conversion application": "/ll-pica/convert.md",
"Add dependency": "/ll-pica/adep.md",
"Manifests": "/ll-pica/manifests.md",
"FAQ": "/ll-pica/faq.md",
},
"Getting Started": {
"Install Linglong Environment": "/start/install.md",
"Install Pica": "/start/install_pica.md",
"Build from scratch": "/start/how_to_use.md",
},
"Debug App": {
"Debug App In IDE": "/debug/debug.md",
"Build FAQ": "/debug/ll-builder-faq.md",
"Run FAQ": "/debug/faq.md"
"Run FAQ": "/debug/faq.md",
"Convert FAQ": "/debug/ll-pica-faq.md",
}
}
};
Expand Down
Loading