Dashy 的 index.html 不保证有 </body>,原来 sed 替换 </body> 会静默丢掉注入的 <script>(旧镜像里 script 与 </body> 同行,被整行删除后就没有锚点了), 结果新访客加载不到 navi.js。改为 Python 脚本:先清理旧标签,再在 </head>/</body> 前插入,缺 </body> 时在 </html> 前补回来,可重复执行。 同时 .gitignore 忽略 __pycache__。
27 lines
272 B
Plaintext
27 lines
272 B
Plaintext
# Data and private deployment config
|
|
/data/
|
|
conf.yml
|
|
|
|
# Environment
|
|
.env
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
|
|
# Go
|
|
gateway/navi-gateway
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
.codegraph/
|
|
|
|
# Go build output
|
|
history-server/history-server
|
|
admin-server/admin-server
|
|
|
|
# Python 缓存
|
|
__pycache__/
|
|
*.pyc
|