Skip to content

Commit

Permalink
feat(icon): migrate icons from FontAwesome to Iconify
Browse files Browse the repository at this point in the history
  • Loading branch information
rockbenben committed Aug 18, 2024
1 parent 27d056e commit e3e4f22
Show file tree
Hide file tree
Showing 35 changed files with 51 additions and 50 deletions.
20 changes: 10 additions & 10 deletions docs/.vuepress/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import { navbar } from "vuepress-theme-hope";
// https://fontawesome.com/search?m=free&o=r
// 专题话题的路径需在尾部添加 /,否则有可能出现链接错误。比如下方「生活」中的 baby/
export default navbar([
{ text: "博客", icon: "fa-solid fa-blog", link: "/blog" },
{ text: "博客", icon: "fa6-solid:blog", link: "/blog" },
{
text: "应用",
icon: "fa-solid fa-bars-staggered",
icon: "fa6-solid:bars-staggered",
prefix: "/",
children: [
"apps/Applist",
{
text: "常用扩展",
icon: "fa-brands fa-chrome",
icon: "fa6-brands:chrome",
link: "apps/Chrome",
},
{
Expand All @@ -23,7 +23,7 @@ export default navbar([
children: [
{
text: "专题示例",
icon: "fa-solid fa-dice-d20",
icon: "fa6-solid:dice-d20",
link: "apps/topic/",
},
],
Expand All @@ -32,24 +32,24 @@ export default navbar([
},
{
text: "生活",
icon: "fa-solid fa-bed-pulse",
icon: "fa6-solid:bed-pulse",
prefix: "/family/",
children: ["Diet", "Coupon"],
},
{
text: "工具",
icon: "fa-solid fa-toolbox",
icon: "fa6-solid:toolbox",
children: [
{
text: "ChatGPT SC",
icon: "fa-solid fa-bolt",
icon: "fa6-solid:bolt",
link: "https://www.aishort.top/",
},
{ text: "IMGPrompt", icon: "fa-solid fa-image", link: "https://prompt.newzone.top/" },
{ text: "多语言翻译", icon: "fa-solid fa-language", link: "https://tools.newzone.top/json-translate" },
{ text: "IMGPrompt", icon: "fa6-solid:image", link: "https://prompt.newzone.top/" },
{ text: "多语言翻译", icon: "fa6-solid:language", link: "https://tools.newzone.top/json-translate" },
{
text: "工具收藏",
icon: "fa-solid fa-bars",
icon: "fa6-solid:bars",
link: "https://nav.newzone.top/",
},
],
Expand Down
12 changes: 6 additions & 6 deletions docs/.vuepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default sidebar({
"/DailyRoutine",
"/Fitness",
// 读书笔记架构更换到 docsify,不能使用相对链接
{ text: "读书笔记", icon: "fa-brands fa-readme", link: "https://newzone.top/reading/" },
{ text: "读书笔记", icon: "fa6-brands:readme", link: "https://newzone.top/reading/" },
// 指定显示页面
{
text: "🧰 应用手册",
Expand All @@ -20,7 +20,7 @@ export default sidebar({
"toolbox.md",
{
text: "其他",
icon: "fa-solid fa-code-compare",
icon: "fa6-solid:code-compare",
collapsible: true,
children: ["design.md"],
},
Expand All @@ -46,7 +46,7 @@ export default sidebar({
"VPS.md",
{
text: "部署工具",
icon: "fa-brands fa-windows",
icon: "fa6-brands:windows",
collapsible: true,
children: ["GitHub.md", "Cloudflare.md", "MySQL.md", "DNS.md"],
},
Expand All @@ -61,13 +61,13 @@ export default sidebar({
"README.md",
{
text: "Basic",
icon: "fa-solid fa-cube",
icon: "fa6-solid:cube",
collapsible: true,
children: ["Markdown.md", "Electron.md", "AutoHotkey.md", "Regex.md"],
},
{
text: "FrondEnd",
icon: "fa-solid fa-object-group",
icon: "fa6-solid:object-group",
collapsible: true,
children: ["Vue.md", "HTML.md", "Javascript.md", "Python.md"],
},
Expand All @@ -82,7 +82,7 @@ export default sidebar({
},
{
text: "博客文章",
icon: "fa-solid fa-feather-pointed",
icon: "fa6-solid:feather-pointed",
prefix: "/_posts/",
link: "/blog",
collapsible: true,
Expand Down
5 changes: 3 additions & 2 deletions docs/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import sidebar from "./sidebar.js";
export default hopeTheme({
// 主题选项:https://theme-hope.vuejs.press/zh/config/theme/layout.html
hostname: "https://newzone.top",
// 建议替换为自建 CDN,否则部分浏览器可能无法正确显示图标。2024.07 开始,uBlock Origin 将拦截公有 CDN 的 js 请求。
iconAssets: ["https://cdn.staticfile.net/font-awesome/6.5.2/js/all.min.js"],
// 公用 CDN 在部分浏览器中可能无法正确显示图标。2024.07 开始,uBlock Origin 将拦截公有 CDN 的 js 请求。
// https://icon-sets.iconify.design/
iconAssets: "iconify",
author: {
name: "LearnData",
url: "https://newzone.top",
Expand Down
2 changes: 1 addition & 1 deletion docs/DailyRoutine.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 每日仪式
icon: fa-solid fa-check-to-slot
icon: fa6-solid:check-to-slot
---

每日仪式是个人生活习惯的核心。它看起来可能会显得固化、死板、功利,有人反馈「透露着一股形式主义气息」,但是,这正是我想要的:**遵循一个固定、程序化的流程,有规律地养成习惯**,实现自我提升。
Expand Down
2 changes: 1 addition & 1 deletion docs/Fitness.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 健身计划
icon: fa-solid fa-dumbbell
icon: fa6-solid:dumbbell
---

早餐必吃,午餐吃饱,晚餐少吃且不吃主食。
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: LearnData 开源笔记
icon: fa-solid fa-book-open-reader
icon: fa6-solid:book-open-reader
---

> 开源工具、效率方法、心理学探索的自我提升笔记
Expand Down
2 changes: 1 addition & 1 deletion docs/apps/Applist.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 必备应用
icon: fa-solid fa-list
icon: fa6-solid:list
order: 1
---

Expand Down
2 changes: 1 addition & 1 deletion docs/apps/Chrome.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: Chrome 扩展
icon: fa-brands fa-chrome
icon: fa6-brands:chrome
order: 3
---

Expand Down
2 changes: 1 addition & 1 deletion docs/apps/design.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 平面设计
icon: fa-solid fa-image
icon: fa6-solid:image
order: 90
---

Expand Down
2 changes: 1 addition & 1 deletion docs/apps/toolbox.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 开源工具
icon: fa-solid fa-land-mine-on
icon: fa6-solid:land-mine-on
order: 2
---

Expand Down
2 changes: 1 addition & 1 deletion docs/apps/topic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
article: false
index: false
title: 专题示例
icon: fa-solid fa-icons
icon: fa6-solid:icons
---

如果想形成专题文章,并想使用独立侧边栏,则参考本目录使用专题文章。
Expand Down
2 changes: 1 addition & 1 deletion docs/blog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#博客首页设置:https://theme-hope.vuejs.press/zh/guide/blog/home.html
home: true
layout: BlogHome
icon: fa-solid fa-house-crack
icon: fa6-solid:house-crack
title: 互联网小白
#heroImage: /logo.svg
heroText: 互联网小白
Expand Down
2 changes: 1 addition & 1 deletion docs/code/AutoHotkey.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: AutoHotkey
icon: fa-brands fa-autoprefixer
icon: fa6-brands:autoprefixer
order: 4
---

Expand Down
2 changes: 1 addition & 1 deletion docs/code/Electron.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: Electron
icon: fa-solid fa-atom
icon: fa6-solid:atom
order: 7
---

Expand Down
2 changes: 1 addition & 1 deletion docs/code/HTML.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: HTML
icon: fa-brands fa-html5
icon: fa6-brands:html5
order: 1
---

Expand Down
2 changes: 1 addition & 1 deletion docs/code/Javascript.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: JavaScript
icon: fa-brands fa-js
icon: fa6-brands:js
order: 2
---

Expand Down
2 changes: 1 addition & 1 deletion docs/code/Markdown.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: Markdown
icon: fa-brands fa-markdown
icon: fa6-brands:markdown
order: 5
---

Expand Down
2 changes: 1 addition & 1 deletion docs/code/Python.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: Python
icon: fa-brands fa-python
icon: fa6-brands:python
order: 3
---

Expand Down
2 changes: 1 addition & 1 deletion docs/code/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: Coding
icon: fa-solid fa-code
icon: fa6-solid:code
---

## 编程学习路径
Expand Down
2 changes: 1 addition & 1 deletion docs/code/Regex.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 正则表达式
icon: fa-solid fa-repeat
icon: fa6-solid:repeat
order: 6
---

Expand Down
2 changes: 1 addition & 1 deletion docs/code/Vue.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: Vue
icon: fa-brands fa-vuejs
icon: fa6-brands:vuejs
order: 2
---

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/CloudServices.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 云计算服务
icon: fa-solid fa-cloud-arrow-up
icon: fa6-solid:cloud-arrow-up
order: 2
---

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/Cloudflare.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: Cloudflare
icon: fa-brands fa-cloudflare
icon: fa6-brands:cloudflare
order: 5
---

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/DNS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 域名 DNS 托管
icon: fa-solid fa-sitemap
icon: fa6-solid:sitemap
order: 6
---

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/GitHub.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: GitHub
icon: fa-brands fa-github
icon: fa6-brands:github
order: 4
---

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/MySQL.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 数据库管理
icon: fa-solid fa-database
icon: fa6-solid:database
order: 3
---

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/Static.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 静态部署
icon: fa-solid fa-circle-nodes
icon: fa6-solid:circle-nodes
order: 1
---

Expand Down
2 changes: 1 addition & 1 deletion docs/deploy/VPS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 服务器 VPS
icon: fa-brands fa-ioxhost
icon: fa6-brands:ioxhost
order: 3
---

Expand Down
2 changes: 1 addition & 1 deletion docs/family/Coupon.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 网购攻略
icon: fa-solid fa-cart-shopping
icon: fa6-solid:cart-shopping
order: 3
---

Expand Down
2 changes: 1 addition & 1 deletion docs/family/Diet.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 健康饮食
icon: fa-solid fa-wheat-awn-circle-exclamation
icon: fa6-solid:wheat-awn-circle-exclamation
order: 1
---

Expand Down
2 changes: 1 addition & 1 deletion docs/family/Life.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 生活窍门
icon: fa-solid fa-star-of-life
icon: fa6-solid:star-of-life
order: 6
---

Expand Down
2 changes: 1 addition & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 个人介绍
icon: fa-solid fa-circle-nodes
icon: fa6-solid:circle-nodes
---

互联网广告人,
Expand Down
2 changes: 1 addition & 1 deletion docs/web/Comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
article: false
title: 评论插件
icon: fa-solid fa-comment-dots
icon: fa6-solid:comment-dots
order: 3
---

Expand Down
Loading

0 comments on commit e3e4f22

Please sign in to comment.