Compare commits

...

3 Commits

3 changed files with 21 additions and 20 deletions

1
.gitattributes vendored
View File

@ -19,6 +19,7 @@
*.xml text eol=lf
*.csv text eol=lf
*.sh text eol=lf
*.bat text eol=crlf
*.py text eol=lf
*.pyi text eol=lf
*.pyx text eol=lf

View File

@ -14,28 +14,28 @@ rem Notes:
rem - Snapshot is written to: <project-root>\docs\standards\playbook\
rem - Existing snapshot is backed up before overwrite.
set "SCRIPT_DIR=%~dp0"
for %%I in ("%SCRIPT_DIR%..") do set "SRC=%%~fI"
if "%~1"=="" goto Usage
if "%~1"=="-h" goto Usage
if "%~1"=="--help" goto Usage
set "DEST_ROOT=%~1"
shift
shift /1
set "LANGS="
if "%~1"=="--langs" (
set "LANGS=%~2"
shift
shift
shift /1
shift /1
) else (
set "LANGS=%*"
set "LANGS=%1 %2 %3 %4 %5 %6 %7 %8 %9"
)
if "%LANGS%"=="" set "LANGS=tsl"
set "LANGS=%LANGS:,= %"
set "SCRIPT_DIR=%~dp0"
for %%I in ("%SCRIPT_DIR%..") do set "SRC=%%~fI"
if not exist "%DEST_ROOT%" mkdir "%DEST_ROOT%"
for %%I in ("%DEST_ROOT%") do set "DEST_ROOT_ABS=%%~fI"

View File

@ -110,7 +110,7 @@ $docLines.Add("本快照为裁剪版 Playbooklangs: $langsCsv。")
$docLines.Add("")
$docLines.Add("## 跨语言common")
$docLines.Add("")
$docLines.Add("- 提交信息与版本号:`common/commit_message.md`")
$docLines.Add('- 提交信息与版本号:`common/commit_message.md`')
function Append-DocsSection([string]$Lang) {
switch ($Lang) {
@ -118,30 +118,30 @@ function Append-DocsSection([string]$Lang) {
$docLines.Add("")
$docLines.Add("## TSLtsl")
$docLines.Add("")
$docLines.Add("- 代码风格:`tsl/code_style.md`")
$docLines.Add("- 命名规范:`tsl/naming.md`")
$docLines.Add("- 语法手册:`tsl/syntax_book/index.md`")
$docLines.Add("- 工具链与验证命令(模板):`tsl/toolchain.md`")
$docLines.Add('- 代码风格:`tsl/code_style.md`')
$docLines.Add('- 命名规范:`tsl/naming.md`')
$docLines.Add('- 语法手册:`tsl/syntax_book/index.md`')
$docLines.Add('- 工具链与验证命令(模板):`tsl/toolchain.md`')
break
}
"cpp" {
$docLines.Add("")
$docLines.Add("## C++cpp")
$docLines.Add("")
$docLines.Add("- 代码风格:`cpp/code_style.md`")
$docLines.Add("- 命名规范:`cpp/naming.md`")
$docLines.Add("- 工具链与验证命令(模板):`cpp/toolchain.md`")
$docLines.Add("- 第三方依赖Conan`cpp/dependencies_conan.md`")
$docLines.Add("- clangd 配置:`cpp/clangd.md`")
$docLines.Add('- 代码风格:`cpp/code_style.md`')
$docLines.Add('- 命名规范:`cpp/naming.md`')
$docLines.Add('- 工具链与验证命令(模板):`cpp/toolchain.md`')
$docLines.Add('- 第三方依赖Conan`cpp/dependencies_conan.md`')
$docLines.Add('- clangd 配置:`cpp/clangd.md`')
break
}
"python" {
$docLines.Add("")
$docLines.Add("## Pythonpython")
$docLines.Add("")
$docLines.Add("- 代码风格:`python/style_guide.md`")
$docLines.Add("- 工具链:`python/tooling.md`")
$docLines.Add("- 配置清单:`python/configuration.md`")
$docLines.Add('- 代码风格:`python/style_guide.md`')
$docLines.Add('- 工具链:`python/tooling.md`')
$docLines.Add('- 配置清单:`python/configuration.md`')
break
}
}