minearm-website 0.1.2 → 0.2.0
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/.hintrc +16 -0
- package/LICENSE.md +21 -21
- package/README.md +11 -7
- package/astro.config.ts +37 -37
- package/package.json +64 -63
- package/public/13.jpg +0 -0
- package/public/scripts/mdata.json +2 -2
- package/public/scripts/searchData.json +47 -0
- package/src/components/Search.astro +1 -1
- package/src/components/icons/bilibili.astro +1 -2
- package/src/components/icons/c.astro +1 -2
- package/src/components/icons/cube.astro +1 -2
- package/src/components/icons/hardDriver.astro +1 -2
- package/src/components/icons/home.astro +1 -2
- package/src/components/loading/loading.vue +1 -13
- package/src/components/postlist/pagination.astro +39 -25
- package/src/components/postlist/postsList.astro +1 -1
- package/src/content/blog/Extended Search.md +50 -0
- package/src/content/blog/Mail.md +15 -0
- package/src/content/blog/history//345/205/254/345/205/203/345/211/215//347/247/246/345/247/213/347/232/207/347/273/237/344/270/200/345/205/255/345/233/275.md +1 -0
- package/src/content/blog/history//350/277/221/344/273/243/347/257/207//344/270/255/345/233/275/345/205/261/344/272/247/345/205/232/345/205/232/345/217/262.md +99 -100
- package/src/content/blog/it/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md +14 -0
- package/src/pages/404.md +1 -2
- package/src/pages/[...page].astro +13 -10
- package/src/pages/about/index.md +11 -7
- package/src/pages/blog/[...slug].astro +1 -1
- package/src/pages/categories/index.astro +2 -2
- package/src/pages/tags/index.astro +3 -2
- package/src/styles/blog/dist/blog.css +59 -0
- package/src/styles/blog/dist/code.css +59 -0
- package/src/styles/blog/dist/index.css +1 -0
- package/src/styles/blog/dist/post.css +246 -0
- package/src/styles/components/aside.scss +1 -1
- package/src/styles/components/dist/footer.css +29 -0
- package/src/styles/components/dist/index.css +1 -0
- package/src/styles/components/dist/page-content.css +60 -0
- package/src/styles/components/header.scss +1 -1
- package/src/styles/components/main.scss +1 -1
- package/src/styles/dist/animation.css +8 -0
- package/src/styles/dist/custom.css +10 -0
- package/src/styles/dist/global.css +1095 -0
- package/src/styles/dist/mixin.css +0 -0
- package/src/styles/global.scss +2 -2
- package/src/styles/tags/tags.scss +13 -23
- package/src/theme_config.ts +5 -6
- package/src/components/icons/game.astro +0 -10
- package/src/lib/posts.js +0 -21
package/.hintrc
ADDED
package/LICENSE.md
CHANGED
@@ -1,21 +1,21 @@
|
|
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.
|
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,9 +1,9 @@
|
|
1
1
|
# Minearm & Website
|
2
2
|
# 本主题是从[HusBlog](https://github.com/KraHsu/HsuBlog.git)改进而来的
|
3
|
-
最新的正式版是0.
|
3
|
+
最新的正式版是0.2.0
|
4
4
|
最新的测试版是0.0.3-beta.4
|
5
5
|
|
6
|
-
但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到5.
|
6
|
+
但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到5.1.10
|
7
7
|
|
8
8
|
# 效果
|
9
9
|

