feat: Добавить VitePress

This commit is contained in:
2026-07-25 17:56:16 +03:00
parent cfcff10c58
commit 6f6e4896af
80 changed files with 4663 additions and 665 deletions

View File

@@ -0,0 +1,29 @@
<script setup lang="ts">
import { computed } from 'vue'
import { useData } from 'vitepress'
import DefaultTheme from 'vitepress/theme'
import DocSetHeader from './DocSetHeader.vue'
const { Layout } = DefaultTheme
const { lang } = useData()
const bannerText = computed(() =>
lang.value.startsWith('ru')
? 'SLM 2.0 DRAFT / Не заменяет действующую документацию'
: 'SLM 2.0 DRAFT / Not the current stable documentation',
)
</script>
<template>
<Layout>
<template #layout-top>
<div class="draft-banner">
<span class="draft-banner__mark" aria-hidden="true" />
{{ bannerText }}
</div>
</template>
<template #sidebar-nav-before>
<DocSetHeader />
</template>
</Layout>
</template>