Skip to content

Commit 4dff92d

Browse files
committed
add doc
1 parent 4403cb6 commit 4dff92d

File tree

17 files changed

+1573
-1022
lines changed

17 files changed

+1573
-1022
lines changed

HowRead/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# 为什么要读书
2+
3+
4+
5+
- 关于提升自我
6+
- **毛泽东**:“**有了学问,好比站在山上,可以看到很远很多东西;没有学问,如在暗沟里走路,摸索不着,那会苦煞人!**。” 这句话用生动的比喻说明了学问能让人站得高、看得远,摆脱迷茫与无知,更好地认清前行的方向。
7+
- **杨绛**:“**读书的意义大概就是用生活所感去读书,用读书所得去生活吧!**。” 强调读书与生活相互作用,通过读书可以深化对生活的理解,并用书中的智慧来指导生活,从而提升生活的质量和境界。
8+
- **余秋雨**:“阅读的最大理由是想摆脱平庸,早一天就多一份人生的精彩;迟一天就多一天平庸的困扰。” 明确指出读书是摆脱平庸的有效途径,早读书就能早一点让人生变得精彩,避免陷入平庸的生活状态。
9+
- 关于改变命运
10+
- **培根**:“知识就是力量。” 知识来自于读书学习,拥有知识能够增强个人的能力,让人们在面对生活中的各种挑战时更有底气,从而有机会改变自己的命运。
11+
- **颜真卿**:“三更灯火五更鸡,正是男儿读书时。黑发不知勤学早,白首方悔读书迟。” 通过具体的时间点 “三更” 和 “五更”,描绘出刻苦读书的场景,告诫人们要趁年少勤奋读书,否则等到头发变白后悔就晚了,强调了读书对于人生的重要性,年少时的勤奋读书可能会改变一生的命运。
12+
- 关于心灵滋养
13+
- **莎士比亚**:“书籍是全世界的营养品。生活里没有书籍,就好像没有阳光;智慧里没有书籍,就好像鸟儿没有翅膀。” 将书籍比作营养品,形象地说明了书籍对于生活和智慧的重要性,没有书籍,生活就会缺乏阳光,智慧也会受到限制,如同鸟儿失去翅膀无法飞翔,强调了读书对心灵滋养和智慧提升的不可或缺性。
14+
- **三毛**:“读书多了,容颜自然改变,许多时候,自己可能以为许多看过的书籍都成了过眼云烟,不复记忆,其实他们仍是潜在的。在气质里,在谈吐上,在胸襟的无涯,当然也可能显露在生活和文字里。” 说明读书对人的影响是潜移默化的,即使读过的书可能不记得具体内容,但它们会内化为气质、谈吐和胸襟等方面的提升,滋养人的心灵,让人由内而外散发出独特的魅力。
15+
- 关于认知世界
16+
- **赫尔曼・黑塞**:“世界上任何书籍都不能带给你好运,但是它们能让你悄悄成为你自己。” 读书不一定能直接带来物质上的好运,但能帮助人们更好地认识自己,进而更好地理解世界,找到自己在世界中的位置,实现自我价值。
17+
- **董卿**:“你在读书上花的任何时间,都会在某一个时刻给你回报4。” 意思是读书的价值可能不会立即显现,但在未来的某个时刻,它会以某种方式回馈给你,或许是在你面对困难时提供思路,或许是在你与人交流时丰富你的谈资,帮助你更好地认知世界和应对生活中的各种情况。
18+
- 关于社会价值
19+
- **列宁**:“书籍是巨大的力量。” 书籍承载着人类的智慧和知识,通过读书学习,人们能够获取这种力量,进而推动社会的发展和进步,创造更多的社会价值。
20+
- **习近平**:“读书可以让人保持思想活力,让人得到智慧启发,让人滋养浩然之气。” 从个人层面阐述了读书的重要性,当社会中的每个人都通过读书保持思想活力、获得智慧启发并滋养浩然之气时,整个社会就会形成良好的文化氛围,推动社会不断向前发展,体现了读书对于社会文明进步的积极作用。
21+
- 关于积累财富
22+
- 《财富的真相》中提到,财富的生成资料无非是*知识和时间*,想要获得知识那么就要多积累知识,多学习;

HowRead/_sidebar.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* [为什么要读书](README)
2+
* [如何读书](howRead)
3+
* [读书计划](plan)
4+

HowRead/howRead.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 如何读书

HowRead/img/doc-logo.svg

Lines changed: 30 additions & 0 deletions
Loading

