0
0

Added markdown-it-anchor

This commit is contained in:
Opnxng 2023-12-16 12:20:33 +08:00
parent a0c39b47bb
commit fdaa2b6230
5 changed files with 331 additions and 192 deletions

View File

@ -3,6 +3,7 @@ const CleanCSS = require("clean-css");
const htmlmin = require("html-minifier"); const htmlmin = require("html-minifier");
const markdownIt = require("markdown-it"); const markdownIt = require("markdown-it");
const markdownItAttrs = require("markdown-it-attrs"); const markdownItAttrs = require("markdown-it-attrs");
const markdownItAnchor = require("markdown-it-anchor");
module.exports = function(eleventyConfig) { module.exports = function(eleventyConfig) {
@ -14,7 +15,13 @@ module.exports = function(eleventyConfig) {
linkify: true, linkify: true,
}; };
const markdownItAnchorOptions = {
level: 2, // minimum level header -- anchors will only be applied to h2 level headers and below but not h1
permalink: true,
}
const markdownLib = markdownIt(mdOptions) const markdownLib = markdownIt(mdOptions)
.use(markdownItAnchor,markdownItAnchorOptions)
.use(markdownItAttrs) .use(markdownItAttrs)
.use(require('markdown-it-bracketed-spans')) .use(require('markdown-it-bracketed-spans'))
.disable("code"); .disable("code");

View File

@ -23,7 +23,8 @@ docker run --rm --name=npm -u 1000 -v /path/to/website:/app -w /app node:lts-sli
html-minifier \ html-minifier \
clean-css \ clean-css \
markdown-it-attrs \ markdown-it-attrs \
markdown-it-bracketed-spans markdown-it-bracketed-spans \
markdown-it-anchor
``` ```
``` ```
# Generate website # Generate website

487
package-lock.json generated
View File

@ -6,12 +6,13 @@
"": { "": {
"dependencies": { "dependencies": {
"@11ty/eleventy": "^2.0.1", "@11ty/eleventy": "^2.0.1",
"clean-css": "^5.3.2", "clean-css": "^5.3.3",
"html-minifier": "^4.0.0", "html-minifier": "^4.0.0",
"luxon": "^2.3.0", "luxon": "^2.5.2",
"markdown-it-attrs": "^4.1.4", "markdown-it-anchor": "^8.6.7",
"markdown-it-attrs": "^4.1.6",
"markdown-it-bracketed-spans": "^1.0.1", "markdown-it-bracketed-spans": "^1.0.1",
"npm": "^10.2.3" "npm": "^10.2.5"
} }
}, },
"node_modules/@11ty/dependency-tree": { "node_modules/@11ty/dependency-tree": {
@ -252,6 +253,28 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/@types/linkify-it": {
"version": "3.0.5",
"resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.5.tgz",
"integrity": "sha512-yg6E+u0/+Zjva+buc3EIb+29XEg4wltq7cSmd4Uc2EE/1nUVmxyzpX6gUXD0V8jIrG0r7YeOGVIbYRkxeooCtw==",
"peer": true
},
"node_modules/@types/markdown-it": {
"version": "13.0.7",
"resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-13.0.7.tgz",
"integrity": "sha512-U/CBi2YUUcTHBt5tjO2r5QV/x0Po6nsYwQU4Y04fBS6vfoImaiZ6f8bi3CjTCxBPQSO1LMyUqkByzi8AidyxfA==",
"peer": true,
"dependencies": {
"@types/linkify-it": "*",
"@types/mdurl": "*"
}
},
"node_modules/@types/mdurl": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.5.tgz",
"integrity": "sha512-6L6VymKTzYSrEf4Nev4Xa1LCHKrlTlYCBMTlQKFuddo1CvQcE52I0mwfOJayueUC7MJuXOeHTcIU683lzd0cUA==",
"peer": true
},
"node_modules/@types/minimatch": { "node_modules/@types/minimatch": {
"version": "3.0.5", "version": "3.0.5",
"resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz", "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.5.tgz",
@ -511,9 +534,9 @@
} }
}, },
"node_modules/clean-css": { "node_modules/clean-css": {
"version": "5.3.2", "version": "5.3.3",
"resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.2.tgz", "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-5.3.3.tgz",
"integrity": "sha512-JVJbM+f3d3Q704rF4bqQ5UUyTtuJ0JRKNbTKVEeujCCBoMdkEi+V+e8oktO9qGQNSvHrFTM6JZRXrUvGR1czww==", "integrity": "sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg==",
"dependencies": { "dependencies": {
"source-map": "~0.6.0" "source-map": "~0.6.0"
}, },
@ -1416,6 +1439,15 @@
"markdown-it": "bin/markdown-it.js" "markdown-it": "bin/markdown-it.js"
} }
}, },
"node_modules/markdown-it-anchor": {
"version": "8.6.7",
"resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz",
"integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==",
"peerDependencies": {
"@types/markdown-it": "*",
"markdown-it": "*"
}
},
"node_modules/markdown-it-attrs": { "node_modules/markdown-it-attrs": {
"version": "4.1.6", "version": "4.1.6",
"resolved": "https://registry.npmjs.org/markdown-it-attrs/-/markdown-it-attrs-4.1.6.tgz", "resolved": "https://registry.npmjs.org/markdown-it-attrs/-/markdown-it-attrs-4.1.6.tgz",
@ -1618,9 +1650,9 @@
} }
}, },
"node_modules/npm": { "node_modules/npm": {
"version": "10.2.3", "version": "10.2.5",
"resolved": "https://registry.npmjs.org/npm/-/npm-10.2.3.tgz", "resolved": "https://registry.npmjs.org/npm/-/npm-10.2.5.tgz",
"integrity": "sha512-GbUui/rHTl0mW8HhJSn4A0Xg89yCR3I9otgJT1i0z1QBPOVlgbh6rlcUTpHT8Gut9O1SJjWRUU0nEcAymhG2tQ==", "integrity": "sha512-lXdZ7titEN8CH5YJk9C/aYRU9JeDxQ4d8rwIIDsvH3SMjLjHTukB2CFstMiB30zXs4vCrPN2WH6cDq1yHBeJAw==",
"bundleDependencies": [ "bundleDependencies": [
"@isaacs/string-locale-compare", "@isaacs/string-locale-compare",
"@npmcli/arborist", "@npmcli/arborist",
@ -1697,18 +1729,18 @@
"dependencies": { "dependencies": {
"@isaacs/string-locale-compare": "^1.1.0", "@isaacs/string-locale-compare": "^1.1.0",
"@npmcli/arborist": "^7.2.1", "@npmcli/arborist": "^7.2.1",
"@npmcli/config": "^8.0.1", "@npmcli/config": "^8.0.2",
"@npmcli/fs": "^3.1.0", "@npmcli/fs": "^3.1.0",
"@npmcli/map-workspaces": "^3.0.4", "@npmcli/map-workspaces": "^3.0.4",
"@npmcli/package-json": "^5.0.0", "@npmcli/package-json": "^5.0.0",
"@npmcli/promise-spawn": "^7.0.0", "@npmcli/promise-spawn": "^7.0.0",
"@npmcli/run-script": "^7.0.2", "@npmcli/run-script": "^7.0.2",
"@sigstore/tuf": "^2.1.0", "@sigstore/tuf": "^2.2.0",
"abbrev": "^2.0.0", "abbrev": "^2.0.0",
"archy": "~1.0.0", "archy": "~1.0.0",
"cacache": "^18.0.0", "cacache": "^18.0.1",
"chalk": "^5.3.0", "chalk": "^5.3.0",
"ci-info": "^3.9.0", "ci-info": "^4.0.0",
"cli-columns": "^4.0.0", "cli-columns": "^4.0.0",
"cli-table3": "^0.6.3", "cli-table3": "^0.6.3",
"columnify": "^1.6.0", "columnify": "^1.6.0",
@ -1719,16 +1751,16 @@
"hosted-git-info": "^7.0.1", "hosted-git-info": "^7.0.1",
"ini": "^4.1.1", "ini": "^4.1.1",
"init-package-json": "^6.0.0", "init-package-json": "^6.0.0",
"is-cidr": "^4.0.2", "is-cidr": "^5.0.3",
"json-parse-even-better-errors": "^3.0.0", "json-parse-even-better-errors": "^3.0.1",
"libnpmaccess": "^8.0.1", "libnpmaccess": "^8.0.1",
"libnpmdiff": "^6.0.3", "libnpmdiff": "^6.0.3",
"libnpmexec": "^7.0.3", "libnpmexec": "^7.0.4",
"libnpmfund": "^5.0.1", "libnpmfund": "^5.0.1",
"libnpmhook": "^10.0.0", "libnpmhook": "^10.0.0",
"libnpmorg": "^6.0.1", "libnpmorg": "^6.0.1",
"libnpmpack": "^6.0.3", "libnpmpack": "^6.0.3",
"libnpmpublish": "^9.0.1", "libnpmpublish": "^9.0.2",
"libnpmsearch": "^7.0.0", "libnpmsearch": "^7.0.0",
"libnpmteam": "^6.0.0", "libnpmteam": "^6.0.0",
"libnpmversion": "^5.0.1", "libnpmversion": "^5.0.1",
@ -1749,7 +1781,7 @@
"npm-user-validate": "^2.0.0", "npm-user-validate": "^2.0.0",
"npmlog": "^7.0.1", "npmlog": "^7.0.1",
"p-map": "^4.0.0", "p-map": "^4.0.0",
"pacote": "^17.0.4", "pacote": "^17.0.5",
"parse-conflict-json": "^3.0.1", "parse-conflict-json": "^3.0.1",
"proc-log": "^3.0.0", "proc-log": "^3.0.0",
"qrcode-terminal": "^0.12.0", "qrcode-terminal": "^0.12.0",
@ -1757,7 +1789,7 @@
"semver": "^7.5.4", "semver": "^7.5.4",
"spdx-expression-parse": "^3.0.1", "spdx-expression-parse": "^3.0.1",
"ssri": "^10.0.5", "ssri": "^10.0.5",
"strip-ansi": "^6.0.1", "strip-ansi": "^7.1.0",
"supports-color": "^9.4.0", "supports-color": "^9.4.0",
"tar": "^6.2.0", "tar": "^6.2.0",
"text-table": "~0.2.0", "text-table": "~0.2.0",
@ -1800,17 +1832,6 @@
"node": ">=12" "node": ">=12"
} }
}, },
"node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": {
"version": "6.0.1",
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/chalk/ansi-regex?sponsor=1"
}
},
"node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": { "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": {
"version": "9.2.2", "version": "9.2.2",
"inBundle": true, "inBundle": true,
@ -1832,20 +1853,6 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi": {
"version": "7.1.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^6.0.1"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/npm/node_modules/@isaacs/string-locale-compare": { "node_modules/npm/node_modules/@isaacs/string-locale-compare": {
"version": "1.1.0", "version": "1.1.0",
"inBundle": true, "inBundle": true,
@ -1866,56 +1873,8 @@
"node": "^16.14.0 || >=18.0.0" "node": "^16.14.0 || >=18.0.0"
} }
}, },
"node_modules/npm/node_modules/@npmcli/agent/node_modules/agent-base": {
"version": "7.1.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"debug": "^4.3.4"
},
"engines": {
"node": ">= 14"
}
},
"node_modules/npm/node_modules/@npmcli/agent/node_modules/http-proxy-agent": {
"version": "7.0.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"agent-base": "^7.1.0",
"debug": "^4.3.4"
},
"engines": {
"node": ">= 14"
}
},
"node_modules/npm/node_modules/@npmcli/agent/node_modules/https-proxy-agent": {
"version": "7.0.2",
"inBundle": true,
"license": "MIT",
"dependencies": {
"agent-base": "^7.0.2",
"debug": "4"
},
"engines": {
"node": ">= 14"
}
},
"node_modules/npm/node_modules/@npmcli/agent/node_modules/socks-proxy-agent": {
"version": "8.0.2",
"inBundle": true,
"license": "MIT",
"dependencies": {
"agent-base": "^7.0.2",
"debug": "^4.3.4",
"socks": "^2.7.1"
},
"engines": {
"node": ">= 14"
}
},
"node_modules/npm/node_modules/@npmcli/arborist": { "node_modules/npm/node_modules/@npmcli/arborist": {
"version": "7.2.1", "version": "7.2.2",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -1961,12 +1920,12 @@
} }
}, },
"node_modules/npm/node_modules/@npmcli/config": { "node_modules/npm/node_modules/@npmcli/config": {
"version": "8.0.1", "version": "8.0.3",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@npmcli/map-workspaces": "^3.0.2", "@npmcli/map-workspaces": "^3.0.2",
"ci-info": "^3.8.0", "ci-info": "^4.0.0",
"ini": "^4.1.0", "ini": "^4.1.0",
"nopt": "^7.0.0", "nopt": "^7.0.0",
"proc-log": "^3.0.0", "proc-log": "^3.0.0",
@ -1989,6 +1948,20 @@
"node": "^14.17.0 || ^16.13.0 || >=18.0.0" "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
} }
}, },
"node_modules/npm/node_modules/@npmcli/disparity-colors/node_modules/ansi-styles": {
"version": "4.3.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": {
"node": ">=8"
},
"funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1"
}
},
"node_modules/npm/node_modules/@npmcli/fs": { "node_modules/npm/node_modules/@npmcli/fs": {
"version": "3.1.0", "version": "3.1.0",
"inBundle": true, "inBundle": true,
@ -2160,7 +2133,7 @@
} }
}, },
"node_modules/npm/node_modules/@sigstore/sign": { "node_modules/npm/node_modules/@sigstore/sign": {
"version": "2.1.0", "version": "2.2.0",
"inBundle": true, "inBundle": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@ -2173,7 +2146,7 @@
} }
}, },
"node_modules/npm/node_modules/@sigstore/tuf": { "node_modules/npm/node_modules/@sigstore/tuf": {
"version": "2.1.0", "version": "2.2.0",
"inBundle": true, "inBundle": true,
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
@ -2223,6 +2196,17 @@
"node": ">=6.5" "node": ">=6.5"
} }
}, },
"node_modules/npm/node_modules/agent-base": {
"version": "7.1.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"debug": "^4.3.4"
},
"engines": {
"node": ">= 14"
}
},
"node_modules/npm/node_modules/aggregate-error": { "node_modules/npm/node_modules/aggregate-error": {
"version": "3.1.0", "version": "3.1.0",
"inBundle": true, "inBundle": true,
@ -2236,22 +2220,22 @@
} }
}, },
"node_modules/npm/node_modules/ansi-regex": { "node_modules/npm/node_modules/ansi-regex": {
"version": "5.0.1", "version": "6.0.1",
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=8" "node": ">=12"
},
"funding": {
"url": "https://github.com/chalk/ansi-regex?sponsor=1"
} }
}, },
"node_modules/npm/node_modules/ansi-styles": { "node_modules/npm/node_modules/ansi-styles": {
"version": "4.3.0", "version": "6.2.1",
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": { "engines": {
"node": ">=8" "node": ">=12"
}, },
"funding": { "funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1" "url": "https://github.com/chalk/ansi-styles?sponsor=1"
@ -2365,7 +2349,7 @@
} }
}, },
"node_modules/npm/node_modules/cacache": { "node_modules/npm/node_modules/cacache": {
"version": "18.0.0", "version": "18.0.1",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -2374,7 +2358,7 @@
"glob": "^10.2.2", "glob": "^10.2.2",
"lru-cache": "^10.0.1", "lru-cache": "^10.0.1",
"minipass": "^7.0.3", "minipass": "^7.0.3",
"minipass-collect": "^1.0.2", "minipass-collect": "^2.0.1",
"minipass-flush": "^1.0.5", "minipass-flush": "^1.0.5",
"minipass-pipeline": "^1.2.4", "minipass-pipeline": "^1.2.4",
"p-map": "^4.0.0", "p-map": "^4.0.0",
@ -2406,7 +2390,7 @@
} }
}, },
"node_modules/npm/node_modules/ci-info": { "node_modules/npm/node_modules/ci-info": {
"version": "3.9.0", "version": "4.0.0",
"funding": [ "funding": [
{ {
"type": "github", "type": "github",
@ -2420,14 +2404,14 @@
} }
}, },
"node_modules/npm/node_modules/cidr-regex": { "node_modules/npm/node_modules/cidr-regex": {
"version": "3.1.1", "version": "4.0.3",
"inBundle": true, "inBundle": true,
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"dependencies": { "dependencies": {
"ip-regex": "^4.1.0" "ip-regex": "^5.0.0"
}, },
"engines": { "engines": {
"node": ">=10" "node": ">=14"
} }
}, },
"node_modules/npm/node_modules/clean-stack": { "node_modules/npm/node_modules/clean-stack": {
@ -2450,6 +2434,25 @@
"node": ">= 10" "node": ">= 10"
} }
}, },
"node_modules/npm/node_modules/cli-columns/node_modules/ansi-regex": {
"version": "5.0.1",
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/cli-columns/node_modules/strip-ansi": {
"version": "6.0.1",
"inBundle": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/cli-table3": { "node_modules/npm/node_modules/cli-table3": {
"version": "0.6.3", "version": "0.6.3",
"inBundle": true, "inBundle": true,
@ -2516,6 +2519,25 @@
"node": ">=8.0.0" "node": ">=8.0.0"
} }
}, },
"node_modules/npm/node_modules/columnify/node_modules/ansi-regex": {
"version": "5.0.1",
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/columnify/node_modules/strip-ansi": {
"version": "6.0.1",
"inBundle": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/common-ancestor-path": { "node_modules/npm/node_modules/common-ancestor-path": {
"version": "1.0.1", "version": "1.0.1",
"inBundle": true, "inBundle": true,
@ -2697,9 +2719,12 @@
} }
}, },
"node_modules/npm/node_modules/function-bind": { "node_modules/npm/node_modules/function-bind": {
"version": "1.1.1", "version": "1.1.2",
"inBundle": true, "inBundle": true,
"license": "MIT" "license": "MIT",
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
}, },
"node_modules/npm/node_modules/gauge": { "node_modules/npm/node_modules/gauge": {
"version": "5.0.1", "version": "5.0.1",
@ -2719,6 +2744,25 @@
"node": "^14.17.0 || ^16.13.0 || >=18.0.0" "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
} }
}, },
"node_modules/npm/node_modules/gauge/node_modules/ansi-regex": {
"version": "5.0.1",
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/gauge/node_modules/strip-ansi": {
"version": "6.0.1",
"inBundle": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/glob": { "node_modules/npm/node_modules/glob": {
"version": "10.3.10", "version": "10.3.10",
"inBundle": true, "inBundle": true,
@ -2747,7 +2791,6 @@
}, },
"node_modules/npm/node_modules/has": { "node_modules/npm/node_modules/has": {
"version": "1.0.3", "version": "1.0.3",
"inBundle": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"function-bind": "^1.1.1" "function-bind": "^1.1.1"
@ -2761,6 +2804,17 @@
"inBundle": true, "inBundle": true,
"license": "ISC" "license": "ISC"
}, },
"node_modules/npm/node_modules/hasown": {
"version": "2.0.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"function-bind": "^1.1.2"
},
"engines": {
"node": ">= 0.4"
}
},
"node_modules/npm/node_modules/hosted-git-info": { "node_modules/npm/node_modules/hosted-git-info": {
"version": "7.0.1", "version": "7.0.1",
"inBundle": true, "inBundle": true,
@ -2777,6 +2831,30 @@
"inBundle": true, "inBundle": true,
"license": "BSD-2-Clause" "license": "BSD-2-Clause"
}, },
"node_modules/npm/node_modules/http-proxy-agent": {
"version": "7.0.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"agent-base": "^7.1.0",
"debug": "^4.3.4"
},
"engines": {
"node": ">= 14"
}
},
"node_modules/npm/node_modules/https-proxy-agent": {
"version": "7.0.2",
"inBundle": true,
"license": "MIT",
"dependencies": {
"agent-base": "^7.0.2",
"debug": "4"
},
"engines": {
"node": ">= 14"
}
},
"node_modules/npm/node_modules/iconv-lite": { "node_modules/npm/node_modules/iconv-lite": {
"version": "0.6.3", "version": "0.6.3",
"inBundle": true, "inBundle": true,
@ -2809,7 +2887,7 @@
"license": "BSD-3-Clause" "license": "BSD-3-Clause"
}, },
"node_modules/npm/node_modules/ignore-walk": { "node_modules/npm/node_modules/ignore-walk": {
"version": "6.0.3", "version": "6.0.4",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -2866,30 +2944,33 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/npm/node_modules/ip-regex": { "node_modules/npm/node_modules/ip-regex": {
"version": "4.3.0", "version": "5.0.0",
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=8" "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/npm/node_modules/is-cidr": { "node_modules/npm/node_modules/is-cidr": {
"version": "4.0.2", "version": "5.0.3",
"inBundle": true, "inBundle": true,
"license": "BSD-2-Clause", "license": "BSD-2-Clause",
"dependencies": { "dependencies": {
"cidr-regex": "^3.1.1" "cidr-regex": "4.0.3"
}, },
"engines": { "engines": {
"node": ">=10" "node": ">=14"
} }
}, },
"node_modules/npm/node_modules/is-core-module": { "node_modules/npm/node_modules/is-core-module": {
"version": "2.13.0", "version": "2.13.1",
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"has": "^1.0.3" "hasown": "^2.0.0"
}, },
"funding": { "funding": {
"url": "https://github.com/sponsors/ljharb" "url": "https://github.com/sponsors/ljharb"
@ -2931,7 +3012,7 @@
} }
}, },
"node_modules/npm/node_modules/json-parse-even-better-errors": { "node_modules/npm/node_modules/json-parse-even-better-errors": {
"version": "3.0.0", "version": "3.0.1",
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@ -2965,7 +3046,7 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/npm/node_modules/libnpmaccess": { "node_modules/npm/node_modules/libnpmaccess": {
"version": "8.0.1", "version": "8.0.2",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -2977,7 +3058,7 @@
} }
}, },
"node_modules/npm/node_modules/libnpmdiff": { "node_modules/npm/node_modules/libnpmdiff": {
"version": "6.0.3", "version": "6.0.4",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -2996,13 +3077,13 @@
} }
}, },
"node_modules/npm/node_modules/libnpmexec": { "node_modules/npm/node_modules/libnpmexec": {
"version": "7.0.3", "version": "7.0.5",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"@npmcli/arborist": "^7.2.1", "@npmcli/arborist": "^7.2.1",
"@npmcli/run-script": "^7.0.2", "@npmcli/run-script": "^7.0.2",
"ci-info": "^3.7.1", "ci-info": "^4.0.0",
"npm-package-arg": "^11.0.1", "npm-package-arg": "^11.0.1",
"npmlog": "^7.0.1", "npmlog": "^7.0.1",
"pacote": "^17.0.4", "pacote": "^17.0.4",
@ -3017,7 +3098,7 @@
} }
}, },
"node_modules/npm/node_modules/libnpmfund": { "node_modules/npm/node_modules/libnpmfund": {
"version": "5.0.1", "version": "5.0.2",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -3028,7 +3109,7 @@
} }
}, },
"node_modules/npm/node_modules/libnpmhook": { "node_modules/npm/node_modules/libnpmhook": {
"version": "10.0.0", "version": "10.0.1",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -3040,7 +3121,7 @@
} }
}, },
"node_modules/npm/node_modules/libnpmorg": { "node_modules/npm/node_modules/libnpmorg": {
"version": "6.0.1", "version": "6.0.2",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -3052,7 +3133,7 @@
} }
}, },
"node_modules/npm/node_modules/libnpmpack": { "node_modules/npm/node_modules/libnpmpack": {
"version": "6.0.3", "version": "6.0.4",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -3066,11 +3147,11 @@
} }
}, },
"node_modules/npm/node_modules/libnpmpublish": { "node_modules/npm/node_modules/libnpmpublish": {
"version": "9.0.1", "version": "9.0.3",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"ci-info": "^3.6.1", "ci-info": "^4.0.0",
"normalize-package-data": "^6.0.0", "normalize-package-data": "^6.0.0",
"npm-package-arg": "^11.0.1", "npm-package-arg": "^11.0.1",
"npm-registry-fetch": "^16.0.0", "npm-registry-fetch": "^16.0.0",
@ -3084,7 +3165,7 @@
} }
}, },
"node_modules/npm/node_modules/libnpmsearch": { "node_modules/npm/node_modules/libnpmsearch": {
"version": "7.0.0", "version": "7.0.1",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -3095,7 +3176,7 @@
} }
}, },
"node_modules/npm/node_modules/libnpmteam": { "node_modules/npm/node_modules/libnpmteam": {
"version": "6.0.0", "version": "6.0.1",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -3107,7 +3188,7 @@
} }
}, },
"node_modules/npm/node_modules/libnpmversion": { "node_modules/npm/node_modules/libnpmversion": {
"version": "5.0.1", "version": "5.0.2",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -3122,7 +3203,7 @@
} }
}, },
"node_modules/npm/node_modules/lru-cache": { "node_modules/npm/node_modules/lru-cache": {
"version": "10.0.1", "version": "10.1.0",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"engines": { "engines": {
@ -3173,25 +3254,14 @@
} }
}, },
"node_modules/npm/node_modules/minipass-collect": { "node_modules/npm/node_modules/minipass-collect": {
"version": "1.0.2", "version": "2.0.1",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"minipass": "^3.0.0" "minipass": "^7.0.3"
}, },
"engines": { "engines": {
"node": ">= 8" "node": ">=16 || 14 >=14.17"
}
},
"node_modules/npm/node_modules/minipass-collect/node_modules/minipass": {
"version": "3.3.6",
"inBundle": true,
"license": "ISC",
"dependencies": {
"yallist": "^4.0.0"
},
"engines": {
"node": ">=8"
} }
}, },
"node_modules/npm/node_modules/minipass-fetch": { "node_modules/npm/node_modules/minipass-fetch": {
@ -3455,11 +3525,11 @@
} }
}, },
"node_modules/npm/node_modules/npm-packlist": { "node_modules/npm/node_modules/npm-packlist": {
"version": "8.0.0", "version": "8.0.1",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"ignore-walk": "^6.0.0" "ignore-walk": "^6.0.4"
}, },
"engines": { "engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0" "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
@ -3545,7 +3615,7 @@
} }
}, },
"node_modules/npm/node_modules/pacote": { "node_modules/npm/node_modules/pacote": {
"version": "17.0.4", "version": "17.0.5",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
@ -3833,7 +3903,7 @@
} }
}, },
"node_modules/npm/node_modules/signal-exit": { "node_modules/npm/node_modules/signal-exit": {
"version": "4.0.2", "version": "4.1.0",
"inBundle": true, "inBundle": true,
"license": "ISC", "license": "ISC",
"engines": { "engines": {
@ -3879,6 +3949,19 @@
"npm": ">= 3.0.0" "npm": ">= 3.0.0"
} }
}, },
"node_modules/npm/node_modules/socks-proxy-agent": {
"version": "8.0.2",
"inBundle": true,
"license": "MIT",
"dependencies": {
"agent-base": "^7.0.2",
"debug": "^4.3.4",
"socks": "^2.7.1"
},
"engines": {
"node": ">= 14"
}
},
"node_modules/npm/node_modules/spdx-correct": { "node_modules/npm/node_modules/spdx-correct": {
"version": "3.2.0", "version": "3.2.0",
"inBundle": true, "inBundle": true,
@ -3953,7 +4036,15 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/npm/node_modules/strip-ansi": { "node_modules/npm/node_modules/string-width-cjs/node_modules/ansi-regex": {
"version": "5.0.1",
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/string-width-cjs/node_modules/strip-ansi": {
"version": "6.0.1", "version": "6.0.1",
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
@ -3964,6 +4055,39 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/npm/node_modules/string-width/node_modules/ansi-regex": {
"version": "5.0.1",
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/string-width/node_modules/strip-ansi": {
"version": "6.0.1",
"inBundle": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/strip-ansi": {
"version": "7.1.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^6.0.1"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/npm/node_modules/strip-ansi-cjs": { "node_modules/npm/node_modules/strip-ansi-cjs": {
"name": "strip-ansi", "name": "strip-ansi",
"version": "6.0.1", "version": "6.0.1",
@ -3976,6 +4100,14 @@
"node": ">=8" "node": ">=8"
} }
}, },
"node_modules/npm/node_modules/strip-ansi-cjs/node_modules/ansi-regex": {
"version": "5.0.1",
"inBundle": true,
"license": "MIT",
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/supports-color": { "node_modules/npm/node_modules/supports-color": {
"version": "9.4.0", "version": "9.4.0",
"inBundle": true, "inBundle": true,
@ -4187,28 +4319,39 @@
"url": "https://github.com/chalk/wrap-ansi?sponsor=1" "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
} }
}, },
"node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { "node_modules/npm/node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {
"version": "6.0.1", "version": "5.0.1",
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
"node": ">=12" "node": ">=8"
},
"funding": {
"url": "https://github.com/chalk/ansi-regex?sponsor=1"
} }
}, },
"node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-styles": { "node_modules/npm/node_modules/wrap-ansi-cjs/node_modules/ansi-styles": {
"version": "6.2.1", "version": "4.3.0",
"inBundle": true, "inBundle": true,
"license": "MIT", "license": "MIT",
"dependencies": {
"color-convert": "^2.0.1"
},
"engines": { "engines": {
"node": ">=12" "node": ">=8"
}, },
"funding": { "funding": {
"url": "https://github.com/chalk/ansi-styles?sponsor=1" "url": "https://github.com/chalk/ansi-styles?sponsor=1"
} }
}, },
"node_modules/npm/node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {
"version": "6.0.1",
"inBundle": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^5.0.1"
},
"engines": {
"node": ">=8"
}
},
"node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": { "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": {
"version": "9.2.2", "version": "9.2.2",
"inBundle": true, "inBundle": true,
@ -4230,20 +4373,6 @@
"url": "https://github.com/sponsors/sindresorhus" "url": "https://github.com/sponsors/sindresorhus"
} }
}, },
"node_modules/npm/node_modules/wrap-ansi/node_modules/strip-ansi": {
"version": "7.1.0",
"inBundle": true,
"license": "MIT",
"dependencies": {
"ansi-regex": "^6.0.1"
},
"engines": {
"node": ">=12"
},
"funding": {
"url": "https://github.com/chalk/strip-ansi?sponsor=1"
}
},
"node_modules/npm/node_modules/write-file-atomic": { "node_modules/npm/node_modules/write-file-atomic": {
"version": "5.0.1", "version": "5.0.1",
"inBundle": true, "inBundle": true,

View File

@ -1,11 +1,12 @@
{ {
"dependencies": { "dependencies": {
"@11ty/eleventy": "^2.0.1", "@11ty/eleventy": "^2.0.1",
"clean-css": "^5.3.2", "clean-css": "^5.3.3",
"html-minifier": "^4.0.0", "html-minifier": "^4.0.0",
"luxon": "^2.3.0", "luxon": "^2.5.2",
"markdown-it-attrs": "^4.1.4", "markdown-it-anchor": "^8.6.7",
"markdown-it-attrs": "^4.1.6",
"markdown-it-bracketed-spans": "^1.0.1", "markdown-it-bracketed-spans": "^1.0.1",
"npm": "^10.2.3" "npm": "^10.2.5"
} }
} }

View File

@ -9,7 +9,8 @@ date: 2023-01-01
* | * * | *
------- | ------- ------- | -------
15.12 | Our Teddit and Libreddit instances now utilize [Cloudflare Warp](https://github.com/libreddit/libreddit/issues/870#issuecomment-1856548416){target="_blank"}. Both are hosted only to mitigate bad experiences on a bad platform. Seek greener pastures! 15.12 | Our Teddit and Libreddit instances now utilize [Cloudflare Warp](https://github.com/libreddit/libreddit/issues/870#issuecomment-1856548416){target="_blank"}. Please be aware of the privacy implications. {#cloudflarewarp}
 | Both are hosted only to mitigate bad experiences on a bad platform. Seek greener pastures!
13.12 | Started hosting [Priviblur](https://tb.opnxng.com){target="_blank"}, a private frontend to Tumblr. 13.12 | Started hosting [Priviblur](https://tb.opnxng.com){target="_blank"}, a private frontend to Tumblr.
08.12 | Set up [rate-limiting](https://github.com/zedeus/nitter/wiki/Rate-Limiting-%E2%80%90-Nginx) in Nitter. Banned IP addresses are now logged and kept for 30 days, but the access log remains disabled. 08.12 | Set up [rate-limiting](https://github.com/zedeus/nitter/wiki/Rate-Limiting-%E2%80%90-Nginx) in Nitter. Banned IP addresses are now logged and kept for 30 days, but the access log remains disabled.
20.11 | Started hosting [Cloudtube](https://yt.opnxng.com){target="_blank"}. Note that vidoes are not proxied. 20.11 | Started hosting [Cloudtube](https://yt.opnxng.com){target="_blank"}. Note that vidoes are not proxied.