Skip to content

Commit 1932961

Browse files
committed
update links
1 parent b09523d commit 1932961

4 files changed

Lines changed: 1091 additions & 37 deletions

File tree

.gitignore

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,4 @@ node_modules/
77
.env
88
.idea/
99
.vscode/
10-
interneto-links.csv
11-
12-
docs/nsfw-content.md
13-
docs/nsfw-fmhy.md
14-
tasks.md
10+
interneto-links.csv

TODO.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# TODO
2+
3+
- [x] Fix [script](./scripts/convert-interneto-links-to-markdown.js): Move links marked with "fav" (⭐) to the beginning of each folder/subfolder block
4+
- [x] Add total bookmarks count at the beginning of each markdown file in `/docs` folder
5+
- [x] **Add source-code notes to [script](./scripts/convert-interneto-links-to-markdown.js)**
6+
- Parse source-code URLs from CSV based on `Source-code: URL` pattern in note field
7+
- Display source-code reference with Git icon in markdown format
8+
- Implemented output format: `- ⭐ **[title](url)** / [🔗](source-code-url)`
9+
- [x] **Apply markdown lint to output files in [script](./scripts/convert-interneto-links-to-markdown.js)**
10+
- Integrated `lint-markdown.js` to run automatically after conversion
11+
- Ensures all generated files are valid and well-formatted
12+
- Fixes applied: bold formatting for favorites, separators for source-code links
13+
- [x] **Optimize `pnpm run docs:build` performance**
14+
- Fixed Sass deprecation warning by updating to modern compiler API
15+
- Created `.pnpmrc` with optimization settings (hoisted node_modules, strict-peer-dependencies)
16+
- Added `docs:build:prod` and `clean` scripts for CI/CD
17+
- **Result**: Build time reduced from 50s → 26s (52% faster), all warnings eliminated
18+
- [x] **Sort links by alphabetical order, while maintaining favorites at the beginning**
19+
- Modified `renderItems()` in conversion script to sort alphabetically with `localeCompare()`
20+
- Implemented stable sort: favorites first (⭐), then non-favorites
21+
- Within each group (favorites/non-favorites), items sorted alphabetically by title
22+
- Result: Clean, organized output with important links always visible at top
23+
- [x] **Support multiple source-code URLs separated by commas**
24+
- Updated `extractSourceCodeUrls()` to handle multiple URLs from `Source-code:` field
25+
- Supports format: `Source-code: url1, url2, url3`
26+
- Renders as: `- ⭐ **[title](url)** / [🔗](url1), [🔗](url2), [🔗](url3)`
27+
- Flexible parsing with comma separator tolerance
28+
- [ ] Fix change color theme
29+
- [ ] Fix conversion

0 commit comments

Comments
 (0)