Skip to content
Snippets Groups Projects
Commit 46f53868 authored by syuilo's avatar syuilo
Browse files

Improve docs

parent eac7f11a
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,10 @@ export default defineComponent({
fetchDoc() {
fetch(`${url}/doc-assets/${lang}/${this.doc}.md`).then(res => res.text()).then(md => {
this.parse(md);
}).catch(() => {
fetch(`${url}/doc-assets/ja-JP/${this.doc}.md`).then(res => res.text()).then(md => {
this.parse(md);
});
});
},
......
......@@ -69,8 +69,13 @@ export default defineComponent({
},
created() {
fetch(`${url}/docs.json?lang=${lang}`).then(res => res.json()).then(docs => {
this.docs = docs;
fetch(`${url}/docs.json?lang=ja-JP`).then(res => res.json()).then(jaDocs => {
fetch(`${url}/docs.json?lang=${lang}`).then(res => res.json()).then(docs => {
this.docs = jaDocs.map(doc => {
const exist = docs.find(d => d.path === doc.path);
return exist || doc;
});
});
});
},
});
......
......@@ -9,6 +9,10 @@ Misskeyに関する用語集です。
(読み: あいすくりぷと)
Misskey上で使用できるプログラミング言語です。詳細は[こちら。](../advanced/aiscript)
## API
(読み: えーぴーあい)
Misskeyのサーバーが公開している、プログラムからMisskeyを扱うためのインターフェース。詳細は[こちら。](../advanced/api)
## Bot
(読み: ぼっと)
プログラムによって動作しているアカウント。
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment