Skip to content

Commit

Permalink
fix(doc): 更新文档
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohn-z committed Apr 28, 2024
1 parent 8157175 commit 7e0c063
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 3 deletions.
35 changes: 33 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
### 在线访问
https://explore.yohn-z.cn/my-search/
### 技术栈
使用原生三剑客(html+css+js)开发 , 无需编译部署
使用原生三剑客(html+css+js)开发 , 无需编译部署, 响应式适配
### 目录结构说明
* /css - css样式
* /icon - 图标
Expand All @@ -18,4 +18,35 @@ https://explore.yohn-z.cn/my-search/
![20240428202329](http://oss.yohn-z.cn/img/20240428202329.png)

移动端访问效果
![20240428202557](http://oss.yohn-z.cn/img/20240428202557.png)
<img src="http://oss.yohn-z.cn/img/20240428202557.png" width="320" />

### 快速部署
1、Fork 本项目到自己的仓库
![20240428203251](http://oss.yohn-z.cn/img/20240428203251.png)
2、更改相关代码
![20240428203416](http://oss.yohn-z.cn/img/20240428203416.png)
3、直接更新仓库代码
git ...
4、使用github page

找到配置项 my-search > Settings > Pages
![20240428203818](http://oss.yohn-z.cn/img/20240428203818.png)
选择仓库分支和目录 主分支 > /(root)
![20240428203931](http://oss.yohn-z.cn/img/20240428203931.png)
点击保存(save)后,等待一会,GitHub 就会构建你的页面并设置访问链接
一般是 `http://<用户名>.github.io/<仓库名>/`

如果你有自己的域名,可以自定义搜索页的访问链接(域名)
![20240428204410](http://oss.yohn-z.cn/img/20240428204410.png)
一般是在项目根目录下创建文件 `CNAME`
并写入你的访问域名或者子域名,如:`explore.yohn-z.cn`
然后在你的域名解析管理处,添加一条记录,类型是 `cname`, 指向 `<用户名>.github.io/<仓库名>`

![20240428204802](http://oss.yohn-z.cn/img/20240428204802.png)







2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<link href="css/main.css" rel="stylesheet">
<link href="css/monstr.css" rel="stylesheet">
<script>
// 定义搜索方式Map
// 定义几种搜索方式
var searchTypeMap = {
biyin: {
icon: "url(icon/biyin.svg)",
Expand Down

0 comments on commit 7e0c063

Please sign in to comment.