From ef09b446ae6432ac5aa371a85bc2b8e566036baf Mon Sep 17 00:00:00 2001 From: Lanqing Huang Date: Fri, 6 Dec 2024 11:56:37 +0800 Subject: [PATCH] docs: Fix incorrect file paths and refine for better readability (#272) --- docs/build_config.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/build_config.md b/docs/build_config.md index f975bb6..00ce1d6 100644 --- a/docs/build_config.md +++ b/docs/build_config.md @@ -203,7 +203,7 @@ You can include additional files that are not normally installed inside site-pac [tool.pdm.build.wheel-data] # Install all files under scripts/ to the $prefix/bin directory. scripts = ["scripts/*"] -# Install all *.h files under headers/ (recursively) to the $prefix/include directory, +# Recursively install all *.h files from headers/ to the $prefix/include directory, # flattening all files into one directory: # headers/folder1/file1.h -> $prefix/include/file1.h # headers/folder2/file2.h -> $prefix/include/file2.h @@ -225,17 +225,17 @@ Advanced examples: ```toml [tool.pdm.build.wheel-data] -# Install all *.h files under headers/ (recursively) to the $prefix/include directory, -# keeping the directory structure (thanks to relative-to). +# Recursively install all *.h files under headers/ to the $prefix/include directory, +# while preserving the directory structure (thanks to relative-to). # We make the destination paths relative to "headers" # so that "headers" does not appear in the destination paths: # headers/folder1/file1.h -> $prefix/include/folder1/file1.h include = [{path = "headers/**/*.h", relative-to = "headers/"}] -# Install all files under share/ (recursively) to the $prefix/data directory, -# keeping the directory structure (thanks to relative-to). +# Recursively install all files from share/ to the $prefix/data directory, +# while preserving the directory structure (thanks to relative-to). # We make the destination paths relative to "." # to preserve the exact same directory structure in the destination: -# share/man/man1/project.1 -> $prefix/data/share/man/man1/project.1 +# share/man/man1/project.1 -> $prefix/share/man/man1/project.1 data = [{path = "share/**/*", relative-to = "."}] ```