Skip to content

Commit 8947fec

Browse files
fix(plugin doc): only one intro is needed & only one root to suspense (#12744)
Co-authored-by: Piyush Bhaskar <[email protected]>
1 parent 8fdbd0a commit 8947fec

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

ui/src/components/plugins/PluginDocumentation.vue

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,17 @@
3232
>
3333
<template #markdown="{content}">
3434
<!-- Plugin schema content: search disabled -->
35-
<Markdown
35+
<Markdown
3636
font-size-var="font-size-base"
3737
:source="content"
3838
/>
3939
</template>
4040
</SchemaToHtml>
41-
42-
<!-- Optional: intro content or other Markdown block -->
43-
<Markdown
44-
v-if="introContent"
45-
:source="introContent"
46-
:showSearch="true"
47-
:collapseExamples="true"
48-
:class="{'position-absolute': absolute}"
49-
/>
5041
</Suspense>
5142
</template>
43+
5244
<Markdown
53-
v-else
45+
v-else-if="introContent"
5446
:source="introContent"
5547
:class="{'position-absolute': absolute}"
5648
:showSearch="true"
@@ -59,7 +51,7 @@
5951
</div>
6052
</template>
6153

62-
<script setup lang="ts">
54+
<script setup lang="ts">
6355
6456
import {computed} from "vue";
6557
import Markdown from "../layout/Markdown.vue";
@@ -107,8 +99,8 @@
10799
window.open(releaseNotesUrl.value, "_blank");
108100
}
109101
};
110-
</script>
102+
</script>
111103

112-
<style scoped lang="scss">
113-
@import "../../styles/components/plugin-doc";
114-
</style>
104+
<style scoped lang="scss">
105+
@import "../../styles/components/plugin-doc";
106+
</style>

0 commit comments

Comments
 (0)