minearm-website 0.0.3-beta.2 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Dockerfile ADDED
@@ -0,0 +1,12 @@
1
+ # Base stage for building the static files
2
+ FROM node:lts AS base
3
+ WORKDIR /app
4
+ COPY package*.json ./
5
+ RUN npm install
6
+ COPY . .
7
+ RUN npm run build
8
+
9
+ # Runtime stage for serving the application
10
+ FROM nginx:mainline-alpine-slim AS runtime
11
+ COPY --from=base ./app/dist /usr/share/nginx/html
12
+ EXPOSE 80
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 KraHsu
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 onWidget
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,7 +1,16 @@
1
1
  # Minearm & Website
2
- # 本主题是从HusBlog改进而来的
3
- url: https://github.com/KraHsu/HsuBlog.git
2
+ # 本主题是从[HusBlog](https://github.com/KraHsu/HsuBlog.git)改进而来的
3
+ 最新的正式版是0.1.2
4
+ 最新的测试版是0.0.3-beta.4
4
5
 
6
+ 但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到5.0.5
7
+
8
+ # 效果
9
+ ![Minearm](https://portal.astro.build/_image?href=https%3A%2F%2Fstorage.googleapis.com%2Fdev-portal-bucket%2Fkotpt1ztaalrk5frua5pnwdvoh185ylgg0rio9.webp)
10
+
11
+ # node(环境)
12
+
13
+ 要让 Astro 在你的系统上运行,你还需要安装 Node.js,版本 v18.17.1 或 v20.3.0 或更高版本。(不支持 v19)
5
14
 
6
15
  # 文件结构
7
16
 
@@ -41,6 +50,16 @@ root
41
50
  └─utils
42
51
  ```
43
52
 
53
+ ~~~bash
54
+ # 安装主题
55
+ npm i minearm-website
56
+ ~~~
57
+
58
+ # 进入astro目录
59
+ ~~~
60
+ cd node_modules/minearm-website
61
+ ~~~
62
+
44
63
  ~~~
45
64
  # 安装依赖
46
65
  npm install
@@ -64,4 +83,4 @@ npm run preview
64
83
 
65
84
  由Minearm-RPM构建的
66
85
 
67
- # 转载时需标明出处!。
86
+ # 转载时需标明出处!。
package/astro.config.ts CHANGED
@@ -9,6 +9,7 @@ import remarkDirective from "remark-directive";
9
9
  import vue from "@astrojs/vue";
10
10
  import { SiteConfig } from "./src/site_config";
11
11
  import { generateSearchData } from "./src/utils/generateSearchData.ts";
12
+ //import netlify from "@astrojs/netlify";
12
13
  const remarkPlugins: any = [remarkFrontmatter, remarkGfm, SiteConfig.markdownMath !== false && remarkMath, remarkRestyling, remarkDirective, markdownDirectives, SiteConfig.localSearch && generateSearchData].filter(Boolean);
13
14
  const rehypePlugins: any = [rehypeFrontmatter, rehypeRestyling, SiteConfig.markdownMath === "Katex" && rehypeKatex, SiteConfig.markdownMath === "Mathjax" && rehypeMathjax].filter(Boolean);
14
15
  // https://astro.build/config
@@ -16,9 +17,11 @@ export default defineConfig({
16
17
  site: SiteConfig.site,
17
18
  integrations: [sitemap(), vue()],
18
19
  output: "static",
20
+
19
21
  build: {
20
22
  format: "directory"
21
23
  },
24
+
22
25
  markdown: {
23
26
  syntaxHighlight: "shiki",
24
27
  shikiConfig: {
@@ -29,5 +32,7 @@ export default defineConfig({
29
32
  remarkPlugins: remarkPlugins,
30
33
  rehypePlugins: rehypePlugins
31
34
  },
32
- trailingSlash: "ignore"
35
+
36
+ trailingSlash: "ignore",
37
+ // adapter: netlify()
33
38
  });
package/cz.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ commitizen:
3
+ name: cz_conventional_commits
4
+ tag_format: v$version
5
+ update_changelog_on_bump: true
6
+ version_provider: npm
7
+ version_scheme: semver
@@ -0,0 +1,11 @@
1
+ version: '3'
2
+
3
+ services:
4
+ app:
5
+ image: node:20
6
+ ports:
7
+ - 4321:4321
8
+ working_dir: /app
9
+ command: npm run dev -- --host 0.0.0.0
10
+ volumes:
11
+ - ./:/app
package/netlify.toml ADDED
@@ -0,0 +1,4 @@
1
+ [build]
2
+ command = "npm ci"
3
+ command2 = "npm run build"
4
+ publish = "dist"
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minearm-website",
3
3
  "description": "Welcome to Minearm & Website.",
4
- "version": "0.0.3-beta.2",
4
+ "version": "0.1.2",
5
5
  "homepage": "https://github.com/Minearm-RPM/minearm",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -18,14 +18,14 @@
18
18
  "pu": "ts-node ./pu.ts"
19
19
  },
20
20
  "dependencies": {
21
- "@astrojs/markdown-remark": "^5.3.0",
22
- "@astrojs/mdx": "^3.1.9",
23
- "@astrojs/rss": "^4.0.9",
21
+ "@astrojs/markdown-remark": "^6.0.1",
22
+ "@astrojs/mdx": "^4.0.2",
23
+ "@astrojs/rss": "^4.0.10",
24
24
  "@duannx/vue-client-only": "^1.0.3",
25
25
  "@fortawesome/fontawesome-svg-core": "^6.4.0",
26
26
  "@fortawesome/free-solid-svg-icons": "^6.4.0",
27
27
  "@iconify-json/tabler": "^1.2.8",
28
- "astro": "^4.16.13",
28
+ "astro": "^5.0.5",
29
29
  "astro-i18next": "^1.0.0-beta.21",
30
30
  "astro-icon": "^1.1.2",
31
31
  "fuse.js": "^6.6.2",
@@ -35,7 +35,7 @@
35
35
  "markdown-loader": "^8.0.0",
36
36
  "marked": "^15.0.0",
37
37
  "mdast-util-to-string": "^4.0.0",
38
- "pnpm": "^9.13.2",
38
+ "pnpm": "^9.14.2",
39
39
  "reading-time": "^1.5.0",
40
40
  "rehype-katex": "7.0.1",
41
41
  "rehype-mathjax": "6.0.0",
@@ -47,18 +47,17 @@
47
47
  },
48
48
  "devDependencies": {
49
49
  "@astrojs/sitemap": "^3.2.1",
50
- "@astrojs/vue": "^4.5.2",
50
+ "@astrojs/vue": "^5.0.2",
51
51
  "@types/yargs": "^17.0.24",
52
52
  "sass": "1.70.0",
53
53
  "scss": "^0.2.4",
54
54
  "ts-node": "10.9.2",
55
- "vue": "3.5.0"
55
+ "vue": "^3.5.13"
56
56
  },
57
57
  "keywords": [
58
58
  "astro-component",
59
59
  "withastro"
60
60
  ],
61
61
  "main": "index.js",
62
- "author": "",
63
- "license": "ISC"
62
+ "author": ""
64
63
  }
package/public/13.png ADDED
Binary file
@@ -1,4 +1,4 @@
1
1
  {
2
- "totalWordCounts": 116400,
3
- "totalPostCounts": 11
2
+ "totalWordCounts": 896,
3
+ "totalPostCounts": 2
4
4
  }
Binary file
@@ -139,7 +139,7 @@ document.onreadystatechange = async () => {
139
139
  filter: drop-shadow(0 0 10px yellow);
140
140
  animation-delay: -0.5s;
141
141
  }
142
- .load :last-child {
142
+ .load :last-child {
143
143
  background: #99ff00;
144
144
  border: 5px solid #99ff00;
145
145
  filter: drop-shadow(0 0 10px #99ff00);
@@ -14,13 +14,15 @@ category: 'Rust'
14
14
  ---
15
15
  # Rust 基础语法
16
16
 
17
- (说明) 复制滴别想,抄作业滴不要,若需要,滴开启超级复制插件
17
+ # 说明
18
+
19
+ 复制滴别想,抄作业滴不要,若需要,滴开启超级复制插件
18
20
 
19
21
  变量,基本类型,函数,注释和控制流,这些几乎是每种编程语言都具有的编程概念。
20
22
 
21
23
  这些基础概念将存在于每个 Rust 程序中,及早学习它们将使你以最快的速度学习 Rust 的使用。
22
24
 
23
- 变量
25
+ # 变量
24
26
  首先必须说明,Rust 是强类型语言,但具有自动判断变量类型的能力。这很容易让人与弱类型语言产生混淆。
25
27
 
26
28
  默认情况下,Rust 中的变量是不可变的,除非使用 mut 关键字声明为可变变量。
@@ -81,22 +83,25 @@ let a: u64 = 114;
81
83
 
82
84
  这里声明了 a 为无符号 64 位整型变量,如果没有声明类型,a 将自动被判断为有符号 32 位整型变量,这对于 a 的取值范围有很大的影响。
83
85
 
84
- 数据类型
86
+ # 数据类型
87
+
85
88
  Rust 是静态类型语言,在变量声明时可以显式指定类型,但通常可以依赖类型推断。
86
89
 
87
90
  基本类型: i32 (32位有符号整数), u32 (32位无符号整数), f64 (64位浮点数), bool (布尔类型), char (字符)
88
91
 
89
- 实例
92
+ - 实例
90
93
  ```rust
91
94
  let x: i32 = 42;
92
95
  let y: f64 = 3.14;
93
96
  let is_true: bool = true;
94
97
  let letter: char = 'A';
95
98
  ```
96
- 函数
99
+
100
+ # 函数
101
+
97
102
  Rust 函数通过 fn 关键字定义,函数的返回类型通过箭头符号 -> 指定。
98
103
 
99
- 实例
104
+ - 实例
100
105
  ```rust
101
106
  fn add(a: i32, b: i32) -> i32 {
102
107
  a + b
@@ -104,10 +109,10 @@ fn add(a: i32, b: i32) -> i32 {
104
109
  ```
105
110
  如果函数没有返回值,类型默认为 ()(即空元组)。
106
111
 
107
- 控制流
108
- if 表达式
112
+ **控制流**
113
+ # if 表达式
109
114
 
110
- 实例
115
+ - 实例
111
116
  ```rust
112
117
  let number = 7;
113
118
  if number < 5 {
@@ -116,9 +121,11 @@ if number < 5 {
116
121
  println!("大于等于 5");
117
122
  }
118
123
  ```
119
- loop 循环: loop 是 Rust 中的无限循环,可以使用 break 退出循环。
124
+ # loop 循环
125
+
126
+ loop 是 Rust 中的无限循环,可以使用 break 退出循环。
120
127
 
121
- 实例
128
+ - 实例
122
129
  ```rust
123
130
  let mut counter = 0;
124
131
  loop {
@@ -128,9 +135,10 @@ loop {
128
135
  }
129
136
  }
130
137
  ```
131
- while 循环
132
138
 
133
- 实例
139
+ # while 循环
140
+
141
+ - 实例
134
142
  ```rust
135
143
  let mut number = 3;
136
144
  while number != 0 {
@@ -139,15 +147,15 @@ while number != 0 {
139
147
  }
140
148
  ```
141
149
 
142
- for 循环
150
+ # for 循环
143
151
 
144
- 实例
152
+ - 实例
145
153
  ```rust
146
154
  for number in 1..4 {
147
155
  println!("{}!", number);
148
156
  }
149
157
  ```
150
- 所有权 (Ownership)
158
+ # 所有权
151
159
  Rust 中的所有权是独特的内存管理机制,核心概念包括所有权 (ownership)、借用 (borrowing) 和引用 (reference)。
152
160
 
153
161
  所有权规则:
@@ -160,7 +168,8 @@ let s1 = String::from("hello");
160
168
  let s2 = s1; // s1 的所有权被转移给了 s2
161
169
  // println!("{}", s1); // 此处编译会报错,因为 s1 已不再拥有该值
162
170
  ```
163
- 借用和引用: 借用允许引用数据而不获取所有权,通过 & 符号实现。
171
+ # 借用和引用
172
+ 借用允许引用数据而不获取所有权,通过 & 符号实现。
164
173
  ```rust
165
174
  fn main() {
166
175
  let s = String::from("hello");
@@ -172,10 +181,11 @@ fn calculate_length(s: &String) -> usize {
172
181
  s.len()
173
182
  }
174
183
  ```
175
- 结构体 (Structs)
184
+ # 结构体
185
+
176
186
  结构体用于创建自定义类型,字段可以包含多种数据类型。
177
187
 
178
- 实例
188
+ - 实例
179
189
  ```rust
180
190
  struct User {
181
191
  username: String,
@@ -191,10 +201,11 @@ let user1 = User {
191
201
  active: true,
192
202
  };
193
203
  ```
194
- 枚举 (Enums)
204
+ # 枚举
205
+
195
206
  枚举允许定义可能的几种数据类型中的一种。
196
207
 
197
- 实例
208
+ - 实例
198
209
  ```rust
199
210
  enum IpAddrKind {
200
211
  V4,
@@ -204,10 +215,10 @@ enum IpAddrKind {
204
215
  let four = IpAddrKind::V4;
205
216
  let six = IpAddrKind::V6;
206
217
  ```
207
- 模式匹配 (match)
218
+ # 模式匹配
208
219
  match 是 Rust 中强大的控制流工具,类似于 switch 语句。
209
220
 
210
- 实例
221
+ - 实例
211
222
  ```rust
212
223
  enum Coin {
213
224
  Penny,
@@ -225,13 +236,13 @@ fn value_in_cents(coin: Coin) -> u8 {
225
236
  }
226
237
  }
227
238
  ```
228
- 错误处理
239
+ # 错误处理
229
240
 
230
241
  Rust 有两种主要的错误处理方式:Result<T, E> 和 Option<T>。
231
242
 
232
243
  Result:
233
244
 
234
- 实例
245
+ - 实例
235
246
  ```rust
236
247
  enum Result<T, E> {
237
248
  Ok(T),
@@ -248,7 +259,7 @@ fn divide(a: i32, b: i32) -> Result<i32, String> {
248
259
  ```
249
260
  Option:
250
261
 
251
- 实例
262
+ - 实例
252
263
  ```rust
253
264
  fn get_element(index: usize, vec: &Vec<i32>) -> Option<i32> {
254
265
  if index < vec.len() {
@@ -261,7 +272,7 @@ fn get_element(index: usize, vec: &Vec<i32>) -> Option<i32> {
261
272
  所有权与借用的生命周期
262
273
  Rust 使用生命周期来确保引用的有效性。生命周期标注用 'a 等来表示,但常见的情况下,编译器会自动推导。
263
274
 
264
- 实例
275
+ - 实例
265
276
  ```rust
266
277
  fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
267
278
  if x.len() > y.len() {
@@ -271,12 +282,13 @@ fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {
271
282
  }
272
283
  }
273
284
  ```
274
- 重影(Shadowing)
285
+ # 重影
286
+
275
287
  重影的概念与其他面向对象语言里的"重写"(Override)或"重载"(Overload)是不一样的。重影就是刚才讲述的所谓"重新绑定",之所以加引号就是为了在没有介绍这个概念的时候代替一下概念。
276
288
 
277
289
  重影就是指变量的名称可以被重新使用的机制:
278
290
 
279
- 实例
291
+ - 实例
280
292
  ```rust
281
293
  fn main() {
282
294
  let x = 5;
@@ -1,6 +1,5 @@
1
1
  import { defineCollection, z } from "astro:content";
2
2
  import { utils } from "@utils/utils";
3
-
4
3
  const blogCollection = defineCollection({
5
4
  schema: z.object({
6
5
  title: z.string(),
@@ -0,0 +1,21 @@
1
+ import fs from 'fs';
2
+ import path from 'path';
3
+ import matter from 'gray-matter';
4
+
5
+ const postsDirectory = path.join(process.cwd(), 'src/posts');
6
+
7
+ export function getPosts() {
8
+ const fileNames = fs.readdirSync(postsDirectory);
9
+ const allPostsData = fileNames.map(fileName => {
10
+ const fullPath = path.join(postsDirectory, fileName);
11
+ const fileContents = fs.readFileSync(fullPath, 'utf8');
12
+ const matterResult = matter(fileContents);
13
+
14
+ return {
15
+ data: matterResult.data,
16
+ content: matterResult.content,
17
+ url: `/posts/${fileName.replace(/\.md$/, '')}`
18
+ };
19
+ });
20
+ return allPostsData.sort((a, b) => b.data.pubDate.localeCompare(a.data.pubDate));
21
+ }
@@ -3,9 +3,9 @@ import HomeLayout from "@src/layouts/HomeLayout.astro";
3
3
  import PostsList from "@comp/postlist/postsList.astro";
4
4
  import Pagination from "@comp/postlist/pagination.astro";
5
5
  import { ThemeConfig } from "@src/theme_config";
6
- import { ViewTransitions } from 'astro:transitions';
7
6
  import { utils } from "@src/utils/utils";
8
7
  import { type CollectionEntry, getCollection } from "astro:content";
8
+
9
9
  export async function getStaticPaths({ paginate }: any) {
10
10
  const posts: CollectionEntry<"blog">[] = (await getCollection("blog")).sort(
11
11
  (a: { data: { pubDate: string; }; }, b: { data: { pubDate: string; }; }) => utils.compareDates(a.data.pubDate, b.data.pubDate)
@@ -14,8 +14,12 @@ export async function getStaticPaths({ paginate }: any) {
14
14
  }
15
15
 
16
16
  const { page } = Astro.props;
17
- ---
18
17
 
18
+ // 确保 page 对象包含正确的数据
19
+ if (!page || !page.data) {
20
+ throw new Error("Invalid page data");
21
+ }
22
+ ---
19
23
  <HomeLayout>
20
24
  {
21
25
  ThemeConfig.homePage.heroShoot && (
@@ -37,10 +41,10 @@ const { page } = Astro.props;
37
41
  page.lastPage > 1 && (
38
42
  <Pagination
39
43
  baseurl="/"
40
- pageSize={page.lastPage}
44
+ pageSize={page.pageSize}
41
45
  activePage={page.currentPage}
42
46
  />
43
47
  )
44
48
  }
45
49
  </Fragment>
46
- </HomeLayout>
50
+ </HomeLayout>
@@ -7,84 +7,88 @@ useComments: true
7
7
  useToc: true
8
8
  ---
9
9
  # Minearm & Website
10
- Minearm是一个astro主题
11
- # 本主题是从HusBlog改进而来的
12
- url: https://github.com/KraHsu/HsuBlog.git
10
+ # 本主题是从[HusBlog](https://github.com/KraHsu/HsuBlog.git)改进而来的
11
+ 最新的正式版是0.1.2
12
+ 最新的测试版是0.0.3-beta.4
13
13
 
14
- 成品: www.minearm.org
14
+ 但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到5.0.5
15
+
16
+ # 效果
17
+ ![Minearm](https://portal.astro.build/_image?href=https%3A%2F%2Fstorage.googleapis.com%2Fdev-portal-bucket%2Fkotpt1ztaalrk5frua5pnwdvoh185ylgg0rio9.webp)
18
+
19
+ # node(环境)
20
+
21
+ 要让 Astro 在你的系统上运行,你还需要安装 Node.js,版本 v18.17.1 或 v20.3.0 或更高版本。(不支持 v19)
15
22
 
16
23
  # 文件结构
17
24
 
18
25
  ```bash
19
- root@rsp4:/Minearm# tree -d
20
- .
21
- ├── public
22
- │ └── scripts
23
- └── src
24
- ├── components
25
- ├── animation
26
- ├── aside
27
- ├── client
28
- ├── footer
29
- ├── header
30
- ├── icons
31
- ├── loading
32
- │ └── postlist
33
- ├── content
34
- └── blog
35
- │ └── default
36
- │ ├── history
37
- │ ├── 公元前
38
- │ └── 近代篇
39
- └── it
40
- ├── layouts
41
- ├── pages
42
- ├── about
43
- ├── blog
44
- │ ├── categories
45
- │ └── [category]
46
- ├── friends
47
- └── tags
48
- └── [tag]
49
- ├── styles
50
- ├── blog
51
- │ │ └── dist
52
- │ ├── components
53
- │ │ └── dist
54
- │ ├── dist
55
- │ └── tags
56
- └── utils
57
-
26
+ root
27
+ ├─public
28
+ │ └─scripts
29
+ └─src
30
+ ├─components
31
+ │ ├─animation
32
+ ├─aside
33
+ ├─client
34
+ ├─footer
35
+ ├─header
36
+ ├─icons
37
+ ├─loading
38
+ └─postlist
39
+ ├─content
40
+ │ └─blog
41
+ └─default
42
+ ├─layouts
43
+ ├─pages
44
+ ├─about
45
+ ├─blog
46
+ ├─categories
47
+ │ │ └─[category]
48
+ │ ├─friends
49
+ └─tags
50
+ └─[tag]
51
+ ├─styles
52
+ ├─blog
53
+ │ └─dist
54
+ ├─components
55
+ │ └─dist
56
+ │ ├─dist
57
+ └─tags
58
+ └─utils
58
59
  ```
59
60
 
60
61
  ~~~bash
61
- # 拉取minearm
62
- git clone https://github.com/Minearm-RPM/minearm.git
62
+ # 安装主题
63
+ npm i minearm-website
64
+ ~~~
63
65
 
66
+ # 进入astro目录
67
+ ~~~
68
+ cd node_modules/minearm-website
64
69
  ~~~
65
70
 
66
- ~~~bash
71
+ ~~~
67
72
  # 安装依赖
68
73
  npm install
69
- # 后续更新
74
+ # 更新
70
75
  npm update
71
76
  ~~~
72
77
 
73
- ~~~bash
78
+ ~~~
74
79
  # 启动开发预览
75
80
  npm run dev
76
81
  ~~~
77
82
 
78
- ~~~bash
83
+ ~~~
79
84
  # 构建和预览
80
85
  npm run build
81
86
  npm run preview
82
87
  ~~~
83
88
 
84
-
85
89
  # 许可证
86
90
  本项目在MIT许可证下授权,版权所有©2024
87
91
 
88
92
  由Minearm-RPM构建的
89
93
 
90
- # 转载时需标明出处!。
94
+ # 转载时需标明出处!。
@@ -1,5 +1,5 @@
1
1
  ---
2
- import { CollectionEntry, getCollection } from "astro:content";
2
+ import { type CollectionEntry, getCollection } from "astro:content";
3
3
  import PostLayout from "@src/layouts/PostLayout.astro";
4
4
  import HeroWave from "@comp/header/heroWave.astro";
5
5
  import GetIcon from "@comp/icons/getIcon.astro";
@@ -17,8 +17,8 @@ useToc: true
17
17
 
18
18
  ::link[B站破击]{logo="/pojipao.avif" desc="全互联网最中二的傻逼" link="https://space.bilibili.com/1598534390"}
19
19
 
20
- ::link[ღꦿlove.情绪℘]{logo="/13.jpg" desc="明天要被历史肘击😭" link="mailto:2939765322@qq.com"}
20
+ ::link[এ՞情绪ᮨ℘]{logo="/13.png" desc="明天要被历史肘击😭" link="mailto:2939765322@qq.com"}
21
21
 
22
22
  ::link[三的根号]{logo="/3.png" desc="√3每日发疯" link="https://space.bilibili.com/1832902560"}
23
23
 
24
- ::link[智宇]{logo="https://zhiyuhub.top/upload/be2bb1bb-8d91-4e9b-8b4d-00d4c45774ae.png" desc="root@kali:/#" link="https://zhiyuhub.top/"}
24
+ ::link[智宇]{logo="https://zhiyuhub.top/upload/be2bb1bb-8d91-4e9b-8b4d-00d4c45774ae.png" desc="root@kali:/#" link="https://zhiyuhub.top/"}
@@ -2,7 +2,7 @@ import { Icons } from "@comp/icons/icon";
2
2
  import { SiteConfig } from "./site_config";
3
3
  // import { faStar } from "@fortawesome/free-solid-svg-icons";
4
4
  // import { library, icon } from "@fortawesome/fontawesome-svg-core";
5
- //import Code from '~/components/code.astro';
5
+ //import Code from './components/c.astro';
6
6
  // library.add(faStar);
7
7
  // const starIcon = icon({ prefix: "fas", iconName: "star" });
8
8
 
@@ -170,9 +170,10 @@ export const ThemeConfig: Configs = {
170
170
  // },
171
171
  type: "waline",
172
172
  options: {
173
- serverURL: "https://api.minearm.org",
173
+ serverURL: "https://comments.minearm.org",
174
174
  },
175
175
  //type: true,
176
176
  //options: null,
177
177
  },
178
178
  };
179
+
package/public/13.jpg DELETED
Binary file
@@ -1,50 +0,0 @@
1
- ---
2
- title: Extended Search
3
- description: '关于Minearm-RPM & Website所使用的fusejs的扩展搜索语法'
4
- heroColor: ''
5
- pubDate: 2024-09-25
6
- abbrlink: Search-help
7
- cover: "/help1.png"
8
- coverAlt: "help1"
9
- tags:
10
- - 'localSearch'
11
- - 'Extended Search'
12
- category: 'Help'
13
- ---
14
-
15
- ## Extended Search
16
-
17
- This site uses [fusejs](https://www.fusejs.io) to provide local search services, allowing you to use extended search - a search format that can fine-tune search results, similar to:color[unix]{color="green"}
18
-
19
- Space represents logical `AND`, pipe symbol | represents logical `OR`, and to escape spaces, use double quotes `""`.
20
-
21
- | **Token** | **Match type** | **Description** |
22
- | ----------- | -------------------------- | -------------------------------------- |
23
- | `jscript` | fuzzy-match | Items that fuzzy match `jscript` |
24
- | `=scheme` | exact-match | Items that are `scheme` |
25
- | `'python` | include-match | Items that include `python` |
26
- | `!ruby` | inverse-exact-match | Items that do not include `ruby` |
27
- | `^java` | prefix-exact-match | Items that start with `java` |
28
- | `!^earlang` | inverse-prefix-exact-match | Items that do not start with `earlang` |
29
- | `.js$` | suffix-exact-match | Items that end with `.js` |
30
- | `!.go$` | inverse-suffix-exact-match | Items that do not end with `.go` |
31
-
32
- ## 扩展搜索
33
-
34
- 本站使用[fusejs](https://www.fusejs.io)提供本地搜索服务,允许您使用扩展搜索——一种可以微调搜索结果的搜索格式,类似于:color[unix]{color="green"}
35
-
36
- 空格代表逻辑与`AND`,管道符|代表逻辑或`OR`,如要转义空格请使用双引号`""`
37
- | **令牌** | **匹配类型** | **描述** |
38
- | ----------- | ---------------- | --------------------------- |
39
- | `jscript` | 模糊匹配 | 与 `jscript` 模糊匹配的项目 |
40
- | `=scheme` | 精确匹配 | 是 `scheme` 的项目 |
41
- | `'python` | 包含匹配 | 包含 `python` 的项目 |
42
- | `!ruby` | 反向精确匹配 | 不包含 `ruby` 的项目 |
43
- | `^java` | 前缀精确匹配 | 以 `java` 开头的项目 |
44
- | `!^earlang` | 反向前缀精确匹配 | 不以 `earlang` 开头的项目 |
45
- | `.js$` | 后缀精确匹配 | 以 `.js` 结尾的项目 |
46
- | `!.go$` | 反向后缀精确匹配 | 不以 `.go` 结尾的项目 |
47
-
48
-
49
-
50
-
@@ -1,15 +0,0 @@
1
- ---
2
- title: Mail
3
- description: ''
4
- pubDate: 2024-09-30
5
- heroColor: ''
6
- abbrlink: mail
7
- cover: "/mail.png"
8
- coverAlt: "mail"
9
- tags:
10
- - 'Tutorial'
11
- category: 'Mail'
12
- ---
13
-
14
- ## Mali
15
- minearm@minearm.org