-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Crush
committed
May 22, 2022
0 parents
commit 501948c
Showing
9 changed files
with
621 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Headline | ||
|
||
> An awesome project. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- _coverpage.md --> | ||
|
||
![logo](https://docsify.js.org/_media/icon.svg) | ||
|
||
**# docsify <small>3.5</small>** | ||
|
||
> 一个神奇的文档网站生成器。 | ||
- 简单、轻便 (压缩后 ~21kB) | ||
- 无需生成 html 文件 | ||
- 众多主题 | ||
|
||
[GitHub](https://github.com/docsifyjs/docsify/) [Get Started](#docsify) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<!-- _navbar.md --> | ||
|
||
* 链接到我 | ||
- [CSDN | 宁在春](https://blog.csdn.net/weixin_45821811?type=blog) | ||
- [掘金 | 宁在春](https://juejin.cn/user/2859142558267559) | ||
|
||
|
||
* 友情链接 | ||
* [Docsify](https://docsify.js.org/#/) | ||
* [掘金](https://juejin.cn/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- _sidebar.md --> | ||
|
||
* Docsify相关使用 | ||
* [Docsify使用指南](/mix/通过 docsify 将我们写的 md 笔记变成可浏览的网站.md) <!--注意这里是相对路径--> | ||
* [说点废话](/mix/说点废话.md) <!--注意这里是相对路径--> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Docsify-Guide</title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | ||
<meta name="description" content="Description"> | ||
<meta name="viewport" | ||
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-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/lib/themes/vue.css"> | ||
|
||
<!-- 侧边栏目录折叠 --> | ||
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/sidebar.min.css" /> | ||
</head> | ||
|
||
<body> | ||
<!-- 定义加载时候的动作 --> | ||
<div id="app">加载中...</div> | ||
<!-- index.html --> | ||
<script> | ||
window.$docsify = { | ||
// 项目名称 | ||
name: 'Docsify-Guide', | ||
// 仓库地址,点击右上角的Github章鱼猫头像会跳转到此地址 | ||
repo: 'https://github.com/YSGStudyHards', | ||
// 侧边栏支持,默认加载的是项目根目录下的_sidebar.md文件 | ||
loadSidebar: true, | ||
// 导航栏支持,默认加载的是项目根目录下的_navbar.md文件 | ||
loadNavbar: true, | ||
// 封面支持,默认加载的是项目根目录下的_coverpage.md文件 | ||
coverpage: true, | ||
// 最大支持渲染的标题层级 | ||
maxLevel: 5, | ||
// 自定义侧边栏后默认不会再生成目录,设置生成目录的最大层级(建议配置为2-4) | ||
subMaxLevel: 4, | ||
// 小屏设备下合并导航栏到侧边栏 | ||
mergeNavbar: true, | ||
coverpage: true, | ||
subMaxLevel: 2, | ||
sidebarDisplayLevel: 1, // set sidebar display level | ||
} | ||
</script> | ||
<script> | ||
// 搜索配置(url:https://docsify.js.org/#/zh-cn/plugins?id=%e5%85%a8%e6%96%87%e6%90%9c%e7%b4%a2-search) | ||
window.$docsify = { | ||
// 基础配置参数 完整的参数请参考 官网 | ||
search: { | ||
maxAge: 86400000, // 过期时间,单位毫秒,默认一天 | ||
paths: auto,// 注意:仅适用于 paths: 'auto' 模式 | ||
placeholder: 'Type to search', | ||
// 支持本地化 | ||
placeholder: { | ||
'/zh-cn/': '搜索', | ||
'/': 'Type to search' | ||
}, | ||
noData: 'No Results!', | ||
// 支持本地化 | ||
noData: { | ||
'/zh-cn/': '找不到结果', | ||
'/': 'No Results' | ||
}, | ||
|
||
// 搜索标题的最大层级, 1 - 6 | ||
depth: 2, | ||
// 您可以提供一个正则表达式来匹配前缀。在这种情况下, | ||
// 匹配到的字符串将被用来识别索引 | ||
hideOtherSidebarContent: false, | ||
namespace:'此处放项目名称', | ||
pathNamespaces: /^(\/(zh-cn|ru-ru))?(\/(v1|v2))?/ | ||
} | ||
} | ||
</script> | ||
<!-- docsify的js依赖 --> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script> | ||
<!-- emoji表情支持 --> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script> | ||
<!-- 图片放大缩小支持 --> | ||
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script> | ||
<!-- 搜索功能支持 --> | ||
<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> | ||
|
||
<!-- 侧边栏目录折叠 plugins --> | ||
<script src="//cdn.jsdelivr.net/npm/docsify-sidebar-collapse/dist/docsify-sidebar-collapse.min.js"></script> | ||
|
||
|
||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Docsify 配合 Github Pages 搭建一个自己的云笔记 | ||
|
||
[上一篇文章](./使用doscify将文章写成文档一般丝滑.md)简单说了如何使用 `Docsify` 将自己的写的 `markdown` 文件变成可浏览的网站,但那只是在本地,只能自己看到,这显然是无法满足我们的。 | ||
|
||
这次我们来说说如何将他们部署到可访问的网站上的,你可能此刻就在我部署的 `github pages` 上阅读本篇文章。 | ||
|
||
当然使用 `gitee pages` 也是可以的,两者的操作几乎一致。 | ||
|
||
|
||
|
||
直入主题: | ||
|
||
- 在 github 上创建一个仓库 | ||
- 将 本地文件上传至 github 仓库 | ||
- 通过 github pages 部署 | ||
- 访问测试 | ||
|
||
一、创建一个 github 仓库 | ||
|
||
|
||
|
||
![image-20220522211333693](C:\Users\ASUS\Desktop\nzc_blog\img\image-20220522211333693.png) | ||
|
||
二、将本地文件 push 至 github 仓库 | ||
|
||
将我们本地的 docsify 初始化的项目及写好的文章等,push 至 github 仓库。 | ||
|
||
![image-20220522211912629](C:\Users\ASUS\Desktop\nzc_blog\img\image-20220522211912629.png) | ||
|
||
我的本地目录就是这样的,docs 就是我用docsify 创建的项目,稍后我们就是将这整个文件夹上传至 github 。 | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# 说点废话。 | ||
|
||
> 距离我上一次更文已经过去四个月啦,这次打算重新开始更文,希望能够写出一些有深度的文章,能够帮助到其他的小伙伴或者是我自己吧。 | ||
> | ||
> 上半年一直在搞专升本考试(看到试卷的那一刻,确实挺失望的,我认真对待了他,他没有认真对待我),一场游戏的结束,有人开心,有人难过,我的话,是难过的那个吧。 | ||
> | ||
> 近期就打算复习一下之前的知识,然后加深一下自己的技能,打算背一些面试题,打算找工作啦。 | ||
> | ||
> 经过这次考试,我自己真正的验证了 " 选择比努力重要 ” 这句话。 | ||
> | ||
> 虽然止步于带砖学历,知道未来的路会比较难走,但是我想生活往往就是这样吧。 | ||
> | ||
> 明天的太阳仍旧会升起,生活依旧还会继续的,我们要做的就是热爱生命中的一切,永远清澈,永远热泪盈眶。 | ||
![image-20220522133920785](https://raw.githubusercontent.com/ningzaichun/nzc_img_store/main/img/202205221339531.png) | ||
|
||
> 接二连三的失败,让我一次次的怀疑自己,承认自己的无能,其实让我自己觉得这有时候也是一种别样的勇气吧。 | ||
> | ||
> 我确实挺弱的,趁着这次的止步的休整,做点关于未来的规划,做点自己想做但一直没做的事情。走一步看一步的生活太匆忙了,也太盲目了,那样的日子过得太累啦。 | ||
|
||
|
||
关于写文: | ||
|
||
近期打算重新开始写文,就想怎么方便的去写文章,然后又能够较好的保存下来。我之前是使用 picgo 搭配 gitee制作了免费的图床,本地用 typore 软件写文,每次写完各处复制一遍发布。 | ||
|
||
现在是 gitee 的免费图床已经崩了(还导致我崩了好多文章的图片),typore 开始变成收费的啦。 | ||
|
||
--- | ||
|
||
> 我就重新搭了一个 github 的图床(原本想用个 CDN 加速的,发现常用的几个都被 DNS 污染啦),我麻了。本地写文的话,我还是习惯用 typore ,就去找了个旧的版本。 | ||
> | ||
> 之前是每个平台都要复制一遍去发,觉得特麻烦,这次我就去找了一下一文多发,发现了一个浏览器插件,这次打算试一试。 | ||
> | ||
> 关于一文多发文章链接为:https://juejin.cn/post/6940875049587097631 有用过的小伙伴,可以告诉我一下。 |
Oops, something went wrong.