fix: 修复多个文件末尾缺少换行符的问题,确保文件格式一致性
This commit is contained in:
@@ -18,7 +18,7 @@ auto-update:
|
||||
stage: auto-update
|
||||
image: python:3.9
|
||||
rules:
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule" # 通过定时任务触发
|
||||
- if: $CI_PIPELINE_SOURCE == "schedule" # 通过定时任务触发
|
||||
before_script:
|
||||
# 创建 pip 配置目录并写入阿里云镜像配置
|
||||
- mkdir -p ~/.pip
|
||||
@@ -30,7 +30,6 @@ auto-update:
|
||||
- pip install pyyaml
|
||||
# 运行更新脚本
|
||||
- python update_files.py
|
||||
|
||||
# build-web:
|
||||
# stage: build-web
|
||||
# image: node:22.14.0
|
||||
@@ -45,4 +44,4 @@ auto-update:
|
||||
# - npm run docs:build
|
||||
# artifacts:
|
||||
# paths:
|
||||
# - $BUILD_DIR
|
||||
# - $BUILD_DIR
|
||||
|
||||
27
.prettierrc
Normal file
27
.prettierrc
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"arrowParens": "always",
|
||||
"bracketSameLine": false,
|
||||
"bracketSpacing": true,
|
||||
"embeddedLanguageFormatting": "auto",
|
||||
"htmlWhitespaceSensitivity": "css",
|
||||
"insertPragma": false,
|
||||
"jsxSingleQuote": false,
|
||||
"printWidth": 100,
|
||||
"proseWrap": "preserve",
|
||||
"quoteProps": "as-needed",
|
||||
"requirePragma": false,
|
||||
"semi": true,
|
||||
"singleQuote": false,
|
||||
"tabWidth": 2,
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.html", "*.css", "*.scss", "*.md"],
|
||||
"options": {
|
||||
"tabWidth": 4
|
||||
}
|
||||
}
|
||||
],
|
||||
"trailingComma": "es5",
|
||||
"useTabs": false,
|
||||
"vueIndentScriptAndStyle": false
|
||||
}
|
||||
@@ -13,13 +13,13 @@ Docker 提供了一个自动配置与安装的脚本,支持 Debian、RHEL、SU
|
||||
|
||||
2. 下载安装脚本
|
||||
|
||||
使用 curl
|
||||
使用 curl
|
||||
|
||||
```bash
|
||||
curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/install.sh | sh
|
||||
```
|
||||
|
||||
使用 wget
|
||||
使用 wget
|
||||
|
||||
```bash
|
||||
wget -O- https://git.sugarscat.cn/me/bash/-/raw/main/docker/install/install.sh | sh
|
||||
|
||||
@@ -12,4 +12,4 @@ CentOS/RHEL
|
||||
|
||||
```bash
|
||||
yum install docker-compose
|
||||
```
|
||||
```
|
||||
|
||||
@@ -18,4 +18,4 @@ curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/docker-compose/doc
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
```
|
||||
|
||||
@@ -9,4 +9,4 @@ services:
|
||||
- "7890:7890/udp"
|
||||
- "9090:9090"
|
||||
volumes:
|
||||
- ./data/config.yaml:/root/.config/clash/config.yaml
|
||||
- ./data/config.yaml:/root/.config/clash/config.yaml
|
||||
|
||||
@@ -22,4 +22,4 @@ curl -fsSL https://git.sugarscat.cn/me/bash/-/raw/main/docker/docker-compose/doc
|
||||
|
||||
```bash
|
||||
docker-compose up -d
|
||||
```
|
||||
```
|
||||
|
||||
@@ -5,7 +5,7 @@ services:
|
||||
resources:
|
||||
limits:
|
||||
cpus: 1
|
||||
memory: '1G'
|
||||
memory: "1G"
|
||||
image: snowdreamtech/frps:0.61.2
|
||||
labels:
|
||||
createdBy: Apps
|
||||
|
||||
@@ -1,29 +1,27 @@
|
||||
import { defineConfig } from 'vitepress'
|
||||
import { defineConfig } from "vitepress";
|
||||
|
||||
// https://vitepress.dev/reference/site-config
|
||||
export default defineConfig({
|
||||
title: "Bash",
|
||||
description: "My Bash!",
|
||||
base: '/docs/',
|
||||
head: [
|
||||
['link', { rel: 'icon', type: 'image/svg+xml', href: 'favicon.ico' }]
|
||||
],
|
||||
base: "/docs/",
|
||||
head: [["link", { rel: "icon", type: "image/svg+xml", href: "favicon.ico" }]],
|
||||
lastUpdated: true,
|
||||
themeConfig: {
|
||||
// https://vitepress.dev/reference/default-theme-config
|
||||
nav: [
|
||||
{ text: 'Home', link: '/' },
|
||||
{ text: 'Examples', link: '/markdown-examples' }
|
||||
{ text: "Home", link: "/" },
|
||||
{ text: "Examples", link: "/markdown-examples" },
|
||||
],
|
||||
|
||||
sidebar: [
|
||||
{
|
||||
text: 'Examples',
|
||||
text: "Examples",
|
||||
items: [
|
||||
{ text: 'Markdown Examples', link: '/markdown-examples' },
|
||||
{ text: 'Runtime API Examples', link: '/api-examples' }
|
||||
]
|
||||
}
|
||||
{ text: "Markdown Examples", link: "/markdown-examples" },
|
||||
{ text: "Runtime API Examples", link: "/api-examples" },
|
||||
],
|
||||
},
|
||||
],
|
||||
}
|
||||
})
|
||||
},
|
||||
});
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
// https://vitepress.dev/guide/custom-theme
|
||||
import { h } from 'vue'
|
||||
import type { Theme } from 'vitepress'
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import './style.css'
|
||||
import { h } from "vue";
|
||||
import type { Theme } from "vitepress";
|
||||
import DefaultTheme from "vitepress/theme";
|
||||
import "./style.css";
|
||||
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
Layout: () => {
|
||||
return h(DefaultTheme.Layout, null, {
|
||||
// https://vitepress.dev/guide/extending-default-theme#layout-slots
|
||||
})
|
||||
});
|
||||
},
|
||||
enhanceApp({ app, router, siteData }) {
|
||||
// ...
|
||||
}
|
||||
} satisfies Theme
|
||||
},
|
||||
} satisfies Theme;
|
||||
|
||||
@@ -44,40 +44,44 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-c-brand-1: #81c122 !important;
|
||||
--vp-c-brand-2: #98cc4a !important;
|
||||
--vp-c-brand-3: #9be05e !important;
|
||||
|
||||
--vp-c-default-1: var(--vp-c-gray-1);
|
||||
--vp-c-default-2: var(--vp-c-gray-2);
|
||||
--vp-c-default-3: var(--vp-c-gray-3);
|
||||
--vp-c-default-soft: var(--vp-c-gray-soft);
|
||||
--vp-c-indigo-1: #66981b !important;
|
||||
--vp-c-indigo-2: #81c122 !important;
|
||||
--vp-c-indigo-3: #9cdc3c !important;
|
||||
|
||||
--vp-c-brand-1: var(--vp-c-indigo-1);
|
||||
--vp-c-brand-2: var(--vp-c-indigo-2);
|
||||
--vp-c-brand-3: var(--vp-c-indigo-3);
|
||||
--vp-c-brand-soft: var(--vp-c-indigo-soft);
|
||||
--vp-c-default-1: var(--vp-c-gray-1);
|
||||
--vp-c-default-2: var(--vp-c-gray-2);
|
||||
--vp-c-default-3: var(--vp-c-gray-3);
|
||||
--vp-c-default-soft: var(--vp-c-gray-soft);
|
||||
|
||||
--vp-c-tip-1: var(--vp-c-brand-1);
|
||||
--vp-c-tip-2: var(--vp-c-brand-2);
|
||||
--vp-c-tip-3: var(--vp-c-brand-3);
|
||||
--vp-c-tip-soft: var(--vp-c-brand-soft);
|
||||
--vp-c-brand-1: var(--vp-c-indigo-1);
|
||||
--vp-c-brand-2: var(--vp-c-indigo-2);
|
||||
--vp-c-brand-3: var(--vp-c-indigo-3);
|
||||
--vp-c-brand-soft: var(--vp-c-indigo-soft);
|
||||
|
||||
--vp-c-warning-1: var(--vp-c-yellow-1);
|
||||
--vp-c-warning-2: var(--vp-c-yellow-2);
|
||||
--vp-c-warning-3: var(--vp-c-yellow-3);
|
||||
--vp-c-warning-soft: var(--vp-c-yellow-soft);
|
||||
--vp-c-tip-1: var(--vp-c-brand-1);
|
||||
--vp-c-tip-2: var(--vp-c-brand-2);
|
||||
--vp-c-tip-3: var(--vp-c-brand-3);
|
||||
--vp-c-tip-soft: var(--vp-c-brand-soft);
|
||||
|
||||
--vp-c-danger-1: var(--vp-c-red-1);
|
||||
--vp-c-danger-2: var(--vp-c-red-2);
|
||||
--vp-c-danger-3: var(--vp-c-red-3);
|
||||
--vp-c-danger-soft: var(--vp-c-red-soft);
|
||||
--vp-c-warning-1: var(--vp-c-yellow-1);
|
||||
--vp-c-warning-2: var(--vp-c-yellow-2);
|
||||
--vp-c-warning-3: var(--vp-c-yellow-3);
|
||||
--vp-c-warning-soft: var(--vp-c-yellow-soft);
|
||||
|
||||
--vp-c-danger-1: var(--vp-c-red-1);
|
||||
--vp-c-danger-2: var(--vp-c-red-2);
|
||||
--vp-c-danger-3: var(--vp-c-red-3);
|
||||
--vp-c-danger-soft: var(--vp-c-red-soft);
|
||||
}
|
||||
|
||||
.dark {
|
||||
--vp-c-brand-1: #a5cc69 !important;
|
||||
--vp-c-indigo-3: #66981b !important;
|
||||
--vp-c-indigo-2: #81c122 !important;
|
||||
--vp-c-indigo-1: #9cdc3c !important;
|
||||
|
||||
/* --vp-c-brand-1: #a5cc69 !important;
|
||||
--vp-c-brand-2: #98cc4a !important;
|
||||
--vp-c-brand-3: #9be05e !important;
|
||||
--vp-c-brand-3: #9be05e !important; */
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,15 +89,15 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-button-brand-border: transparent;
|
||||
--vp-button-brand-text: var(--vp-c-white);
|
||||
--vp-button-brand-bg: var(--vp-c-brand-3);
|
||||
--vp-button-brand-hover-border: transparent;
|
||||
--vp-button-brand-hover-text: var(--vp-c-white);
|
||||
--vp-button-brand-hover-bg: var(--vp-c-brand-2);
|
||||
--vp-button-brand-active-border: transparent;
|
||||
--vp-button-brand-active-text: var(--vp-c-white);
|
||||
--vp-button-brand-active-bg: var(--vp-c-brand-1);
|
||||
--vp-button-brand-border: transparent;
|
||||
--vp-button-brand-text: var(--vp-c-white);
|
||||
--vp-button-brand-bg: var(--vp-c-brand-3);
|
||||
--vp-button-brand-hover-border: transparent;
|
||||
--vp-button-brand-hover-text: var(--vp-c-white);
|
||||
--vp-button-brand-hover-bg: var(--vp-c-brand-2);
|
||||
--vp-button-brand-active-border: transparent;
|
||||
--vp-button-brand-active-text: var(--vp-c-white);
|
||||
--vp-button-brand-active-bg: var(--vp-c-brand-1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -101,31 +105,23 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-home-hero-name-color: transparent;
|
||||
--vp-home-hero-name-background: -webkit-linear-gradient(
|
||||
120deg,
|
||||
#bd34fe 30%,
|
||||
#41d1ff
|
||||
);
|
||||
--vp-home-hero-name-color: transparent;
|
||||
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
|
||||
|
||||
--vp-home-hero-image-background-image: linear-gradient(
|
||||
-45deg,
|
||||
#bd34fe 50%,
|
||||
#47caff 50%
|
||||
);
|
||||
--vp-home-hero-image-filter: blur(44px);
|
||||
--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
|
||||
--vp-home-hero-image-filter: blur(44px);
|
||||
}
|
||||
|
||||
@media (min-width: 640px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(56px);
|
||||
}
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(56px);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 960px) {
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(68px);
|
||||
}
|
||||
:root {
|
||||
--vp-home-hero-image-filter: blur(68px);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -133,10 +129,10 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
:root {
|
||||
--vp-custom-block-tip-border: transparent;
|
||||
--vp-custom-block-tip-text: var(--vp-c-text-1);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
|
||||
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
|
||||
--vp-custom-block-tip-border: transparent;
|
||||
--vp-custom-block-tip-text: var(--vp-c-text-1);
|
||||
--vp-custom-block-tip-bg: var(--vp-c-brand-soft);
|
||||
--vp-custom-block-tip-code-bg: var(--vp-c-brand-soft);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -144,6 +140,5 @@
|
||||
* -------------------------------------------------------------------------- */
|
||||
|
||||
.DocSearch {
|
||||
--docsearch-primary-color: var(--vp-c-brand-1) !important;
|
||||
--docsearch-primary-color: var(--vp-c-brand-1) !important;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,12 +18,15 @@ const { theme, page, frontmatter } = useData()
|
||||
## Results
|
||||
|
||||
### Theme Data
|
||||
|
||||
<pre>{{ theme }}</pre>
|
||||
|
||||
### Page Data
|
||||
|
||||
<pre>{{ page }}</pre>
|
||||
|
||||
### Page Frontmatter
|
||||
|
||||
<pre>{{ frontmatter }}</pre>
|
||||
```
|
||||
|
||||
@@ -36,12 +39,15 @@ const { site, theme, page, frontmatter } = useData()
|
||||
## Results
|
||||
|
||||
### Theme Data
|
||||
|
||||
<pre>{{ theme }}</pre>
|
||||
|
||||
### Page Data
|
||||
|
||||
<pre>{{ page }}</pre>
|
||||
|
||||
### Page Frontmatter
|
||||
|
||||
<pre>{{ frontmatter }}</pre>
|
||||
|
||||
## More
|
||||
|
||||
@@ -3,23 +3,22 @@
|
||||
layout: home
|
||||
|
||||
hero:
|
||||
name: "Bash"
|
||||
text: "My Bash!"
|
||||
tagline: My great project tagline
|
||||
actions:
|
||||
- theme: brand
|
||||
text: Markdown Examples
|
||||
link: /markdown-examples
|
||||
- theme: alt
|
||||
text: API Examples
|
||||
link: /api-examples
|
||||
name: "Bash"
|
||||
text: "My Bash!"
|
||||
tagline: My great project tagline
|
||||
actions:
|
||||
- theme: brand
|
||||
text: Markdown Examples
|
||||
link: /markdown-examples
|
||||
- theme: alt
|
||||
text: API Examples
|
||||
link: /api-examples
|
||||
|
||||
features:
|
||||
- title: Feature A
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature B
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature C
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature A
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature B
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
- title: Feature C
|
||||
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
|
||||
---
|
||||
|
||||
|
||||
@@ -10,4 +10,4 @@
|
||||
- file: /docker/install/fedora/docker-ce.repo
|
||||
source: https://download.docker.com/linux/fedora/docker-ce.repo
|
||||
- file: /docker/install/centos/docker-ce.repo
|
||||
source: https://download.docker.com/linux/centos/docker-ce.repo
|
||||
source: https://download.docker.com/linux/centos/docker-ce.repo
|
||||
|
||||
@@ -44,4 +44,4 @@ nginx -t
|
||||
|
||||
```bash
|
||||
systemctl restart nginx
|
||||
```
|
||||
```
|
||||
|
||||
@@ -26,4 +26,4 @@ nginx -t
|
||||
|
||||
```bash
|
||||
systemctl restart nginx
|
||||
```
|
||||
```
|
||||
|
||||
@@ -26,4 +26,4 @@ nginx -t
|
||||
|
||||
```bash
|
||||
systemctl restart nginx
|
||||
```
|
||||
```
|
||||
|
||||
@@ -54,4 +54,4 @@ nginx -t
|
||||
|
||||
```bash
|
||||
systemctl restart nginx
|
||||
```
|
||||
```
|
||||
|
||||
@@ -1,12 +1,14 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"vitepress": "^1.6.3",
|
||||
"vue": "^3.5.13"
|
||||
"vue": "^3.5.13",
|
||||
"prettier": "^3.5.3"
|
||||
},
|
||||
"packageManager": "pnpm@10.6.4+sha512.da3d715bfd22a9a105e6e8088cfc7826699332ded60c423b14ec613a185f1602206702ff0fe4c438cb15c979081ce4cb02568e364b15174503a63c7a8e2a5f6c",
|
||||
"scripts": {
|
||||
"docs:dev": "vitepress dev docs",
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:preview": "vitepress preview docs"
|
||||
"docs:preview": "vitepress preview docs",
|
||||
"prettier": "prettier --write ."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user