HowRead/index.html

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<title>Document</title>
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
8+
<meta name="description" content="Description">
9+
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
10+
<!-- 不同风格样式 -->
11+
<link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/vue.css">
12+
<!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/buble.css"> -->
13+
<!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/dark.css"> -->
14+
<!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/pure.css"> -->
15+
<!-- <link rel="stylesheet" href="//unpkg.com/docsify/lib/themes/dolphin.css"> -->
16+
</head>
17+
18+
<body>
19+
<div id="app"></div>
20+
<script>
21+
// 使用文档 https://docsify.js.org
22+
window.$docsify = {
23+
// 文档标题,会显示在侧边栏顶部。
24+
name: 'docsify',
25+
// 点击文档标题后跳转的链接地址。
26+
nameLink: '/',
27+
// 在侧边栏中出现的网站图标,你可以使用CSS来更改大小
28+
logo: '/img/doc-logo.svg',
29+
// 配置仓库地址或者 username/repo 的字符串,会在页面右上角渲染一个 GitHub Corner 挂件。
30+
repo: 'https://github.com/FallenGodCoder/FallenGodCoder.github.io',
31+
// 自定义侧边栏
32+
loadSidebar: true,
33+
// 自定义侧边栏同时也可以开启目录功能
34+
subMaxLevel: 4,
35+
// 自定义导航栏
36+
loadNavbar: false,
37+
// 自定义封面
38+
coverpage: false,
39+
// 用于配置多个封面
40+
// ,coverpage: ['/', '/zh-cn/']
41+
// 切换页面后是否自动跳转到页面顶部
42+
auto2top: true,
43+
// 全文搜素配置
44+
search: {
45+
maxAge: 86400000, // 过期时间,单位毫秒,默认一天
46+
paths: 'auto', // or []
47+
placeholder: 'Type to search',
48+
// 支持本地化
49+
// placeholder: {
50+
// '/zh-cn/': '搜索',
51+
// '/': 'Type to search'
52+
// },
53+
noData: 'No Result!',
54+
// 支持本地化
55+
// noData: {
56+
// '/zh-cn/': '找不到结果',
57+
// '/': 'No Results'
58+
// },
59+
// 搜索标题的最大程级, 1 - 6
60+
depth: 4
61+
}
62+
}
63+
</script>
64+
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script>
65+
<!-- =====================插件====================== -->
66+
<!-- 全文搜素Search -->
67+
<script src="//unpkg.com/docsify/lib/plugins/search.js"></script>
68+
<!-- emoji插件 -->
69+
<script src="//unpkg.com/docsify/lib/plugins/emoji.js"></script>
70+
<!-- 外链脚本 - External Script -->
71+
<!-- <script src="//unpkg.com/docsify/lib/plugins/external-script.js"></script> -->
72+
<!-- 图片缩放 - Zoom image -->
73+
<!-- 复制到剪贴板 在所有的代码块上添加一个简单的Click to copy按钮来允许用户从你的文档中轻易地复制代码。 -->
74+
<script src="//unpkg.com/docsify-copy-code"></script>
75+
<!-- Disqus评论系统支持。 -->
76+
<!-- <script src="//unpkg.com/docsify/lib/plugins/disqus.min.js"></script> -->
77+
<!-- Gitalk Gitalk,一个现代化的,基于Preact和Github Issue的评论系统 使用详情参考文档-->
78+
<!-- docsify的分页导航插件 -->
79+
<script src="//unpkg.com/docsify-pagination/dist/docsify-pagination.min.js"></script>
80+
81+
<!-- 代码高亮 -->
82+
<!--
83+
其它代码高亮插件参考:
84+
https://github.com/PrismJS/prism/tree/gh-pages/components
85+
https://unpkg.com/browse/prismjs/components/
86+
-->
87+
<script src="//unpkg.com/prismjs/components/prism-java.js"></script>
88+
<script src="//unpkg.com/prismjs/components/prism-bash.js"></script>
89+
<script src="//unpkg.com/prismjs/components/prism-sql.js"></script>
90+
<!-- <script src="//unpkg.com/prismjs/components/prism-css.min.js"></script> -->
91+
<!-- <script src="//unpkg.com/prismjs/components/prism-docker.min.js"></script> -->
92+
<!-- <script src="//unpkg.com/prismjs/components/prism-git.min.js"></script> -->
93+
<!-- <script src="//unpkg.com/prismjs/components/prism-go.min.js"></script> -->
94+
<!-- <script src="//unpkg.com/prismjs/components/prism-groovy.min.js"></script> -->
95+
<!-- <script src="//unpkg.com/prismjs/components/prism-haml.min.js"></script> -->
96+
<!-- <script src="//unpkg.com/prismjs/components/prism-http.min.js"></script> -->
97+
<!-- <script src="//unpkg.com/prismjs/components/prism-ini.min.js"></script> -->
98+
<!-- <script src="//unpkg.com/prismjs/components/prism-json.min.js"></script> -->
99+
<!-- <script src="//unpkg.com/prismjs/components/prism-javascript.min.js"></script> -->
100+
<!-- <script src="//unpkg.com/prismjs/components/prism-json.min.js"></script> -->
101+
<!-- <script src="//unpkg.com/prismjs/components/prism-kotlin.min.js"></script> -->
102+
<!-- <script src="//unpkg.com/prismjs/components/prism-less.min.js"></script> -->
103+
<!-- <script src="//unpkg.com/prismjs/components/prism-nginx.min.js"></script> -->
104+
<!-- <script src="//unpkg.com/prismjs/components/prism-python.min.js"></script> -->
105+
<!-- <script src="//unpkg.com/prismjs/components/prism-sass.min.js"></script> -->
106+
<!-- <script src="//unpkg.com/prismjs/componentsprism-stylus.min.js/"></script> -->
107+
<!-- <script src="//unpkg.com/prismjs/components/prism-yaml.min.js"></script> -->
108+
<!-- <script src="//unpkg.com/prismjs/components/prism-scala.min.js"></script> -->
109+
110+
<script>
111+
// 离线模式
112+
if (typeof navigator.serviceWorker !== 'undefined') {
113+
navigator.serviceWorker.register('sw.js')
114+
}
115+
</script>
116+
</body>
117+
118+
</html>