|
@@ -53,34 +53,38 @@ root
|
|
53
53
|
~~~bash
|
54
54
|
# 安装主题
|
55
55
|
npm i minearm-website
|
56
|
+
git clone https://github.com/Minearm-RPM/Minearm.git node_modules/
|
56
57
|
~~~
|
57
58
|
|
58
59
|
# 进入astro目录
|
59
|
-
~~~
|
60
|
+
~~~bash
|
60
61
|
cd node_modules/minearm-website
|
62
|
+
# 或者(对应上面两种方法)
|
63
|
+
cd node_modules/
|
61
64
|
~~~
|
62
65
|
|
63
|
-
~~~
|
66
|
+
~~~bash
|
64
67
|
# 安装依赖
|
65
68
|
npm install
|
66
69
|
# 更新
|
67
70
|
npm update
|
68
71
|
~~~
|
69
72
|
|
70
|
-
~~~
|
73
|
+
~~~bash
|
71
74
|
# 启动开发预览
|
72
75
|
npm run dev
|
73
76
|
~~~
|
74
77
|
|
75
|
-
~~~
|
78
|
+
~~~bash
|
76
79
|
# 构建和预览
|
77
80
|
npm run build
|
78
81
|
npm run preview
|
79
82
|
~~~
|
80
83
|
|
81
84
|
# 许可证
|
85
|
+
|
82
86
|
本项目在MIT许可证下授权,版权所有©2024
|
83
87
|
|
84
88
|
由Minearm-RPM构建的
|
85
89
|
|
86
|
-
#
|
90
|
+
# 转载时需标明出处
|
package/astro.config.ts
CHANGED
@@ -1,38 +1,38 @@
|
|
1
|
-
import { defineConfig } from "astro/config";
|
2
|
-
import sitemap from "@astrojs/sitemap";
|
3
|
-
import { markdownDirectives, remarkFrontmatter, rehypeFrontmatter, remarkRestyling, rehypeRestyling } from "./src/utils/md";
|
4
|
-
import remarkGfm from "remark-gfm";
|
5
|
-
import remarkMath from "remark-math";
|
6
|
-
import rehypeKatex from "rehype-katex";
|
7
|
-
import rehypeMathjax from "rehype-mathjax";
|
8
|
-
import remarkDirective from "remark-directive";
|
9
|
-
import vue from "@astrojs/vue";
|
10
|
-
import { SiteConfig } from "./src/site_config";
|
11
|
-
import { generateSearchData } from "./src/utils/generateSearchData.ts";
|
12
|
-
//import netlify from "@astrojs/netlify";
|
13
|
-
const remarkPlugins: any = [remarkFrontmatter, remarkGfm, SiteConfig.markdownMath !== false && remarkMath, remarkRestyling, remarkDirective, markdownDirectives, SiteConfig.localSearch && generateSearchData].filter(Boolean);
|
14
|
-
const rehypePlugins: any = [rehypeFrontmatter, rehypeRestyling, SiteConfig.markdownMath === "Katex" && rehypeKatex, SiteConfig.markdownMath === "Mathjax" && rehypeMathjax].filter(Boolean);
|
15
|
-
// https://astro.build/config
|
16
|
-
export default defineConfig({
|
17
|
-
site: SiteConfig.site,
|
18
|
-
integrations: [sitemap(), vue()],
|
19
|
-
output: "static",
|
20
|
-
|
21
|
-
build: {
|
22
|
-
format: "directory"
|
23
|
-
},
|
24
|
-
|
25
|
-
markdown: {
|
26
|
-
syntaxHighlight: "shiki",
|
27
|
-
shikiConfig: {
|
28
|
-
theme: "css-variables",
|
29
|
-
langs: [],
|
30
|
-
wrap: false
|
31
|
-
},
|
32
|
-
remarkPlugins: remarkPlugins,
|
33
|
-
rehypePlugins: rehypePlugins
|
34
|
-
},
|
35
|
-
|
36
|
-
trailingSlash: "ignore",
|
37
|
-
// adapter: netlify()
|
1
|
+
import { defineConfig } from "astro/config";
|
2
|
+
import sitemap from "@astrojs/sitemap";
|
3
|
+
import { markdownDirectives, remarkFrontmatter, rehypeFrontmatter, remarkRestyling, rehypeRestyling } from "./src/utils/md";
|
4
|
+
import remarkGfm from "remark-gfm";
|
5
|
+
import remarkMath from "remark-math";
|
6
|
+
import rehypeKatex from "rehype-katex";
|
7
|
+
import rehypeMathjax from "rehype-mathjax";
|
8
|
+
import remarkDirective from "remark-directive";
|
9
|
+
import vue from "@astrojs/vue";
|
10
|
+
import { SiteConfig } from "./src/site_config";
|
11
|
+
import { generateSearchData } from "./src/utils/generateSearchData.ts";
|
12
|
+
//import netlify from "@astrojs/netlify";
|
13
|
+
const remarkPlugins: any = [remarkFrontmatter, remarkGfm, SiteConfig.markdownMath !== false && remarkMath, remarkRestyling, remarkDirective, markdownDirectives, SiteConfig.localSearch && generateSearchData].filter(Boolean);
|
14
|
+
const rehypePlugins: any = [rehypeFrontmatter, rehypeRestyling, SiteConfig.markdownMath === "Katex" && rehypeKatex, SiteConfig.markdownMath === "Mathjax" && rehypeMathjax].filter(Boolean);
|
15
|
+
// https://astro.build/config
|
16
|
+
export default defineConfig({
|
17
|
+
site: SiteConfig.site,
|
18
|
+
integrations: [sitemap(), vue()],
|
19
|
+
output: "static",
|
20
|
+
|
21
|
+
build: {
|
22
|
+
format: "directory"
|
23
|
+
},
|
24
|
+
|
25
|
+
markdown: {
|
26
|
+
syntaxHighlight: "shiki",
|
27
|
+
shikiConfig: {
|
28
|
+
theme: "css-variables",
|
29
|
+
langs: [],
|
30
|
+
wrap: false
|
31
|
+
},
|
32
|
+
remarkPlugins: remarkPlugins,
|
33
|
+
rehypePlugins: rehypePlugins
|
34
|
+
},
|
35
|
+
|
36
|
+
trailingSlash: "ignore",
|
37
|
+
// adapter: netlify()
|
38
38
|
});
|
package/package.json
CHANGED
@@ -1,63 +1,64 @@
|
|
1
|
-
{
|
2
|
-
"name": "minearm-website",
|
3
|
-
"description": "Welcome to Minearm & Website.",
|
4
|
-
"version": "0.
|
5
|
-
"homepage": "https://github.com/Minearm-RPM/minearm",
|
6
|
-
"type": "module",
|
7
|
-
"license": "MIT",
|
8
|
-
"scripts": {
|
9
|
-
"dev": "astro dev",
|
10
|
-
"start": "astro dev",
|
11
|
-
"build": "astro build",
|
12
|
-
"preview": "astro preview",
|
13
|
-
"astro": "astro",
|
14
|
-
"new": "ts-node ./minearm.ts new",
|
15
|
-
"abbr": "ts-node ./minearm.ts abbr",
|
16
|
-
"newpage": "ts-node ./minearm.ts newPage",
|
17
|
-
"help": "ts-node ./minearm.ts help",
|
18
|
-
"pu": "ts-node ./pu.ts"
|
19
|
-
},
|
20
|
-
"dependencies": {
|
21
|
-
"@astrojs/markdown-remark": "
|
22
|
-
"@astrojs/mdx": "
|
23
|
-
"@astrojs/rss": "
|
24
|
-
"@duannx/vue-client-only": "
|
25
|
-
"@fortawesome/fontawesome-svg-core": "
|
26
|
-
"@fortawesome/free-solid-svg-icons": "
|
27
|
-
"@iconify-json/tabler": "
|
28
|
-
"astro": "
|
29
|
-
"astro-i18next": "
|
30
|
-
"astro-icon": "
|
31
|
-
"fuse.js": "
|
32
|
-
"glob": "
|
33
|
-
"hastscript": "
|
34
|
-
"html-loader": "
|
35
|
-
"markdown-loader": "
|
36
|
-
"marked": "
|
37
|
-
"mdast-util-to-string": "
|
38
|
-
"
|
39
|
-
"
|
40
|
-
"
|
41
|
-
"rehype-
|
42
|
-
"
|
43
|
-
"remark-
|
44
|
-
"remark-
|
45
|
-
"
|
46
|
-
"
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
"@astrojs/
|
51
|
-
"@
|
52
|
-
"
|
53
|
-
"
|
54
|
-
"
|
55
|
-
"
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
"
|
60
|
-
|
61
|
-
|
62
|
-
"
|
63
|
-
|
1
|
+
{
|
2
|
+
"name": "minearm-website",
|
3
|
+
"description": "Welcome to Minearm & Website.",
|
4
|
+
"version": "0.2.0",
|
5
|
+
"homepage": "https://github.com/Minearm-RPM/minearm",
|
6
|
+
"type": "module",
|
7
|
+
"license": "MIT",
|
8
|
+
"scripts": {
|
9
|
+
"dev": "astro dev",
|
10
|
+
"start": "astro dev",
|
11
|
+
"build": "astro build",
|
12
|
+
"preview": "astro preview",
|
13
|
+
"astro": "astro",
|
14
|
+
"new": "ts-node ./minearm.ts new",
|
15
|
+
"abbr": "ts-node ./minearm.ts abbr",
|
16
|
+
"newpage": "ts-node ./minearm.ts newPage",
|
17
|
+
"help": "ts-node ./minearm.ts help",
|
18
|
+
"pu": "ts-node ./pu.ts"
|
19
|
+
},
|
20
|
+
"dependencies": {
|
21
|
+
"@astrojs/markdown-remark": "6.0.2",
|
22
|
+
"@astrojs/mdx": "4.0.7",
|
23
|
+
"@astrojs/rss": "4.0.11",
|
24
|
+
"@duannx/vue-client-only": "1.0.3",
|
25
|
+
"@fortawesome/fontawesome-svg-core": "6.7.2",
|
26
|
+
"@fortawesome/free-solid-svg-icons": "6.7.2",
|
27
|
+
"@iconify-json/tabler": "1.2.15",
|
28
|
+
"astro": "5.1.10",
|
29
|
+
"astro-i18next": "1.0.0-beta.21",
|
30
|
+
"astro-icon": "1.1.5",
|
31
|
+
"fuse.js": "7.0.0",
|
32
|
+
"glob": "11.0.1",
|
33
|
+
"hastscript": "9.0.0",
|
34
|
+
"html-loader": "5.1.0",
|
35
|
+
"markdown-loader": "8.0.0",
|
36
|
+
"marked": "15.0.6",
|
37
|
+
"mdast-util-to-string": "4.0.0",
|
38
|
+
"minearm-website": "^0.1.3",
|
39
|
+
"pnpm": "9.15.4",
|
40
|
+
"reading-time": "1.5.0",
|
41
|
+
"rehype-katex": "7.0.1",
|
42
|
+
"rehype-mathjax": "6.0.0",
|
43
|
+
"remark-directive": "3.0.1",
|
44
|
+
"remark-gfm": "4.0.0",
|
45
|
+
"remark-math": "6.0.0",
|
46
|
+
"showdown": "2.1.0",
|
47
|
+
"yargs": "17.7.2"
|
48
|
+
},
|
49
|
+
"devDependencies": {
|
50
|
+
"@astrojs/sitemap": "3.2.1",
|
51
|
+
"@astrojs/vue": "5.0.6",
|
52
|
+
"@types/yargs": "17.0.33",
|
53
|
+
"sass": "1.70.0",
|
54
|
+
"scss": "0.2.4",
|
55
|
+
"ts-node": "10.9.2",
|
56
|
+
"vue": "^3.5.13"
|
57
|
+
},
|
58
|
+
"keywords": [
|
59
|
+
"astro-component",
|
60
|
+
"withastro"
|
61
|
+
],
|
62
|
+
"main": "index.js",
|
63
|
+
"author": ""
|
64
|
+
}
|
package/public/13.jpg
ADDED
Binary file
|