how-to-live-better README

The project's README from github.com/cdyforever/how-to-live-better. As one markdown file: README.md.

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

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

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

这是什么

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

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

页面特性

本地使用

不用构建,双击 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(公有领域)。本仓库的构建脚本同样不作任何权利保留。

how-to-live-better (cdyforever/how-to-live-better)

chinese
Searching Database…

What is this?A single, self-contained HTML page that renders the open-source book '高性价比人生指南' (How to Live Better) — all 32 sections and 528 life-advice tips — into a searchable, mobile-friendly reading page.
Is this a fork of the original book, or just a reader for it?It's not a fork — it doesn't change the original book's content at all. It's purely a renderer that turns the upstream repo's text into one self-contained webpage.
How do I open and read it?Open the online reading page, or download the repo and double-click index.html locally — no build step is required.
Do I need internet access or any tools to use it?No. The page uses zero external resources — no CDN, no external fonts, no fetch calls — so it keeps working fully offline once loaded.
How is the content kept in sync with the original book?A GitHub Actions workflow pulls the upstream repo daily at 06:00 Beijing time and rebuilds the page, committing only when the content actually changed.
What does the A/B/C grading on each tip mean?Each tip carries an evidence-strength grade (A/B/C) and a cost-effectiveness tier, showing how solid its underlying research citation is.
What is the '说人话' highlight block?It's a plain-language callout that translates each tip's statistics into everyday wording, and it's made the most visually prominent part of each card.
Can I search or filter the tips?Yes — there's a site-wide keyword search with highlighted matches, plus toggles to show only A-grade tips or only the plain-language summaries.
Can I regenerate the page myself from the source?Yes, the source folder can be set via the HLTBREPO environment variable, and the stats format matches the upstream repo's sync script so output can be checked against its badges.
Creator
cdyforever
Size
2 MB
Stars
12.4K
Updated
CommitOct 15
Age
30d
Commits · 90 Days