Skip to content

Commit

Permalink
fix: better layout handling for plugin doc
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-mulier-p committed Jan 8, 2025
1 parent 07b8ebe commit 3578c33
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
9 changes: 5 additions & 4 deletions assets/styles/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ $bd-gutter-x: 3rem;
color: $white;
line-height: 1.75rem;
font-size: $font-size-md;
font-weight: 400;

a {
color: $purple-36;
Expand All @@ -291,9 +290,11 @@ $bd-gutter-x: 3rem;
}

code {
border: $block-border;
background-color: $black-2;
color: $purple-36;
background: #161617;
border: 1px solid #252526;
border-radius: var(--bs-border-radius);
color: #b9b9ba;
padding: 0 .25rem;
}

.code-block, .doc-alert {
Expand Down
7 changes: 5 additions & 2 deletions components/layout/PluginContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="bd-content">
<DocsFeatureScopeMarker v-if="page.editions || page.version" :editions="page.editions"
:version="page.version"/>
<SchemaToHtml :schema="page.body.jsonSchema" :plugin-type="getPageName()" v-if="page.pluginType === 'definitions'">
<SchemaToHtml class="bd-markdown" :schema="page.body.jsonSchema" :plugin-type="getPageName()" :show-code-lang="true" :copyable-code="true" v-if="page.pluginType === 'definitions'">
<template v-slot:markdown="{ content }">
<MDC :value="content" tag="article" />
</template>
Expand Down Expand Up @@ -179,6 +179,10 @@
<style lang="scss" scoped>
@import "../../assets/styles/variable";
:deep(.plugin-title) {
font-size: 1.5em;
}
.container-fluid {
gap: calc($spacer * 4);
overflow-x: unset;
Expand Down Expand Up @@ -219,7 +223,6 @@
}
:deep(p) {
font-weight: 400;
line-height: 1.75rem;
font-size: $h6-font-size;
}
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"analyze": "nuxt analyze"
},
"dependencies": {
"@kestra-io/ui-libs": "^0.0.82",
"@kestra-io/ui-libs": "^0.0.83",
"@popperjs/core": "^2.11.8",
"@vue-flow/background": "^1.3.2",
"@vue-flow/controls": "^1.1.2",
Expand Down

0 comments on commit 3578c33

Please sign in to comment.