mirror of
https://github.com/Estom/notes.git
synced 2026-02-02 18:20:20 +08:00
完成插件和图片配置
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
<!-- _coverpage.md -->
|
||||
|
||||
# Docsify使用指南
|
||||
|
||||
> 💪通灵诗人的个人知识库,欢迎关注。
|
||||
|
||||
[开始使用 Let Go](/README.md)
|
||||
16
_coverpage.md
Normal file
16
_coverpage.md
Normal file
@@ -0,0 +1,16 @@
|
||||
<!-- _coverpage.md -->
|
||||
|
||||

|
||||
|
||||
# 乘上梦想的帆,轻轻远航
|
||||
|
||||
> 💪通灵诗人的个人知识库,欢迎关注。
|
||||
|
||||
[GitHub](https://github.com/Estom)
|
||||
[Let Go](/README.md)
|
||||
|
||||
<!-- 背景色 -->
|
||||
<!--  -->
|
||||
<!-- 背景图 -->
|
||||

|
||||
|
||||
1
_footer.md
Normal file
1
_footer.md
Normal file
@@ -0,0 +1 @@
|
||||
-------------这是页脚-------------------
|
||||
@@ -1,5 +1 @@
|
||||
<!-- _navbar.md -->
|
||||
|
||||
* 关注我
|
||||
* [Github地址](https://github.com/Estom)
|
||||
* [Gitee地址](https://gitee.com/Eyestorm)
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<!-- _sidebar.md -->
|
||||
|
||||
* Typora+Docsify使用指南
|
||||
* [Docsify使用指南](/ProjectDocs/Docsify使用指南.md) <!--注意这里是相对路径-->
|
||||
* [Typora+Docsify快速入门](/ProjectDocs/Typora+Docsify快速入门.md)
|
||||
* Docsify部署
|
||||
* [Docsify部署教程](/ProjectDocs/Docsify部署教程.md)
|
||||
* 设计模式
|
||||
* [设计模式之美](./设计模式/0%20设计模式之美.md)
|
||||
* [设计模式原则](./设计模式/1.1%20单一职责原则.md)
|
||||
191
blog/generate/README.md
Normal file
191
blog/generate/README.md
Normal file
@@ -0,0 +1,191 @@
|
||||
# docsify 侧边栏自动生成脚本
|
||||
|
||||
# docsify sidebar automatically generates scripts
|
||||
|
||||
> 打包成exe文件,程序大小约为5M,还是比较轻量的,主要文件有:
|
||||
> 1. buildSidebar.exe -> 执行程序后在config.ini设置的根目录下文件夹生成READMD.md和_sidebar.md(名称可自定义)
|
||||
> 2. config.ini -> 配置生成文件的一些输出文件\忽略情况等选项,具体可以看config.ini文件中注释
|
||||
|
||||
docsify好像没法自动读取文件夹目录结构并且展示在页面上,需要对每个文件夹配置_sidebar.md文件
|
||||
|
||||
所以我尝试用python做了一个脚本,基本就用到了os库中的一些函数,所以打包成exe文件大小在可以接受的范围里面,只有5M左右
|
||||
|
||||
该程序运行的配置参数依赖于config.ini,所以使用前请将config.ini和builSidebar.exe放在同一个目录下
|
||||
|
||||
在生成md文件结构时,有时想要**忽略一些文件**或者**"_"开头的文件夹**,可以通过config.ini配置
|
||||
|
||||
```ini
|
||||
[config]
|
||||
# docsify根目录
|
||||
base_dir=D:\MyData\Data\Docsify\docs
|
||||
# 忽略以“_”,"."开头的文件,如果要添加新文件,用“|”分隔
|
||||
ignore_start_with=_|.
|
||||
# 只读取".md"格式问价,如果添加新格式,用“|”分隔
|
||||
show_file=.md
|
||||
# 要忽略的文件名,要添加新文件,用“|”分隔
|
||||
ignore_file_name=README
|
||||
|
||||
|
||||
[outFile]
|
||||
# 想要在几级目录生成文件,默认"-1"表示所有文件夹生成,"0"表示在根目录生成,可以配合侧边栏折叠插件使用
|
||||
create_depth=0
|
||||
# 每个文件夹下主页文件名称和侧边栏文件名,默认README.md和_sidebar.md文件,想生成其他名称可修改文字,或者添加用“|”分隔
|
||||
eachFile=README.md|_sidebar.md
|
||||
```
|
||||
|
||||
# 举例1
|
||||
|
||||
> 在每一个子文件夹下生成文件
|
||||
|
||||
原先文件夹的结构是
|
||||
|
||||
```
|
||||
docs
|
||||
│ .nojekyll
|
||||
│ ceede.md
|
||||
│ index.html
|
||||
│ _coverpage.md
|
||||
│
|
||||
├─PLC
|
||||
│ │ 电梯群控算法.md
|
||||
│ │
|
||||
│ └─最新测试
|
||||
│ hi回答.md
|
||||
│
|
||||
├─_media
|
||||
│ Pasted image 20230403194327.png
|
||||
│
|
||||
└─启发式算法
|
||||
│ 差分进化算法.md
|
||||
│
|
||||
└─测试
|
||||
测试.md
|
||||
```
|
||||
|
||||
我在config.ini设置忽略:
|
||||
1. 以"_","."开头的文件
|
||||
2. 忽略文件名为README的文件
|
||||
3. 结构中只包括".md"开头的文件
|
||||
|
||||
运行程序得到的结构是
|
||||
|
||||
```
|
||||
docs
|
||||
│ .nojekyll
|
||||
│ ceede.md
|
||||
│ index.html
|
||||
│ README.md
|
||||
│ _coverpage.md
|
||||
│ _sidebar.md
|
||||
│
|
||||
├─PLC
|
||||
│ │ README.md
|
||||
│ │ _sidebar.md
|
||||
│ │ 电梯群控算法.md
|
||||
│ │
|
||||
│ └─最新测试
|
||||
│ hi回答.md
|
||||
│ README.md
|
||||
│ _sidebar.md
|
||||
│
|
||||
├─_media
|
||||
│ Pasted image 20230403194327.png
|
||||
│
|
||||
└─启发式算法
|
||||
│ README.md
|
||||
│ _sidebar.md
|
||||
│ 差分进化算法.md
|
||||
│
|
||||
└─测试
|
||||
README.md
|
||||
_sidebar.md
|
||||
测试.md
|
||||
```
|
||||
|
||||
可以看到_media没有被操作,也符合要求
|
||||
|
||||
## 图片
|
||||
|
||||
在根目录情况:
|
||||
|
||||

|
||||
|
||||
点击PLC之后
|
||||
|
||||

|
||||
|
||||
这种方式生成的结构,点击新文件夹会刷新界面,也可以接受
|
||||
|
||||
# 举例2
|
||||
|
||||
> 上面的格式中,点击相应文件夹实际上会跳转,如果不想跳转,可以设置config.ini文件的create_depth参数
|
||||
>
|
||||
> 当参数为-1时候,则每个文件夹生成文件
|
||||
>
|
||||
> 当参数为0时,仅在根目录生成
|
||||
|
||||
该功能配合侧边栏折叠效果更好
|
||||
|
||||
原先结构
|
||||
|
||||
```
|
||||
docs
|
||||
│ .nojekyll
|
||||
│ ceede.md
|
||||
│ index.html
|
||||
│ _coverpage.md
|
||||
│
|
||||
├─PLC
|
||||
│ │ 电梯群控算法.md
|
||||
│ │
|
||||
│ └─最新测试
|
||||
│ hi回答.md
|
||||
│
|
||||
├─_media
|
||||
│ Pasted image 20230403194327.png
|
||||
│
|
||||
└─启发式算法
|
||||
│ 差分进化算法.md
|
||||
│
|
||||
└─测试
|
||||
测试.md
|
||||
```
|
||||
|
||||
config.ini中`create_depth`设为0
|
||||
|
||||
生成的新结构
|
||||
|
||||
```
|
||||
docs
|
||||
│ .nojekyll
|
||||
│ ceede.md
|
||||
│ index.html
|
||||
│ README.md
|
||||
│ _coverpage.md
|
||||
│ _sidebar.md
|
||||
│
|
||||
├─PLC
|
||||
│ │ 电梯群控算法.md
|
||||
│ │
|
||||
│ └─最新测试
|
||||
│ hi回答.md
|
||||
│
|
||||
├─_media
|
||||
│ Pasted image 20230403194327.png
|
||||
│
|
||||
└─启发式算法
|
||||
│ 差分进化算法.md
|
||||
│
|
||||
└─测试
|
||||
测试.md
|
||||
```
|
||||
|
||||
可以看到仅在根目录生成了文件
|
||||
|
||||
## 图片
|
||||
|
||||

|
||||
|
||||
配合侧边栏折叠插件:https://github.com/iPeng6/docsify-sidebar-collapse
|
||||
|
||||

|
||||
123
blog/generate/buildSidebar.py
Normal file
123
blog/generate/buildSidebar.py
Normal file
@@ -0,0 +1,123 @@
|
||||
from configparser import ConfigParser
|
||||
from os.path import splitext, basename, join, isdir, relpath, abspath
|
||||
from os import listdir
|
||||
|
||||
|
||||
base_dir = None
|
||||
start_with = None
|
||||
show_file = None
|
||||
ignore_file_name = None
|
||||
|
||||
out_file_list = []
|
||||
create_depth = -1
|
||||
|
||||
|
||||
def read_config():
|
||||
global base_dir, show_file, start_with, ignore_file_name, ReadmeFile, _sidebarFile, out_file_list, create_depth
|
||||
|
||||
cf = ConfigParser()
|
||||
cf.read("config.ini", encoding='utf-8')
|
||||
base_dir = cf.get("config", "base_dir")
|
||||
start_with = cf.get("config", "ignore_start_with").split("|")
|
||||
show_file = cf.get("config", "show_file").split('|')
|
||||
ignore_file_name = cf.get("config", "ignore_file_name").split("|")
|
||||
|
||||
out_file_list = cf.get("outFile", "eachFile").split("|")
|
||||
create_depth = int(cf.get("outFile", "create_depth"))
|
||||
|
||||
|
||||
def check_file_extension(file_path):
|
||||
"""
|
||||
检查文件后缀是否为指定的后缀
|
||||
:param file_path: 文件路径
|
||||
:return: 如果文件后缀为指定的后缀,返回True;否则返回False
|
||||
"""
|
||||
file_extension = splitext(file_path)[1]
|
||||
if file_extension in show_file:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
|
||||
def check_file_name_satified(file_path):
|
||||
"""
|
||||
获取文件名(不包括扩展名)
|
||||
:param file_path: 文件路径
|
||||
:return: 文件名(不包括扩展名)
|
||||
"""
|
||||
file_name_with_extension = basename(file_path)
|
||||
file_name = splitext(file_name_with_extension)[0]
|
||||
if file_name[0] in start_with or file_name in ignore_file_name:
|
||||
return False
|
||||
return True
|
||||
|
||||
|
||||
def save_structure(root_dir, base_dir=base_dir, depth=0):
|
||||
"""
|
||||
遍历指定目录及其所有子目录,生成并保存目录结构。
|
||||
:param root_dir: 要处理的根目录路径
|
||||
:param base_dir: 用来获得root_dir对base_dir的相对路径
|
||||
:param depth: 递归深度,文件夹深度
|
||||
"""
|
||||
root = root_dir
|
||||
dirs = []
|
||||
files = []
|
||||
for item in listdir(root):
|
||||
if isdir(join(root, item)):
|
||||
dirs.append(item)
|
||||
else:
|
||||
files.append(item)
|
||||
subdir_structure = ''
|
||||
subdir_name = basename(root)
|
||||
|
||||
if depth != 0:
|
||||
if create_depth == 0:
|
||||
subdir_structure += "- " + subdir_name + '\n'
|
||||
else:
|
||||
subdir_structure += "- [" + subdir_name + "](" + relpath(root, base_dir) + '\)\n'
|
||||
else:
|
||||
if create_depth == 0:
|
||||
subdir_structure += "- " + "首页" + '\n'
|
||||
else:
|
||||
subdir_structure += "- [" + "首页" + "](" + relpath(root, base_dir) + '\)\n'
|
||||
|
||||
for file in files:
|
||||
if check_file_name_satified(join(root, file)):
|
||||
if check_file_extension(file):
|
||||
subdir_structure += " " + "- [" + file + "](" + relpath(join(root, file),
|
||||
base_dir) + ')\n'
|
||||
|
||||
for subdir in dirs:
|
||||
subdir_path = join(root, subdir)
|
||||
if check_file_name_satified(subdir_path):
|
||||
next_struct = save_structure(subdir_path, base_dir, depth + 1)
|
||||
next_struct = next_struct[:-1] if next_struct.endswith("\n") else next_struct
|
||||
next_struct = next_struct.replace("\n", "\n ") + "\n"
|
||||
subdir_structure += " " + next_struct
|
||||
|
||||
back_struct = subdir_structure
|
||||
if depth == 1:
|
||||
subdir_structure = "- [" + "返回首页" + "](" + "" + '\?id=main)\n' + subdir_structure
|
||||
elif depth != 0:
|
||||
abs_pre_path = abspath(join(root, ".."))
|
||||
rel_pre_path = relpath(abs_pre_path, base_dir)
|
||||
subdir_structure = "- [" + "返回上一级" + "](" + rel_pre_path + '\)\n' + subdir_structure
|
||||
|
||||
subdir_structure = subdir_structure.replace('\\', '/')
|
||||
print("%s : finished" % root_dir)
|
||||
if create_depth == -1:
|
||||
for file_name in out_file_list:
|
||||
with open(join(root, file_name), 'w', encoding="utf-8") as f:
|
||||
f.write(subdir_structure)
|
||||
else:
|
||||
if depth == 0 :
|
||||
for file_name in out_file_list:
|
||||
with open(join(root, file_name), 'w', encoding="utf-8") as f:
|
||||
f.write(subdir_structure)
|
||||
return back_struct
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
read_config()
|
||||
save_structure(base_dir, base_dir, 0)
|
||||
input()
|
||||
16
blog/generate/config.ini
Normal file
16
blog/generate/config.ini
Normal file
@@ -0,0 +1,16 @@
|
||||
[config]
|
||||
# docsify根目录
|
||||
base_dir=E:\gitee\notes
|
||||
# 忽略以“_”,"."开头的文件,如果要添加新文件,用“|”分隔
|
||||
ignore_start_with=_|.
|
||||
# 只读取".md"格式问价,如果添加新格式,用“|”分隔
|
||||
show_file=.md
|
||||
# 要忽略的文件名,要添加新文件,用“|”分隔
|
||||
ignore_file_name=README
|
||||
|
||||
|
||||
[outFile]
|
||||
# 想要在几级目录生成文件,默认"-1"表示所有文件夹生成,"0"表示在根目录生成,可以配合侧边栏折叠插件使用
|
||||
create_depth=1
|
||||
# 每个文件夹下主页文件名称和侧边栏文件名,默认README.md和_sidebar.md文件,想生成其他名称可修改文字,或者添加用“|”分隔
|
||||
eachFile=README.md|_sidebar.md
|
||||
BIN
blog/image/b.jpg
Normal file
BIN
blog/image/b.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
1
blog/image/cat.svg
Normal file
1
blog/image/cat.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1705328792971" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1855" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M591.2 29.6c-19.2-18.4-49.6-18.4-68 0L512 40.8l-11.2-11.2c-19.2-18.4-49.6-18.4-68 0-19.2 18.4-19.2 48.8 0 68l79.2 79.2 79.2-79.2c19.2-18.4 19.2-48.8 0-68z" fill="#FA004B" p-id="1856"></path><path d="M384 608.8V256l80 64h96l80-64v352.8" fill="#FAEDD6" p-id="1857"></path><path d="M704.8 608h192.8v180c0 121.6-99.2 220.8-221.6 220.8H347.2c-122.4 0-221.6-98.4-221.6-220.8V608h192.8" fill="#36C9A3" p-id="1858"></path><path d="M126.4 608h771.2v64H126.4z" fill="#FFFFFF" p-id="1859"></path><path d="M736.8 1008H287.2c-35.2 0-64-28.8-64-64h578.4c0 36-28.8 64-64.8 64z" fill="#FA004B" p-id="1860"></path><path d="M415.2 600v56c0 26.4-21.6 48-48 48s-48-21.6-48-48v-56c0-13.6 11.2-24 24-24h48c13.6 0 24 11.2 24 24zM704.8 600v56c0 26.4-21.6 48-48 48s-48-21.6-48-48v-56c0-13.6 11.2-24 24-24h48c12.8 0 24 11.2 24 24z" fill="#FAEDD6" p-id="1861"></path><path d="M448.8 401.6h32v31.2h-32zM545.6 401.6h31.2v31.2h-31.2zM545.6 464.8h-64.8V496h14.4v16.8h31.2V496h19.2zM528.8 531.2H560v31.2h-31.2zM512 199.2L421.6 108.8c-12-12-18.4-28-18.4-44.8 0-16.8 6.4-32.8 18.4-44.8C433.6 6.4 449.6 0 466.4 0c16.8 0 32.8 6.4 45.6 18.4C524 6.4 540 0 557.6 0c16.8 0 32.8 6.4 45.6 18.4 12 12 18.4 28 18.4 44.8s-6.4 32.8-18.4 44.8L512 199.2z m-45.6-168c-8.8 0-16.8 3.2-23.2 9.6-12.8 12.8-12.8 32.8 0 45.6l68.8 68 68.8-68c12.8-12.8 12.8-32.8 0-45.6-6.4-6.4-14.4-9.6-23.2-9.6-8.8 0-16.8 3.2-23.2 9.6L512 63.2l-22.4-22.4c-6.4-6.4-14.4-9.6-23.2-9.6z" fill="#232323" p-id="1862"></path><path d="M993.6 269.6c-19.2-18.4-49.6-18.4-68 0l-11.2 11.2-11.2-11.2c-19.2-18.4-49.6-18.4-68 0-19.2 18.4-19.2 48.8 0 68l79.2 79.2 79.2-79.2c18.4-18.4 18.4-48.8 0-68z" fill="#FA004B" p-id="1863"></path><path d="M913.6 439.2l-90.4-90.4c-24.8-24.8-24.8-65.6 0-90.4 24.8-24.8 65.6-24.8 90.4 0 24.8-24.8 65.6-24.8 90.4 0 24.8 24.8 24.8 65.6 0 90.4l-90.4 90.4z m-45.6-168c-8 0-16.8 3.2-23.2 9.6-12.8 12.8-12.8 32.8 0 45.6l68.8 68 68.8-68c12.8-12.8 12.8-32.8 0-45.6-12.8-12.8-33.6-12.8-45.6 0l-22.4 22.4-22.4-22.4c-7.2-6.4-15.2-9.6-24-9.6z" fill="#232323" p-id="1864"></path><path d="M189.6 269.6c-19.2-18.4-49.6-18.4-68 0l-11.2 11.2-11.2-11.2c-19.2-18.4-49.6-18.4-68 0s-19.2 48.8 0 68l79.2 79.2 79.2-79.2c19.2-18.4 19.2-48.8 0-68z" fill="#FA004B" p-id="1865"></path><path d="M110.4 439.2L19.2 348.8c-24.8-24.8-24.8-65.6 0-90.4 24.8-24.8 65.6-24.8 90.4 0 24.8-24.8 65.6-24.8 90.4 0 24.8 24.8 24.8 65.6 0 90.4L110.4 439.2z m-45.6-168c-8 0-16.8 3.2-23.2 9.6-12.8 12.8-12.8 32.8 0 45.6l68.8 68 68.8-68c12.8-12.8 12.8-32.8 0-45.6-12.8-12.8-33.6-12.8-45.6 0l-22.4 22.4-23.2-22.4c-6.4-6.4-15.2-9.6-23.2-9.6zM336 928h354.4v32H336z" fill="#232323" p-id="1866"></path><path d="M720 592c-1.6-9.6-7.2-18.4-15.2-24v-24c0-17.6 14.4-32 32.8-32h32c35.2 0 64-28.8 64-64s-28.8-64-64-64h-32v32h32c17.6 0 32.8 14.4 32.8 32s-14.4 32-32.8 32h-32c-35.2 0-64 28.8-64 64v16h-18.4V222.4L554.4 305.6H469.6L367.2 223.2V560h-24c-19.2 0-36 13.6-39.2 32H110.4v195.2c0 130.4 106.4 236 236.8 236h328.8c130.4 0 236.8-105.6 236.8-236V592H720z m-96 8c0-4.8 4-8.8 8.8-8.8h48c4.8 0 8.8 4 8.8 8.8v56c0 17.6-14.4 32-32.8 32-17.6 0-32.8-14.4-32.8-32v-56zM458.4 336.8h108l57.6-48v272c-15.2 4-27.2 16.8-29.6 32.8H430.4c-2.4-16.8-15.2-29.6-32-32.8v-272l60 48z m134.4 321.6H431.2v-32.8h161.6v32.8zM335.2 600c0-4.8 4-8.8 8.8-8.8h48c4.8 0 8.8 4 8.8 8.8v56c0 17.6-14.4 32-32.8 32-17.6 0-32.8-14.4-32.8-32v-56z m490.4 328h-104v31.2h66.4c-32 20.8-70.4 32.8-112 32.8h-328c-40.8 0-79.2-12-112-32.8H304V928H198.4c-35.2-36.8-56-86.4-56-140.8V690.4h48.8v-31.2h-48.8V624H304v34.4H222.4v31.2h91.2c11.2 17.6 31.2 29.6 54.4 29.6 22.4 0 42.4-12 54.4-29.6h181.6c11.2 17.6 31.2 29.6 54.4 29.6 22.4 0 42.4-12 54.4-29.6h108v-31.2H720.8V624h161.6v35.2h-32v31.2h32v97.6c0 54.4-21.6 104-56.8 140z" fill="#232323" p-id="1867"></path></svg>
|
||||
|
After Width: | Height: | Size: 3.9 KiB |
BIN
blog/image/cover1.png
Normal file
BIN
blog/image/cover1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
BIN
blog/image/cover2.jpg
Normal file
BIN
blog/image/cover2.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.5 MiB |
BIN
blog/image/p.jpg
Normal file
BIN
blog/image/p.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 70 KiB |
1
blog/image/polar_bear.svg
Normal file
1
blog/image/polar_bear.svg
Normal file
@@ -0,0 +1 @@
|
||||
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1705329973949" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6754" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M137.344 396.992a144 144 0 1 1 204.8-179.776c92.032-38.144 170.784-34.144 170.784-34.144s78.72-4 170.752 34.144a144.032 144.032 0 1 1 204.8 179.744c43.2 72.928 60.608 146.464 67.68 193.728a280.704 280.704 0 0 1 4.8 51.584 278.496 278.496 0 0 1-156.064 250.176s-100 58.624-292 58.624-292-58.624-292-58.624a278.56 278.56 0 0 1-156-250.208v-0.8a281.024 281.024 0 0 1 4.8-50.752c7.04-47.264 24.48-120.8 67.648-193.696z" fill="#9B9B9B" p-id="6755"></path><path d="M284.64 246.24A409.632 409.632 0 0 0 202.88 311.04c-10.432 10.72-20.064 21.696-28.992 32.896a80 80 0 1 1 110.752-97.728zM851.936 343.936c-8.896-11.168-18.56-22.144-28.992-32.864a409.6 409.6 0 0 0-81.792-64.864 80.032 80.032 0 1 1 110.784 97.728z" fill="#636363" p-id="6756"></path><path d="M928.704 636.032v-0.8a253.984 253.984 0 0 0-4.48-46.464 503.136 503.136 0 0 0-41.312-137.152 426.624 426.624 0 0 0-82.336-118.976c-123.968-125.504-287.84-117.28-287.84-117.28s-163.872-8.224-287.84 117.28c-45.856 46.4-75.296 98.56-94.176 146.432a507.744 507.744 0 0 0-29.504 109.696c-2.88 15.072-4.384 30.624-4.448 46.496v0.736c0 100.672 59.072 187.712 144.832 229.248 0 0 92.864 53.664 271.136 53.664 178.24 0 271.104-53.664 271.104-53.664 85.792-41.536 144.864-128.576 144.864-229.216z" fill="#F4F4F4" p-id="6757"></path><path d="M384.48 614.336c-19.648 12.8-31.584 35.2-31.584 59.36v23.68c0 92.032 71.648 166.624 160 166.624s160-74.592 160-166.624v-23.68c0-24.128-11.936-46.56-31.616-59.36a234.112 234.112 0 0 0-256.8 0z" fill="#FFFFFF" p-id="6758"></path><path d="M352.896 511.008a32 32 0 0 1 64 0v32a32 32 0 0 1-64 0v-32zM608.896 511.008a32 32 0 0 1 64 0v32a32 32 0 0 1-64 0v-32zM497.696 666.24l-32.416-26.688a22.848 22.848 0 0 1 14.496-40.448h66.368a22.816 22.816 0 0 1 14.496 40.448l-32.448 26.656a24 24 0 0 1-30.496 0zM512.896 704a15.968 15.968 0 0 1 15.584 12.448c2.72 10.784 6.272 23.84 13.664 34.336 6.816 9.664 16.864 17.216 34.752 17.216 20.928 0 32-17.088 32-32a16 16 0 1 1 32 0c0 27.776-20.96 64-64 64-29.6 0-48.896-13.76-60.896-30.784a85.92 85.92 0 0 1-3.104-4.736c-0.96 1.6-2.016 3.2-3.104 4.736-12 17.024-31.296 30.784-60.896 30.784-43.072 0-64-36.224-64-64a16 16 0 1 1 32 0c0 14.912 11.04 32 32 32 17.888 0 27.936-7.552 34.72-17.216 7.392-10.496 10.976-23.552 13.664-34.336a16.16 16.16 0 0 1 9.984-11.424 15.936 15.936 0 0 1 5.632-1.024z" fill="#402A32" p-id="6759"></path></svg>
|
||||
|
After Width: | Height: | Size: 2.6 KiB |
102
index.html
102
index.html
@@ -5,11 +5,23 @@
|
||||
<title>通灵诗人的笔记</title>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="description" content="Description">
|
||||
<meta name="keywords" content="wiki,docsify,音乐爱好者">
|
||||
<meta name="author" content="xhhdd">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
|
||||
<!-- 设置浏览器图标 -->
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
|
||||
<!-- 侧边栏插件的样式 -->
|
||||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/sidebar.min.css" />
|
||||
<!-- 文章导航样式 -->
|
||||
<link rel="stylesheet" href="https://unpkg.com/docsify-toc@1.0.0/dist/toc.css">
|
||||
<!-- 多个图标 -->
|
||||
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/fontawesome.css" />
|
||||
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/brands.css" />
|
||||
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/regular.css" />
|
||||
<link rel="stylesheet" href="//unpkg.com/@fortawesome/fontawesome-free/css/solid.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
@@ -20,17 +32,19 @@ window.$docsify = {
|
||||
// 仓库地址,点击右上角的Github章鱼猫头像会跳转到此地址
|
||||
repo: 'https://github.com/Estom/notes',
|
||||
// 侧边栏支持,默认加载的是项目根目录下的_sidebar.md文件
|
||||
// loadSidebar: true,
|
||||
loadSidebar: true,
|
||||
// 导航栏支持,默认加载的是项目根目录下的_navbar.md文件
|
||||
loadNavbar: true,
|
||||
// 封面支持,默认加载的是项目根目录下的_coverpage.md文件
|
||||
coverpage: true,
|
||||
// 最大支持渲染的标题层级
|
||||
maxLevel: 5,
|
||||
maxLevel: 3,
|
||||
// 自定义侧边栏后默认不会再生成目录,设置生成目录的最大层级(建议配置为2-4)
|
||||
subMaxLevel: 4,
|
||||
subMaxLevel: 3,
|
||||
// 小屏设备下合并导航栏到侧边栏
|
||||
mergeNavbar: true,
|
||||
// log
|
||||
// logo: '/blog/image/cat.svg',
|
||||
/*搜索相关设置*/
|
||||
search: {
|
||||
maxAge: 86400000,// 过期时间,单位毫秒,默认一天
|
||||
@@ -44,8 +58,65 @@ window.$docsify = {
|
||||
noData: '找不到结果',
|
||||
depth: 4,
|
||||
hideOtherSidebarContent: false,
|
||||
namespace: 'Docsify-Guide',
|
||||
}
|
||||
namespace: '通灵诗人的笔记',
|
||||
},
|
||||
// 字数插件
|
||||
count:{
|
||||
countable: true,
|
||||
position: 'top',
|
||||
margin: '10px',
|
||||
float: 'right',
|
||||
fontsize:'0.9em',
|
||||
color:'rgb(90,90,90)',
|
||||
language:'chinese',
|
||||
localization: {
|
||||
words: "",
|
||||
minute: ""
|
||||
},
|
||||
isExpected: true
|
||||
},
|
||||
// 分页导航插件
|
||||
pagination: {
|
||||
previousText: '上一篇',
|
||||
nextText: '下一篇',
|
||||
crossChapter: true,
|
||||
crossChapterText: true
|
||||
},
|
||||
// 文本高亮
|
||||
'flexible-alerts': {
|
||||
style: 'flat',
|
||||
note: {
|
||||
label: "信息"
|
||||
},
|
||||
tip: {
|
||||
label: "提示"
|
||||
},
|
||||
warning: {
|
||||
label: "注意"
|
||||
},
|
||||
attention: {
|
||||
label: "切记"
|
||||
}
|
||||
},
|
||||
sidebarDisplayLevel: 2,
|
||||
// 页脚信息插件
|
||||
loadFooter: true,
|
||||
loadFooter: '_footer.md',
|
||||
share: {
|
||||
reddit: true,
|
||||
linkedin: true,
|
||||
facebook: true,
|
||||
twitter: true,
|
||||
whatsapp: true,
|
||||
telegram: true,
|
||||
},
|
||||
// 文章导航样式
|
||||
toc: {
|
||||
scope: '.markdown-section',
|
||||
headings: 'h1, h2, h3',
|
||||
title: '文章导航',
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
<!-- Docsify v4 -->
|
||||
@@ -58,5 +129,26 @@ window.$docsify = {
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
|
||||
<!--在所有的代码块上添加一个简单的Click to copy按钮来允许用户从你的文档中轻易地复制代码-->
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code/dist/docsify-copy-code.min.js"></script>
|
||||
<!-- 字数插件 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/docsify-count@latest/dist/countable.min.js"></script>
|
||||
<!-- 分页导航 -->
|
||||
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
|
||||
<!-- 文本高亮 -->
|
||||
<script src="https://unpkg.com/docsify-plugin-flexible-alerts"></script>
|
||||
<!-- 侧边栏扩展与折叠 -->
|
||||
<script src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script>
|
||||
<!-- 页脚信息 -->
|
||||
<script src="//cdn.jsdelivr.net/npm/@alertbox/docsify-footer/dist/docsify-footer.min.js"></script>
|
||||
<!-- 分享插件 -->
|
||||
<script src="//unpkg.com/docsify-share/build/index.min.js"></script>
|
||||
<!-- 文章导航 -->
|
||||
<script src="https://unpkg.com/docsify-toc@1.0.0/dist/toc.js"></script>
|
||||
<!-- 图标 -->
|
||||
<script src="//unpkg.com/docsify-fontawesome/dist/docsify-fontawesome.min.js"></script>
|
||||
<!-- 代码高亮 https://cdn.jsdelivr.net/npm/prismjs@1/components/ -->
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-python.min.js"></script>
|
||||
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-java.min.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user