lzwjava.github.io

Home PDF

这是 GitHub 项目 https://github.com/lzwjava/lzwjava.github.io 的 README.md。


lzwjava.github.io

欢迎来到我的个人博客!在这里,我分享我的想法、经验和知识,涵盖各种主题。

主要改进

与标准的 Jekyll 博客 jekyll-theme-cayman 相比,这个博客包含了以下几项增强:

入门

要设置本地 Jekyll 环境,请按照以下步骤操作:

gem install jekyll bundler

jekyll new myblog

cd myblog

bundle install

bundle exec jekyll serve

bundle exec jekyll serve --draft

bundle add webrick

jekyll serve

Markdown 样式

要自定义语法高亮,请使用 rougify

rougify help style

rougify style github > _sass/syntax.css

rougify style gruvbox.dark > _sass/syntax.css

rougify style base16.monokai.dark > _sass/syntax.css

音频和 PDF 管道

要生成音频和 PDF 文件,请使用以下命令:

conda activate google-cloud-env

python scripts/audio_pipeline.py --task posts --n 10

python scripts/audio_pipeline.py --task pages

python scripts/audio_pipeline.py --task notes

python scripts/audio_pipeline.py --task notes --n 100

python scripts/pdf_pipeline.py --task pages

python scripts/pdf_pipeline.py --task posts --n 10

python scripts/pdf_pipeline.py --task notes

python scripts/generate_notes_link.py

python scripts/auto-ss-config/upload_configs.py

python scripts/epub_book.py notes

python scripts/epub_book.py _posts/en

python scripts/epub_book.py _posts/ja

脚本

要创建新的草稿帖子,请使用:

python scripts/draft.py <name>

内容指南

_postspages 目录支持 -en-zh 后缀。

notes 目录主要包含英文内容,用于个人学习目的,不需要翻译。


Back 2025.02.22 Donate