mirror of
https://github.com/eunomia-bpf/bpf-developer-tutorial.git
synced 2026-02-03 18:24:27 +08:00
docs: Update README and SUMMARY files to include Intel NPU kernel driver lessons and cgroup policy control
feat: Enhance TOC generation script to include non-numbered directories with .config files chore: Add .config file for cgroup-based policy control
This commit is contained in:
@@ -37,6 +37,9 @@ def generate_toc(base_dir, project_root, output_file_dir):
|
||||
# Add numbered directories directly
|
||||
if re.match(r'^\d+', item):
|
||||
all_dirs.append(item)
|
||||
# Also add non-numbered directories that have .config file
|
||||
elif os.path.exists(os.path.join(item_path, ".config")):
|
||||
all_dirs.append(item)
|
||||
# Also scan subdirectories (like features/, xpu/)
|
||||
else:
|
||||
for subitem in os.listdir(item_path):
|
||||
@@ -165,6 +168,9 @@ def generate_toc_cn(base_dir, project_root, output_file_dir):
|
||||
# Add numbered directories directly
|
||||
if re.match(r'^\d+', item):
|
||||
all_dirs.append(item)
|
||||
# Also add non-numbered directories that have .config file
|
||||
elif os.path.exists(os.path.join(item_path, ".config")):
|
||||
all_dirs.append(item)
|
||||
# Also scan subdirectories (like features/, xpu/)
|
||||
else:
|
||||
for subitem in os.listdir(item_path):
|
||||
|
||||
Reference in New Issue
Block a user