From 84958af4ce5d9a313bf77e8a44f303bc56db0c74 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 15 Feb 2020 00:27:53 +0900 Subject: [PATCH] Improve doc page --- locales/ja-JP.yml | 1 + src/client/pages/doc.vue | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index ae4f76f3d..1751bc9f8 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -396,6 +396,7 @@ disableAnimatedMfm: "動きのあるMFMを無効にする" doing: "やっています" category: "カテゴリ" tags: "タグ" +docSource: "このドキュメントのソース" _ago: unknown: "謎" diff --git a/src/client/pages/doc.vue b/src/client/pages/doc.vue index 3a92b7adf..e0db5a374 100644 --- a/src/client/pages/doc.vue +++ b/src/client/pages/doc.vue @@ -3,9 +3,13 @@ {{ title }}
+
{{ title }}
+
@@ -14,19 +18,27 @@ import Vue from 'vue'; import { faFileAlt } from '@fortawesome/free-solid-svg-icons' import MarkdownIt from 'markdown-it'; +import i18n from '../i18n'; import { url, lang } from '../config'; +import MkLink from '../components/link.vue'; const markdown = MarkdownIt({ html: true }); export default Vue.extend({ + i18n, + metaInfo() { return { title: this.title, }; }, + components: { + MkLink + }, + props: { doc: { type: String,