Convert roadmap.org problems from list items to subheadings
Problems are now ** TODO headings with proper org tags (:easy:, :medium:, :hard:) instead of checkbox list items. This enables org-mode filtering by difficulty, proper subtree folding, and automatic cookie updates on toggle.
This commit is contained in:
@@ -224,13 +224,13 @@ function buildOrg(sortedNodes, problemsByTopic) {
|
||||
const tag = difficultyTag(p.difficulty);
|
||||
const lcUrl = `${LEETCODE_BASE}${p.link}`;
|
||||
const num = p.code.split("-")[0];
|
||||
lines.push(`- [ ] TODO ${num}. ${p.name} :${tag}:`);
|
||||
lines.push(` - [ ] TODO Python: [[${GITHUB_SOLUTIONS}python/${p.code}.py][${p.code}.py]]`);
|
||||
lines.push(` - [ ] TODO C++: [[${GITHUB_SOLUTIONS}cpp/${p.code}.cpp][${p.code}.cpp]]`);
|
||||
lines.push(` - LeetCode: [[${lcUrl}][${p.link}]]`);
|
||||
lines.push(`** TODO ${num}. ${p.name} :${tag}:`);
|
||||
lines.push(`- Python: [[${GITHUB_SOLUTIONS}python/${p.code}.py][${p.code}.py]]`);
|
||||
lines.push(`- C++: [[${GITHUB_SOLUTIONS}cpp/${p.code}.cpp][${p.code}.cpp]]`);
|
||||
lines.push(`- LeetCode: [[${lcUrl}][${p.link}]]`);
|
||||
if (p.video)
|
||||
lines.push(
|
||||
` - Video: [[https://youtube.com/watch?v=${p.video}][explanation]]`
|
||||
`- Video: [[https://youtube.com/watch?v=${p.video}][explanation]]`
|
||||
);
|
||||
}
|
||||
lines.push("");
|
||||
|
||||
+990
-990
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user