Add docs sidebar info

This commit is contained in:
Ben Haynes
2020-10-08 11:26:18 -04:00
parent 17af0101f1
commit cc77446b6d
2 changed files with 9 additions and 1 deletions

View File

@@ -15,6 +15,12 @@
<div class="docs-content selectable">
<markdown>{{ markdownWithoutTitle }}</markdown>
</div>
<template #drawer>
<drawer-detail icon="info_outline" :title="$t('information')" close>
<div class="page-description" v-html="marked($t('page_help_docs_global'))" />
</drawer-detail>
</template>
</private-view>
</template>
@@ -22,6 +28,7 @@
import { defineComponent, ref, computed, inject, onUpdated } from '@vue/composition-api';
import DocsNavigation from '../components/navigation.vue';
import Markdown from '../components/markdown.vue';
import marked from 'marked';
async function getMarkdownForPath(path: string) {
const pathParts = path.split('/');
@@ -76,7 +83,7 @@ export default defineComponent({
view.value?.$data.contentEl?.scrollTo({ top: 0 });
});
return { markdown, title, markdownWithoutTitle, view };
return { markdown, title, markdownWithoutTitle, view, marked };
},
});
</script>