mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-15 10:10:12 +00:00
Add "data-based" command doc framework basics
This commit is contained in:
parent
cca287d3e3
commit
321f4d7d25
10 changed files with 166 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<template>
|
||||
<p class="command-example">
|
||||
<span class="bot-prefix">pk;</span><slot></slot>
|
||||
<span class="example-comment" v-if="comment">// {{ comment }}</span>
|
||||
</p>
|
||||
</template>
|
||||
|
||||
|
|
@ -8,8 +9,8 @@
|
|||
.command-example {
|
||||
font-size: $exampleFontSize;
|
||||
font-family: $exampleFontFamily;
|
||||
|
||||
color: $exampleTextColor;
|
||||
|
||||
background-color: $exampleBgColor;
|
||||
border-radius: 6px;
|
||||
|
||||
|
|
@ -20,4 +21,15 @@
|
|||
.bot-prefix {
|
||||
color: $examplePrefixColor;
|
||||
}
|
||||
</style>
|
||||
|
||||
.example-comment {
|
||||
color: $exampleCommentColor;
|
||||
float: right;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: ["comment"]
|
||||
}
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue