add video and fix filename for md

This commit is contained in:
polv committed 2026-02-01 19:37:08 +07:00
1 parent 00033e0341
commit 2b47af46de
5 files changed
+1496 -2

No files matched your search

+20
View File
@@ -26,6 +26,26 @@ export default defineConfig({
{ icon: 'github', link: 'https://github.com/vuejs/vitepress' } { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
] ]
}, },
markdown: {
image: {
lazyLoading: true,
},
config(md) {
md.renderer.rules.image = function (tokens, idx, options, env, slf) {
const token = tokens[idx];
// Get the alt if it exists
const alt = token.attrGet('alt') || token.content || '';
// Fill the title attribute with the alt if it exists
if (!token.attrGet('title')) {
token.attrSet('title', alt);
}
return slf.renderToken(tokens, idx, options)
}
}
},
vite: { vite: {
clearScreen: false, clearScreen: false,
server: { server: {
+1 -1
View File
@@ -40,7 +40,7 @@ setTimeout(() => setImgClick(), 500)
<style scoped> <style scoped>
video { video {
width: 750px; width: 400px;
overflow: visible; overflow: visible;
position: fixed; position: fixed;
bottom: 10px; bottom: 10px;
+1
View File
@@ -9,6 +9,7 @@ hero:
<Downloader /> <Downloader />
- [みんなうっかり間違える!?中国語 様態補語と程度補語の文法の注意点とは](/みんなうっかり間違える!?中国語_様態補語と程度補語の文法の注意点とは)
- [【剥茧The Truth Within】EP02](/qVVhBGT0K7Y) - [【剥茧The Truth Within】EP02](/qVVhBGT0K7Y)
- [15萬緬甸人在台灣的背後,是一段顛沛流離的故事](/15萬緬甸人在台灣的背後,是一段顛沛流離的故事) - [15萬緬甸人在台灣的背後,是一段顛沛流離的故事](/15萬緬甸人在台灣的背後,是一段顛沛流離的故事)
- [美国突袭委内瑞拉,真的是为了抢那点劣质石油吗?](/美国突袭委内瑞拉,真的是为了抢那点劣质石油吗?) - [美国突袭委内瑞拉,真的是为了抢那点劣质石油吗?](/美国突袭委内瑞拉,真的是为了抢那点劣质石油吗?)
+1 -1
View File
@@ -30,7 +30,7 @@ wss.on('connection', (ws) => {
const { q, duration } = payload; const { q, duration } = payload;
console.log(`Start ${q}`) console.log(`Start ${q}`)
const q_stem = q.replace(/\.[a-z0-9]+$/, "").replace(/\[.+?\]/g, '').trim(); const q_stem = q.replace(/\.[a-z0-9]+$/, "").replace(/\[.+?\]/g, '').replace(/\s+/g, '_').trim();
try { try {
mkdirSync(joinPath(ROOT_DIR, q_stem)); mkdirSync(joinPath(ROOT_DIR, q_stem));