dpl/content/tutorials/README.txt

12 lines
945 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

教程为独立页面,Windows 教程按钮用普通链接打开新标签页。
content/tutorials/<平台>/<客户端>/meta.json:标题、语言和平台信息。
同目录 zh-CN.html:教程正文,只维护内容,不复制公共页脚和样式。
同目录 images/:该教程配图,正文引用 ./images/图片名。
resources/tutorials/layout.html:公共页面结构和页脚。
resources/tutorials/tutorial.css:公共样式。
scripts/tutorials/build.mjs:验证图片,生成 resources/views/tutorials 页面、public/tutorials 配图及前端入口索引。
stellar 的 npm run build 自动构建教程。新增平台目录后构建即可连接对应按钮。
生成文件不要直接编辑;从正文、模板、图片源文件修改。
网站名称统一使用外层 .env 的 APP_NAME;模板使用 {{brand}},由后端在请求时填入。修改 APP_NAME 后刷新 Laravel 配置缓存,无需重新编译教程。