diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-12-27 21:49:39 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-12-27 21:49:39 +0900 |
| commit | 0e7778bebf98d951a4d1c4e4c75e97067082b17d (patch) | |
| tree | 5ac2f2489a779ea2ef0ec14280884c59dfdac437 | |
| parent | fix doc (diff) | |
| download | sharkey-0e7778bebf98d951a4d1c4e4c75e97067082b17d.tar.gz sharkey-0e7778bebf98d951a4d1c4e4c75e97067082b17d.tar.bz2 sharkey-0e7778bebf98d951a4d1c4e4c75e97067082b17d.zip | |
refactor
| -rw-r--r-- | src/client/pages/doc.vue | 2 | ||||
| -rw-r--r-- | src/docs/ja-JP/aiscript.md (renamed from src/docs/aiscript.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/api.md (renamed from src/docs/api.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/create-plugin.md (renamed from src/docs/create-plugin.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/custom-emoji.md (renamed from src/docs/custom-emoji.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/follow.md (renamed from src/docs/follow.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/keyboard-shortcut.md (renamed from src/docs/keyboard-shortcut.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/mute.md (renamed from src/docs/mute.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/pages.md (renamed from src/docs/pages.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/reaction.md (renamed from src/docs/reaction.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/reversi-bot.md (renamed from src/docs/reversi-bot.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/stream.md (renamed from src/docs/stream.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/theme.md (renamed from src/docs/theme.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/docs/ja-JP/timelines.md (renamed from src/docs/timelines.ja-JP.md) | 0 | ||||
| -rw-r--r-- | src/server/web/index.ts | 2 |
15 files changed, 2 insertions, 2 deletions
diff --git a/src/client/pages/doc.vue b/src/client/pages/doc.vue index 402872f0ec..2a4b5b626b 100644 --- a/src/client/pages/doc.vue +++ b/src/client/pages/doc.vue @@ -60,7 +60,7 @@ export default defineComponent({ methods: { fetchDoc() { - fetch(`${url}/assets/docs/${this.doc}.${lang}.md`).then(res => res.text()).then(md => { + fetch(`${url}/assets/docs/${lang}/${this.doc}.md`).then(res => res.text()).then(md => { this.parse(md); }); }, diff --git a/src/docs/aiscript.ja-JP.md b/src/docs/ja-JP/aiscript.md index 6c28b446e3..6c28b446e3 100644 --- a/src/docs/aiscript.ja-JP.md +++ b/src/docs/ja-JP/aiscript.md diff --git a/src/docs/api.ja-JP.md b/src/docs/ja-JP/api.md index 7422307166..7422307166 100644 --- a/src/docs/api.ja-JP.md +++ b/src/docs/ja-JP/api.md diff --git a/src/docs/create-plugin.ja-JP.md b/src/docs/ja-JP/create-plugin.md index 34678a2060..34678a2060 100644 --- a/src/docs/create-plugin.ja-JP.md +++ b/src/docs/ja-JP/create-plugin.md diff --git a/src/docs/custom-emoji.ja-JP.md b/src/docs/ja-JP/custom-emoji.md index 4e1eb5c0e2..4e1eb5c0e2 100644 --- a/src/docs/custom-emoji.ja-JP.md +++ b/src/docs/ja-JP/custom-emoji.md diff --git a/src/docs/follow.ja-JP.md b/src/docs/ja-JP/follow.md index 28a606e283..28a606e283 100644 --- a/src/docs/follow.ja-JP.md +++ b/src/docs/ja-JP/follow.md diff --git a/src/docs/keyboard-shortcut.ja-JP.md b/src/docs/ja-JP/keyboard-shortcut.md index 3811613db3..3811613db3 100644 --- a/src/docs/keyboard-shortcut.ja-JP.md +++ b/src/docs/ja-JP/keyboard-shortcut.md diff --git a/src/docs/mute.ja-JP.md b/src/docs/ja-JP/mute.md index 6a9608662a..6a9608662a 100644 --- a/src/docs/mute.ja-JP.md +++ b/src/docs/ja-JP/mute.md diff --git a/src/docs/pages.ja-JP.md b/src/docs/ja-JP/pages.md index a7311b95e6..a7311b95e6 100644 --- a/src/docs/pages.ja-JP.md +++ b/src/docs/ja-JP/pages.md diff --git a/src/docs/reaction.ja-JP.md b/src/docs/ja-JP/reaction.md index 476af64e8b..476af64e8b 100644 --- a/src/docs/reaction.ja-JP.md +++ b/src/docs/ja-JP/reaction.md diff --git a/src/docs/reversi-bot.ja-JP.md b/src/docs/ja-JP/reversi-bot.md index 43f455cfe1..43f455cfe1 100644 --- a/src/docs/reversi-bot.ja-JP.md +++ b/src/docs/ja-JP/reversi-bot.md diff --git a/src/docs/stream.ja-JP.md b/src/docs/ja-JP/stream.md index 40fc49916e..40fc49916e 100644 --- a/src/docs/stream.ja-JP.md +++ b/src/docs/ja-JP/stream.md diff --git a/src/docs/theme.ja-JP.md b/src/docs/ja-JP/theme.md index c9604da412..c9604da412 100644 --- a/src/docs/theme.ja-JP.md +++ b/src/docs/ja-JP/theme.md diff --git a/src/docs/timelines.ja-JP.md b/src/docs/ja-JP/timelines.md index 36ba61bd2d..36ba61bd2d 100644 --- a/src/docs/timelines.ja-JP.md +++ b/src/docs/ja-JP/timelines.md diff --git a/src/server/web/index.ts b/src/server/web/index.ts index 468ece5359..57ce9b38a4 100644 --- a/src/server/web/index.ts +++ b/src/server/web/index.ts @@ -110,7 +110,7 @@ router.get('/docs.json', async ctx => { ctx.body = []; return; } - const paths = glob.sync(__dirname + `/../../../src/docs/*.${lang}.md`); + const paths = glob.sync(__dirname + `/../../../src/docs/${lang}/*.md`); const docs: { path: string; title: string; }[] = []; for (const path of paths) { const md = fs.readFileSync(path, { encoding: 'utf8' }); |