Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
茶陵後
Git2
提交
8fecd9bf
G
Git2
项目概览
茶陵後
/
Git2
与 Fork 源项目一致
Fork自
gitcode_dev / 开源百科
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Git2
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8fecd9bf
编写于
1月 16, 2021
作者:
X
xjh22222228
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: const
上级
88e69e3e
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
153 addition
and
4 deletion
+153
-4
README.md
README.md
+150
-1
src/constants/index.ts
src/constants/index.ts
+3
-3
未找到文件。
README.md
浏览文件 @
8fecd9bf
OK
\ No newline at end of file
您当前看到的是正在公测
`v5`
版本, 稳定版本发布还需要一定时间,稳定版本请转移到
[
v3
](
https://github.com/xjh22222228/nav/tree/v3
)
<p
align=
"center"
>
<a
href=
"https://nav3.cn/?g"
>
<img
src=
"src/assets/logo.png"
width=
"130"
/>
</a>
<br
/>
<b>
发现导航
</b>
<p
align=
"center"
>
一个纯静态、易管理的强大导航网站,希望您会喜欢
</p>
<p
align=
"center"
>
内置收录多达 800+ 优质网站, 助您工作、学习和生活
</p>
<p
align=
"center"
>
<img
src=
"https://img.shields.io/github/v/release/xjh22222228/nav"
/>
<a
href=
"https://github.com/xjh22222228/nav/stargazers"
><img
src=
"https://img.shields.io/github/stars/xjh22222228/nav"
alt=
"Stars"
/></a>
<img
alt=
"Angular"
src=
"https://img.shields.io/static/v1.svg?label=&message=Angular11&style=flat-square&color=C82B38"
>
<img
src=
"https://img.shields.io/github/license/xjh22222228/nav"
/>
<a
href=
"https://hits.dwyl.com/xjh22222228/nav"
>
<img
src=
"https://hits.dwyl.com/xjh22222228/nav.svg"
/>
</a>
</p>
</p>
<br
/>
<br
/>
## 选择版本
目前有2个版本供选择,
[
v3
](
https://github.com/xjh22222228/nav/tree/v3
)
和
`v5`
, 这2个版本都会长期维护:
-
v5 - 也就是当前分支, 需要依赖于Github配置, 提供自动维护数据功能(微后台),但必须Fork到自己仓库里。
-
v3 - 无需依赖Github, 您可以将代码部署在任意服务器, 但数据需要手工维护。
作者推荐您选择
`v5`
没有太多的心智负担。
## 预览
**主题**
-
[
sim 在线预览
](
https://nav3.cn/#/sim
)
-
[
light 在线预览
](
https://nav3.cn/#/light
)
![
Preview
](
media/screenshot1.png
)
![
Preview
](
media/screenshot2.png
)
![
Preview
](
media/screenshot3.png
)
![
Preview
](
media/screenshot4.png
)
## 拥有出色的特性
`发现导航`
的理念就是做一款无需依赖后端服务既简单又方便,没有繁杂的配置和数据库等配置概念, 做到开箱即用。
-
[√] 内置
`800+`
实用网站。
-
[√] 三叉树分类、结构清晰、分类清晰。
-
[√] 颜值与简约并存,不再是杀马特时代。
-
[√] 支持3种浏览模式,创新。
-
[√] 支持足迹记忆。
-
[√] 支持移动端浏览。
-
[√] 支持搜索查询。
-
[√] 支持自定义引擎搜索。
-
[√] 纯静态, 提供自动化部署功能。
-
[√] 完全开源,轻松定制化。
-
[√] 多款主题切换。
-
[√] 支持暗黑模式。
## 部署
推荐使用
`github pages`
服务, 这样就不需要提供服务器, 并且项目里自带了自动化部署服务,像数
`321`
一样简单。
1、Fork 当前项目。
2、
[
https://github.com/settings/tokens
](
https://github.com/settings/tokens
)
申请 token, 勾选相应的权限, 如果不懂就全部选中。
3、到 https://github.com/用户名/nav/settings/secrets/new 添加刚刚申请的token, name填写
`TOKEN`
大写。
4、打开 https://github.com/用户名/nav/actions 点击
`绿色按钮`
5、往仓库推送一条Commit (非常重要)。
6、5分钟后打开 https://用户名.github.io/nav 就能看到一个非常强大的导航网站了。
注:如果想部署到自己的域名,那么以上教程同样适合,因为它提供了自动化部署, 之后可以通过
`CNAME`
或
`反向代理`
实现:
```
conf
# nginx
server
{
listen
80
;
server_name
www
.
nav3
.
cn
nav3
.
cn
;
location
/ {
proxy_pass
https
://
xjh22222228
.
github
.
io
/
nav
/;
}
}
```
## 配置
所有可配置位于文件
`nav.config.ts`
。
## 开发构建
```
bash
# 下载
git clone
--depth
=
1 https://github.com/xjh22222228/nav.git
# 安装依赖
npm i
# 启动
npm start
# 打包
npm run build
```
## 贡献
[
点击这里
](
https://github.com/xjh22222228/nav/tree/master/data
)
Thank you for your
[
contribution
](
https://github.com/xjh22222228/nav/issues
)
, men.
<a
href=
"https://github.com/YutHelloWorld"
>
<img
src=
"https://avatars1.githubusercontent.com/u/20860159?s=460&v=4"
width=
"30px"
height=
"30px"
/>
</a>
<a
href=
"https://github.com/JJJTHuang"
>
<img
src=
"https://avatars3.githubusercontent.com/u/22817432?s=460&v=4"
width=
"30px"
height=
"30px"
/>
</a>
<a
href=
"https://github.com/Fechin"
>
<img
src=
"https://avatars1.githubusercontent.com/u/2541482?s=460&v=4"
width=
"30px"
height=
"30px"
/>
</a>
## 建议
如果有任何功能上的建议可通过
[
issue
](
https://github.com/xjh22222228/nav/issues
)
发起, Thank you.
## 支持
如果能帮到您,可以请作者喝杯咖啡~
<img
src=
"https://raw.sevencdn.com/xjh22222228/public/gh-pages/img/32.png"
width=
"600"
>
src/constants/index.ts
浏览文件 @
8fecd9bf
// Copyright @ 2018-2021 xiejiahe. All rights reserved. MIT license.
export
const
VERIFY_PATH
=
'
README.md
'
export
const
VERIFY_PATH
=
'
nav.verify.txt
'
export
const
DB_PATH
=
'
nav.verify.txt
'
export
const
DB_PATH
=
'
data/db.json
'
export
const
VERSION
=
'
data/db.json
'
export
const
VERSION
=
'
5.0.0-beta.1
'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录