Skip to content

Commit ee1f1e1

Browse files
committed
Fix minified doc lookup; drop bundled artifacts
1 parent 80b824e commit ee1f1e1

File tree

134 files changed

+12
-25580
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

134 files changed

+12
-25580
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
main.test.cpp
22
.competitive-verifier/*
3-
verify_files.json
3+
verify_files.json
4+
cp-algo/min-bundled
5+
cp-algo/min/min-bundled

.verify-helper/scripts/inject_minified_docs.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,16 @@ def main():
107107
print(f" Found {len(md_files)} markdown files")
108108

109109
for md_file in md_files:
110-
# Get relative path without .md extension
110+
# Get relative path without .md extension, then drop original source extension (.hpp/.cpp/.h)
111111
rel_path = md_file.relative_to(markdown_dir)
112-
path_without_ext = str(rel_path)[:-3] # Remove .md
113-
112+
path_without_ext = str(rel_path)[:-3] # Remove trailing .md
113+
114+
# Drop the original source extension so we don't end up with double extensions
115+
for src_ext in ('.hpp', '.cpp', '.h'):
116+
if path_without_ext.endswith(src_ext):
117+
path_without_ext = path_without_ext[: -len(src_ext)]
118+
break
119+
114120
# Strip cp-algo/ prefix if present since min/min-bundled dirs don't duplicate it
115121
# e.g., _jekyll/cp-algo/math/fft.md -> look for cp-algo/min/math/fft.hpp
116122
path_in_min = path_without_ext

cp-algo/min-bundled/geometry/closest_pair.hpp

Lines changed: 0 additions & 97 deletions
This file was deleted.

cp-algo/min-bundled/geometry/convex_hull.hpp

Lines changed: 0 additions & 84 deletions
This file was deleted.

cp-algo/min-bundled/geometry/point.hpp

Lines changed: 0 additions & 65 deletions
This file was deleted.

0 commit comments

Comments
 (0)