```text
chore: 新增项目规则文档、构建别名及忽略规则 添加 AGENTS.md 项目规则文件,涵盖语言与工具链、模块设计、 Git 提交规范及验证流程等内容。 变更要点: - .cargo/config.toml 新增 xtask 命令别名 - .gitignore 忽略运行时地图缓存、接收器配置文件、 构建锁文件及本地 docs/ 目录 - 新增 AGENTS.md 定义项目编码、提交与审查规则 ```
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
with open('previews/rid-apple-style.html', 'r', encoding='utf-8') as f:
|
||||
content = f.read()
|
||||
|
||||
# Generate rid-apple-b.html
|
||||
b_content = content.replace('class="layout active" id="layout-a"', 'class="layout" id="layout-a"')
|
||||
b_content = b_content.replace('class="layout" id="layout-b"', 'class="layout active" id="layout-b"')
|
||||
b_content = b_content.replace('button class="nav-tab active" onclick="switchMode(\'a\', this)"', 'button class="nav-tab" onclick="switchMode(\'a\', this)"')
|
||||
b_content = b_content.replace('button class="nav-tab" onclick="switchMode(\'b\', this)"', 'button class="nav-tab active" onclick="switchMode(\'b\', this)"')
|
||||
|
||||
with open('previews/rid-apple-b.html', 'w', encoding='utf-8') as f:
|
||||
f.write(b_content)
|
||||
|
||||
# Generate rid-apple-c.html
|
||||
c_content = content.replace('class="layout active" id="layout-a"', 'class="layout" id="layout-a"')
|
||||
c_content = c_content.replace('class="layout" id="layout-c"', 'class="layout active" id="layout-c"')
|
||||
c_content = c_content.replace('button class="nav-tab active" onclick="switchMode(\'a\', this)"', 'button class="nav-tab" onclick="switchMode(\'a\', this)"')
|
||||
c_content = c_content.replace('button class="nav-tab" onclick="switchMode(\'c\', this)"', 'button class="nav-tab active" onclick="switchMode(\'c\', this)"')
|
||||
|
||||
with open('previews/rid-apple-c.html', 'w', encoding='utf-8') as f:
|
||||
f.write(c_content)
|
||||
|
||||
print('Generated clean UTF-8 rid-apple-b.html and rid-apple-c.html successfully')
|
||||
Reference in New Issue
Block a user