bbcovert 转换phpbb论坛帖子到静态文件
Go to file
cxykevin ac437a0f6a origin commit 2024-06-22 14:50:40 +08:00
.vscode origin commit 2024-06-22 14:50:40 +08:00
theme origin commit 2024-06-22 14:50:40 +08:00
theme.sample origin commit 2024-06-22 14:50:40 +08:00
.gitignore origin commit 2024-06-22 14:50:40 +08:00
config.sample.toml origin commit 2024-06-22 14:50:40 +08:00
dump.py origin commit 2024-06-22 14:50:40 +08:00
readme.md origin commit 2024-06-22 14:50:40 +08:00
render.py origin commit 2024-06-22 14:50:40 +08:00
requirements.txt origin commit 2024-06-22 14:50:40 +08:00
t_parser.py origin commit 2024-06-22 14:50:40 +08:00
test.py origin commit 2024-06-22 14:50:40 +08:00

readme.md

BBcovert

本项目可以将phpbb论坛中的帖子和评论内容转换成纯静态页面

运行

请在字符集设置为utf-8的linux下运行

# 请先配置config.toml!
# 从sample复制
cp config.sample.toml config.toml

# 初始化虚拟环境,推荐先换源
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt

# 下载数据库
python dump.py

# 生成静态页面
python render.py

# 测试生成
python test.py

结构

theme 文件夹内是主题文件

数据库会被下载到 dump 文件夹

生成产物在 build 文件夹