Skip to content

Commit 99cc41e

Browse files
committed
update the crawl
1 parent 1d75223 commit 99cc41e

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

docs/_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ author:
2323

2424
# Mermaid settings
2525
mermaid:
26-
version: "10.9.3" # Pick the version you want
26+
version: "11.6.0" # Pick the version you want
2727
# Default configuration
2828
config: |
2929
directionLR

utils/crawl_github_files.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -155,23 +155,6 @@ def should_include_file(file_path: str, file_name: str) -> bool:
155155
files = {}
156156
skipped_files = []
157157

158-
def should_include_file(file_path: str, file_name: str) -> bool:
159-
"""Determine if a file should be included based on patterns"""
160-
# If no include patterns are specified, include all files
161-
if not include_patterns:
162-
include_file = True
163-
else:
164-
# Check if file matches any include pattern
165-
include_file = any(fnmatch.fnmatch(file_name, pattern) for pattern in include_patterns)
166-
167-
# If exclude patterns are specified, check if file should be excluded
168-
if exclude_patterns and include_file:
169-
# Exclude if file matches any exclude pattern
170-
exclude_file = any(fnmatch.fnmatch(file_path, pattern) for pattern in exclude_patterns)
171-
return not exclude_file
172-
173-
return include_file
174-
175158
def fetch_contents(path):
176159
"""Fetch contents of the repository at a specific path and commit"""
177160
url = f"https://api.github.com/repos/{owner}/{repo}/contents/{path}"

0 commit comments

Comments
 (0)