Skip to content

Commit 967efa8

Browse files
committed
docusaurus 3.9.1
1 parent 8c45b83 commit 967efa8

File tree

12 files changed

+6053
-4593
lines changed

12 files changed

+6053
-4593
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ node_modules
2323
/.trash
2424
/.obsidian
2525
#/wener
26+
/local

.prettierrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"bracketSameLine": false,
3+
"trailingComma": "all",
4+
"printWidth": 120,
5+
"singleQuote": true,
6+
"jsxSingleQuote": true,
7+
"overrides": [
8+
{
9+
"files": [
10+
"*.html",
11+
"*.css"
12+
],
13+
"options": {
14+
"singleQuote": false
15+
}
16+
},
17+
{
18+
"files": [
19+
"*.sql"
20+
],
21+
"options": {
22+
"tabWidth": 4
23+
}
24+
}
25+
],
26+
"plugins": [
27+
"prettier-plugin-pkg",
28+
"prettier-plugin-sh"
29+
]
30+
}

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ tikz:
1616

1717
svgo:
1818
pnpm svgo ./notes/courses/cs221/assets/*.svg
19+
20+
scan-links:
21+
pnpm tsx ./scripts/cli.ts scan-links

notes/ai/dev/ai-dev-awesome.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ tags:
1919
- MIT, TS
2020
- [punkpeye/fastmcp](https://github.com/punkpeye/fastmcp)
2121
- TypeScript framework for building MCP servers.
22+
- A2A
23+
- https://a2a-protocol.org/
24+
- https://github.com/a2aproject/A2A
25+
- /.well-known/agent.json
2226
- Coding
2327
- [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli)
2428
- Apache-2.0, TS

notes/service/wiki/web-clipper.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,22 @@ tags:
1313

1414
## Awesome
1515

16-
- https://github.com/obsidianmd/obsidian-clipper
16+
- [obsidianmd/obsidian-clipper](https://github.com/obsidianmd/obsidian-clipper)
17+
- MIT, TypeScript
18+
- defuddle for content extraction
1719
- [webclipper/web-clipper](https://github.com/webclipper/web-clipper)
1820
- GPLv2+, TypeScript
1921
- for Notion,OneNote,Bear,Yuque,Joplin。Clip
2022
- [kepano/defuddle](https://github.com/kepano/defuddle)
2123
- MIT, TypeScript
2224
- Extract the main content from web pages.
25+
- https://kepano.github.io/defuddle/
2326
- [wallabag/wallabag](https://github.com/wallabag/wallabag)
2427
- MIT, PHP
2528
- Mozilla Readability
2629
- ~~Mozilla Pocket~~
2730
- ~~Mozilla Fakespot~~
31+
32+
```bash
33+
pnpx defuddle-cli parse https://github.com/kepano/defuddle-cli --md
34+
```

notes/web/nodejs/nodejs-awesome.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ export N_PREFIX=$HOME/n
301301
- [vercel/arg](https://github.com/vercel/arg)
302302
- CLI Builder
303303
- [tj/commander.js](https://github.com/tj/commander.js)
304+
- MIT, JS
304305
- [privatenumber/cleye](https://github.com/privatenumber/cleye)
305306
- [yargs](https://github.com/yargs/yargs)
306307
- MIT, JS

package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,25 @@
55
"repository": "https://github.com/wenerme/wener",
66
"author": "wener <[email protected]>",
77
"private": true,
8+
"bin": {
9+
"wener-cli": "./scripts/cli.ts"
10+
},
811
"devDependencies": {
9-
"prettier": "^3.1.1",
12+
"@types/node": "^24.7.0",
13+
"@wener/utils": "^1.1.53",
14+
"commander": "^14.0.1",
15+
"consola": "^3.4.2",
16+
"esbuild": "^0.25.10",
17+
"globby": "^15.0.0",
18+
"prettier": "^3.6.2",
1019
"prettier-plugin-pkg": "latest",
1120
"prettier-plugin-sh": "latest",
1221
"prettier-plugin-solidity": "latest",
1322
"prettier-plugin-sql": "latest",
14-
"prettier-plugin-svelte": "^3.1.2",
23+
"prettier-plugin-svelte": "^3.4.0",
1524
"prettier-plugin-toml": "latest",
16-
"svgo": "^3.1.0"
25+
"svgo": "^4.0.0",
26+
"tldts": "^7.0.16",
27+
"tsx": "^4.20.6"
1728
}
1829
}

site/pnpm-lock.yaml renamed to pnpm-lock.yaml

Lines changed: 5604 additions & 4549 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
packages:
2+
- site
3+
4+
linkWorkspacePackages: true
5+
preferWorkspacePackages: true
6+
strictPeerDependencies: false
7+
8+
# 180 3h
9+
# 1440 24h
10+
# 3600 1w
11+
minimumReleaseAge: 180
12+
minimumReleaseAgeExclude:
13+
- "@wener/*"
14+
15+
onlyBuiltDependencies:
16+
- "@swc/core"
17+
- "@tailwindcss/oxide"
18+
- "argon2"
19+
- "bcrypt"
20+
- "better-sqlite3"
21+
- "canvas"
22+
- "duckdb"
23+
- "esbuild"
24+
- "sharp"
25+
- "workerd"

scripts/cli.ts

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env tsx
2+
3+
import { Command } from 'commander';
4+
import { scanLinks } from './scan-link.ts';
5+
6+
const program = new Command();
7+
8+
program.name('wener-cli').description("Wener's note management CLI tools").version('1.0.0');
9+
10+
program
11+
.command('scan-links')
12+
.description('Scan markdown files for links and generate JSON output')
13+
.option('-s, --scan-dir <dir...>', 'Directory to scan for markdown files (can be used multiple times)', [
14+
'notes',
15+
'story',
16+
])
17+
.option('-o, --output <file>', 'Output file for links.json', 'local/links.json')
18+
.option('-m, --output-meta <file>', 'Output file for links.meta.json', 'local/links.meta.json')
19+
.action(async (options) => {
20+
try {
21+
// Handle multiple scan directories - commander collects multiple values into an array
22+
let scanDirs = options.scanDir;
23+
if (!Array.isArray(scanDirs)) {
24+
scanDirs = scanDirs ? [scanDirs] : [];
25+
}
26+
27+
console.log(`🔍 Scanning directories: ${scanDirs.join(', ')}`);
28+
console.log(`📄 Output files:`);
29+
console.log(` - Links: ${options.output}`);
30+
console.log(` - Meta: ${options.outputMeta}`);
31+
32+
await scanLinks({
33+
scanDirs,
34+
outputFile: options.output,
35+
outputMetaFile: options.outputMeta,
36+
});
37+
} catch (error) {
38+
console.error('❌ Error:', error);
39+
process.exit(1);
40+
}
41+
});
42+
43+
// Parse command line arguments
44+
program.parse();

0 commit comments

Comments
 (0)