HowRead/plan.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# 读书计划
2+
3+
4+
5+
## 2025
6+
7+
8+
9+
| 书名 | 作者 | 开始时间 | 读书进度 | 状态 |
10+
| -------------- | ------ | ---------- | -------- | ------ |
11+
| 《财富的真相》 | 李笑来 | 2025/04/16 | 80% | 进行中 |
12+
| | | | | |
13+
| | | | | |
14+

HowRead/sw.js

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
/* ===========================================================
2+
* docsify sw.js
3+
* ===========================================================
4+
* 离线模式引入这个文件
5+
*
6+
* Copyright 2016 @huxpro
7+
* Licensed under Apache 2.0
8+
* Register service worker.
9+
* ========================================================== */
10+
11+
const RUNTIME = 'docsify'
12+
const HOSTNAME_WHITELIST = [
13+
self.location.hostname,
14+
'fonts.gstatic.com',
15+
'fonts.googleapis.com',
16+
'unpkg.com'
17+
]
18+
19+
// The Util Function to hack URLs of intercepted requests
20+
const getFixedUrl = (req) => {
21+
var now = Date.now()
22+
var url = new URL(req.url)
23+
24+
// 1. fixed http URL
25+
// Just keep syncing with location.protocol
26+
// fetch(httpURL) belongs to active mixed content.
27+
// And fetch(httpRequest) is not supported yet.
28+
url.protocol = self.location.protocol
29+
30+
// 2. add query for caching-busting.
31+
// Github Pages served with Cache-Control: max-age=600
32+
// max-age on mutable content is error-prone, with SW life of bugs can even extend.
33+
// Until cache mode of Fetch API landed, we have to workaround cache-busting with query string.
34+
// Cache-Control-Bug: https://bugs.chromium.org/p/chromium/issues/detail?id=453190
35+
if (url.hostname === self.location.hostname) {
36+
url.search += (url.search ? '&' : '?') + 'cache-bust=' + now
37+
}
38+
return url.href
39+
}
40+
41+
/**
42+
* @Lifecycle Activate
43+
* New one activated when old isnt being used.
44+
*
45+
* waitUntil(): activating ====> activated
46+
*/
47+
self.addEventListener('activate', event => {
48+
event.waitUntil(self.clients.claim())
49+
})
50+
51+
/**
52+
* @Functional Fetch
53+
* All network requests are being intercepted here.
54+
*
55+
* void respondWith(Promise<Response> r)
56+
*/
57+
self.addEventListener('fetch', event => {
58+
// Skip some of cross-origin requests, like those for Google Analytics.
59+
if (HOSTNAME_WHITELIST.indexOf(new URL(event.request.url).hostname) > -1) {
60+
// Stale-while-revalidate
61+
// similar to HTTP's stale-while-revalidate: https://www.mnot.net/blog/2007/12/12/stale
62+
// Upgrade from Jake's to Surma's: https://gist.github.com/surma/eb441223daaedf880801ad80006389f1
63+
const cached = caches.match(event.request)
64+
const fixedUrl = getFixedUrl(event.request)
65+
const fetched = fetch(fixedUrl, { cache: 'no-store' })
66+
const fetchedCopy = fetched.then(resp => resp.clone())
67+
68+
// Call respondWith() with whatever we get first.
69+
// If the fetch fails (e.g disconnected), wait for the cache.
70+
// If there’s nothing in cache, wait for the fetch.
71+
// If neither yields a response, return offline pages.
72+
event.respondWith(
73+
Promise.race([fetched.catch(_ => cached), cached])
74+
.then(resp => resp || fetched)
75+
.catch(_ => { /* eat any errors */ })
76+
)
77+
78+
// Update the cache with the version we fetched (only for ok status)
79+
event.waitUntil(
80+
Promise.all([fetchedCopy, caches.open(RUNTIME)])
81+
.then(([response, cache]) => response.ok && cache.put(event.request, response))
82+
.catch(_ => { /* eat any errors */ })
83+
)
84+
}
85+
})

0 commit comments

Comments
 (0)