GitPad
Back to board

cdyforever/how-to-live-better

cdyforever · personal account · GitHub id 11661030
GitHub

《高性价比人生指南》全书 528 条的在线单页阅读版:手机可读、可搜索、零依赖、支持离线

tools
Verify the dev 177 followerson GitHub since 201514 public repos

Straight from the GitHub profile. The social links are the ones GitHub shows on github.com/cdyforever: nothing here is submitted to GitPad.

Stars
14k
Velocity
342★/day
Forks
1.0k
Language
HTML
Created
2026-09-18 (1mo)
Last push
2026-10-22
Category
tools
GitPad score
100/100
Fee lock

When this repo launches on GitPad, 100% of creator fees are locked on-chain to cdyforever's GitHub vault. The split can never be changed after launch, by anyone. cdyforever claims by connecting GitHub on pump.fun.

22vazWe9rh8XdkaY32LoPBbsK6FV3nYRpUK672a31bz1
vault not created

In short

This project is a single-file HTML reading page that renders the 32 sections and 528 entries of the open book 《高性价比人生指南》 (A Guide to Living Well Value-for-Money) into a searchable web page. It includes a Python build script that generates the page from a local clone of the upstream book repository, and a scheduled workflow that regenerates the page daily when the upstream content changes. The page has no external dependencies, supports keyword search with highlighting, filtering by evidence grade and by plain-language summaries, and a light/dark theme.

Written by GitPad research from the repo’s public material. The full text follows below.

README · straight from GitHub

高性价比人生指南 · 在线阅读页

一个单文件 HTML 阅读页,把开源书《高性价比人生指南》的全部 32 节、528 条建议 渲染成可搜索的页面。手机上打开就能看,不用装任何东西。

在线阅读: https://cdyforever.github.io/how-to-live-better/

这是什么

原书由 eternity4719/HowToLiveBetter 维护(Unlicense,公有领域),按「性价比」排序,每条写清花掉什么、换回什么、证据多硬, 只引期刊论文和官方文件。

本仓库不是原书的 fork,也不改动原书内容。它只做一件事:把原书正文渲染成一个 自包含的单文件网页,方便在手机和别人的电脑上直接打开。

页面特性

  • 零外部资源:没有 CDN、没有字体外链、不 fetch 任何数据,断网也能读
  • 逐条卡片:建议标题、证据等级(A/B/C)、性价比档、成本标签
  • 「说人话」高亮块——原书里这一栏专门把统计量翻成日常说法,页面上做得最显眼
  • 全站关键词搜索(结果高亮)、只看 A 级、只看说人话
  • 左侧目录带性价比色点,滚动联动
  • 手机端:搜索框独占一行、顶栏向下滚动后自动收成一行、回到顶部按钮
  • 明暗主题切换
  • 支持直接打印

本地使用

不用构建,双击 index.html 即可。

重新生成

# 需要先有一份上游仓库的本地克隆
git clone --depth 1 https://github.com/eternity4719/HowToLiveBetter.git /tmp/upstream

# 全部 32 节
python build.py all -o index.html --repo /tmp/upstream

# 只做某几节
python build.py 1 2 16 --repo /tmp/upstream

源目录也可以用环境变量 HLTB_REPO 指定。

统计口径(条目数、A/B/C 分级、性价比三档)与上游的 tools/sync-stats.ps1 和 index.html 保持一致,生成结果可与上游徽章逐项对照。

自动更新

.github/workflows/rebuild.yml 每天 06:00(北京时间)拉取上游重新生成, 内容有变化才提交。也可以去 Actions 页面手动触发。

授权

原书内容为 Unlicense(公有领域)。本仓库的构建脚本同样不作任何权利保留。