minearm-website 0.0.3-beta.3 → 0.1.3

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.
Files changed (42) hide show
  1. package/Dockerfile +12 -0
  2. package/{LICENSE → LICENSE.md} +2 -2
  3. package/README.md +19 -4
  4. package/astro.config.ts +37 -32
  5. package/cz.yaml +7 -0
  6. package/docker-compose.yml +11 -0
  7. package/netlify.toml +4 -0
  8. package/package.json +63 -63
  9. package/public/13.png +0 -0
  10. package/public/scripts/mdata.json +3 -3
  11. package/public/scripts/searchData.json +47 -0
  12. package/src/content/blog/{default/history → 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 +2361 -2361
  13. package/src/content/blog/{default/it → it}/Rust/345/237/272/346/234/254/350/257/255/346/263/225.md +41 -29
  14. package/src/content/config.ts +1 -0
  15. package/src/layouts/BaseLayout.astro +0 -1
  16. package/src/layouts/DefaultMdLayout.astro +0 -4
  17. package/src/layouts/HomeLayout.astro +0 -2
  18. package/src/layouts/TagsLayout.astro +0 -1
  19. package/src/pages/404.md +1 -2
  20. package/src/pages/[...page].astro +8 -4
  21. package/src/pages/about/index.md +19 -5
  22. package/src/pages/categories/index.astro +2 -2
  23. package/src/pages/friends/index.md +2 -2
  24. package/src/pages/tags/index.astro +3 -2
  25. package/src/styles/blog/dist/blog.css +59 -0
  26. package/src/styles/blog/dist/code.css +59 -0
  27. package/src/styles/blog/dist/index.css +1 -0
  28. package/src/styles/blog/dist/post.css +246 -0
  29. package/src/styles/components/dist/footer.css +29 -0
  30. package/src/styles/components/dist/index.css +1 -0
  31. package/src/styles/components/dist/page-content.css +60 -0
  32. package/src/styles/dist/animation.css +8 -0
  33. package/src/styles/dist/custom.css +10 -0
  34. package/src/styles/dist/global.css +1095 -0
  35. package/src/styles/dist/mixin.css +0 -0
  36. package/src/theme_config.ts +4 -4
  37. package/src/components/Search.astro +0 -30
  38. package/src/components/icons/game.astro +0 -10
  39. package/src/components/postlist/postsList.astro +0 -57
  40. /package/src/content/blog/{default/Extended Search.md → Extended Search.md} +0 -0
  41. /package/src/content/blog/{default/Mail.md → Mail.md} +0 -0
  42. /package/src/content/blog/{default/history → 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" +0 -0
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,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 KraHsu
3
+ Copyright (c) 2024 onWidget
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,11 +1,17 @@
1
1
  # Minearm & Website
2
2
  # 本主题是从[HusBlog](https://github.com/KraHsu/HsuBlog.git)改进而来的
3
+ 最新的正式版是0.1.3
4
+ 最新的测试版是0.0.3-beta.4
3
5
 
4
- 但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到4.16.13
6
+ 但是Minearm & Website做出了很大的改变,比如修复了scss警告和升级astro版本到5.1.2
5
7
 
6
8
  # 效果
7
9
  ![Minearm](https://portal.astro.build/_image?href=https%3A%2F%2Fstorage.googleapis.com%2Fdev-portal-bucket%2Fkotpt1ztaalrk5frua5pnwdvoh185ylgg0rio9.webp)
8
10
 
11
+ # node(环境)
12
+
13
+ 要让 Astro 在你的系统上运行,你还需要安装 Node.js,版本 v18.17.1 或 v20.3.0 或更高版本。(不支持 v19)
14
+
9
15
  # 文件结构
10
16
 
11
17
  ```bash
@@ -47,29 +53,38 @@ root
47
53
  ~~~bash
48
54
  # 安装主题
49
55
  npm i minearm-website
56
+ git clone https://github.com/Minearm-RPM/Minearm.git node_modules/
50
57
  ~~~
51
58
 
59
+ # 进入astro目录
60
+ ~~~bash
61
+ cd node_modules/minearm-website
62
+ # 或者(对应上面两种方法)
63
+ cd node_modules/
52
64
  ~~~
65
+
66
+ ~~~bash
53
67
  # 安装依赖
54
68
  npm install
55
69
  # 更新
56
70
  npm update
57
71
  ~~~
58
72
 
59
- ~~~
73
+ ~~~bash
60
74
  # 启动开发预览
61
75
  npm run dev
62
76
  ~~~
63
77
 
64
- ~~~
78
+ ~~~bash
65
79
  # 构建和预览
66
80
  npm run build
67
81
  npm run preview
68
82
  ~~~
69
83
 
70
84
  # 许可证
85
+
71
86
  本项目在MIT许可证下授权,版权所有©2024
72
87
 
73
88
  由Minearm-RPM构建的
74
89
 
75
- # 转载时需标明出处!。
90
+ # 转载时需标明出处
package/astro.config.ts CHANGED
@@ -1,33 +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
- const remarkPlugins: any = [remarkFrontmatter, remarkGfm, SiteConfig.markdownMath !== false && remarkMath, remarkRestyling, remarkDirective, markdownDirectives, SiteConfig.localSearch && generateSearchData].filter(Boolean);
13
- const rehypePlugins: any = [rehypeFrontmatter, rehypeRestyling, SiteConfig.markdownMath === "Katex" && rehypeKatex, SiteConfig.markdownMath === "Mathjax" && rehypeMathjax].filter(Boolean);
14
- // https://astro.build/config
15
- export default defineConfig({
16
- site: SiteConfig.site,
17
- integrations: [sitemap(), vue()],
18
- output: "static",
19
- build: {
20
- format: "directory"
21
- },
22
- markdown: {
23
- syntaxHighlight: "shiki",
24
- shikiConfig: {
25
- theme: "css-variables",
26
- langs: [],
27
- wrap: false
28
- },
29
- remarkPlugins: remarkPlugins,
30
- rehypePlugins: rehypePlugins
31
- },
32
- trailingSlash: "ignore"
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()
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,63 +1,63 @@
1
- {
2
- "name": "minearm-website",
3
- "description": "Welcome to Minearm & Website.",
4
- "version": "0.0.3-beta.3",
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": "^5.3.0",
22
- "@astrojs/mdx": "^3.1.9",
23
- "@astrojs/rss": "^4.0.9",
24
- "@duannx/vue-client-only": "^1.0.3",
25
- "@fortawesome/fontawesome-svg-core": "^6.4.0",
26
- "@fortawesome/free-solid-svg-icons": "^6.4.0",
27
- "@iconify-json/tabler": "^1.2.8",
28
- "astro": "^4.16.13",
29
- "astro-i18next": "^1.0.0-beta.21",
30
- "astro-icon": "^1.1.2",
31
- "fuse.js": "^6.6.2",
32
- "glob": "^10.3.3",
33
- "hastscript": "^7.2.0",
34
- "html-loader": "^0.5.5",
35
- "markdown-loader": "^8.0.0",
36
- "marked": "^15.0.0",
37
- "mdast-util-to-string": "^4.0.0",
38
- "pnpm": "^9.14.2",
39
- "reading-time": "^1.5.0",
40
- "rehype-katex": "7.0.1",
41
- "rehype-mathjax": "6.0.0",
42
- "remark-directive": "3.0.0",
43
- "remark-gfm": "4.0.0",
44
- "remark-math": "6.0.0",
45
- "showdown": "^2.1.0",
46
- "yargs": "^17.7.2"
47
- },
48
- "devDependencies": {
49
- "@astrojs/sitemap": "^3.2.1",
50
- "@astrojs/vue": "^4.5.2",
51
- "@types/yargs": "^17.0.24",
52
- "sass": "1.70.0",
53
- "scss": "^0.2.4",
54
- "ts-node": "10.9.2",
55
- "vue": "3.5.0"
56
- },
57
- "keywords": [
58
- "astro-component",
59
- "withastro"
60
- ],
61
- "main": "index.js",
62
- "author": ""
63
- }
1
+ {
2
+ "name": "minearm-website",
3
+ "description": "Welcome to Minearm & Website.",
4
+ "version": "0.1.3",
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.1",
22
+ "@astrojs/mdx": "^4.0.3",
23
+ "@astrojs/rss": "^4.0.11",
24
+ "@duannx/vue-client-only": "^1.0.3",
25
+ "@fortawesome/fontawesome-svg-core": "^6.4.0",
26
+ "@fortawesome/free-solid-svg-icons": "^6.4.0",
27
+ "@iconify-json/tabler": "^1.2.8",
28
+ "astro": "^5.1.2",
29
+ "astro-i18next": "^1.0.0-beta.21",
30
+ "astro-icon": "^1.1.2",
31
+ "fuse.js": "^6.6.2",
32
+ "glob": "^10.3.3",
33
+ "hastscript": "^7.2.0",
34
+ "html-loader": "^5.1.0",
35
+ "markdown-loader": "^8.0.0",
36
+ "marked": "^15.0.0",
37
+ "mdast-util-to-string": "^4.0.0",
38
+ "pnpm": "^9.14.2",
39
+ "reading-time": "^1.5.0",
40
+ "rehype-katex": "7.0.1",
41
+ "rehype-mathjax": "6.0.0",
42
+ "remark-directive": "3.0.0",
43
+ "remark-gfm": "4.0.0",
44
+ "remark-math": "6.0.0",
45
+ "showdown": "^2.1.0",
46
+ "yargs": "^17.7.2"
47
+ },
48
+ "devDependencies": {
49
+ "@astrojs/sitemap": "^3.2.1",
50
+ "@astrojs/vue": "^5.0.4",
51
+ "@types/yargs": "^17.0.24",
52
+ "sass": "1.70.0",
53
+ "scss": "^0.2.4",
54
+ "ts-node": "10.9.2",
55
+ "vue": "^3.5.13"
56
+ },
57
+ "keywords": [
58
+ "astro-component",
59
+ "withastro"
60
+ ],
61
+ "main": "index.js",
62
+ "author": ""
63
+ }
package/public/13.png ADDED
Binary file
@@ -1,4 +1,4 @@
1
- {
2
- "totalWordCounts": 900,
3
- "totalPostCounts": 2
1
+ {
2
+ "totalWordCounts": 896,
3
+ "totalPostCounts": 2
4
4
  }