Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
fb98f92
wip: add astro with starlight
elevatebart Sep 12, 2025
2903da2
add the cloudflare adapter
elevatebart Sep 12, 2025
dd1d74b
remove most of the errors
elevatebart Sep 12, 2025
bfe2a13
add the changes to gitignore
elevatebart Sep 12, 2025
4e580e5
make docs work
elevatebart Sep 13, 2025
a8d26d4
remove unused import
elevatebart Sep 13, 2025
f00f6a3
make NavSideBar compatible with astro
elevatebart Sep 13, 2025
6d65a38
show the navsidebar in docs
elevatebart Sep 13, 2025
f0a76f2
updat epackage lock
elevatebart Sep 13, 2025
27b2e0f
fix: make NavSideBar type safe
elevatebart Sep 14, 2025
4dcb07f
make navigation work
elevatebart Sep 14, 2025
5191c34
use proper css
elevatebart Sep 14, 2025
290d47e
add the index of docs back
elevatebart Sep 14, 2025
65d59f5
fix the width of sidebar
elevatebart Sep 15, 2025
8d9863e
repair transition of main menu and top titles
elevatebart Sep 15, 2025
7673127
fix docs image href
elevatebart Sep 15, 2025
02b55c8
refactor: use provide-inject to maintain active slug
elevatebart Sep 15, 2025
2c8a69a
make use fof astro clientrouter
elevatebart Sep 15, 2025
e03cf7a
externalize menu generation
elevatebart Sep 15, 2025
9f9f9d1
fix: navigation layout uses sections
elevatebart Sep 15, 2025
9fa2397
better typing
elevatebart Sep 15, 2025
4f74c5f
Merge branch 'main' into astro-poc
elevatebart Sep 15, 2025
d3e27f8
remove unused icon
elevatebart Sep 15, 2025
f8c8425
update package-lock
elevatebart Sep 15, 2025
5fd01f6
feat(website): Revert new home (#3015)
tchiotludo Sep 16, 2025
3bd9e4d
refactor: update docs menu for type safety and nuxt independance (#3059)
elevatebart Sep 16, 2025
9703480
Merge branch 'main' into astro-poc
elevatebart Sep 16, 2025
6140cff
fix build
elevatebart Sep 16, 2025
467bdcd
repalce divs with proper html for test
elevatebart Sep 16, 2025
313c8eb
add the alert directive
elevatebart Sep 16, 2025
4e44532
make progress on alert and code example style
elevatebart Sep 16, 2025
959ef69
fix: add alert classes and add dark class to html
elevatebart Sep 16, 2025
69e1097
refactor: make alerts use 3 colons for use with directive
elevatebart Sep 16, 2025
ddeaa90
refactor: deal with collapsible component
elevatebart Sep 16, 2025
0b5164a
add margin under docs pre
elevatebart Sep 16, 2025
e3f92fb
refactor: make leaf directive not closing like in remark-directive
elevatebart Sep 16, 2025
8f8d0c3
externalize generateId
elevatebart Sep 16, 2025
52a535b
feat: load description in remark custom links
elevatebart Sep 16, 2025
41ec436
add expressive-code
elevatebart Sep 16, 2025
1f94e4a
Merge branch 'main' into astro-poc
elevatebart Sep 17, 2025
ca228e6
refactor: extract each component to its own file
elevatebart Sep 17, 2025
81c6419
better layout
elevatebart Sep 17, 2025
7045aed
remove header from layout
elevatebart Sep 17, 2025
44ee9d5
generalize top menu
elevatebart Sep 17, 2025
d75c6f7
use the generalized top menu
elevatebart Sep 17, 2025
fac5a81
remove useless depes
elevatebart Sep 18, 2025
4c4308f
add back aos and remove content config files
elevatebart Sep 18, 2025
3f1a170
fix multuple bugs from nuxt
elevatebart Sep 18, 2025
acdb20d
import github stargazer component
elevatebart Sep 18, 2025
4ffea5c
re-use aos init
elevatebart Sep 18, 2025
8470319
silence bootstrap warnings
elevatebart Sep 18, 2025
77af48c
fix: use no nuxtimg in layout header
elevatebart Sep 18, 2025
a98cbe9
remove alien characters
elevatebart Sep 18, 2025
898bdcf
feat: add badge for markdown
elevatebart Sep 18, 2025
c420a53
fix badge API
elevatebart Sep 18, 2025
aea2f2d
make nex-link work (no css)
elevatebart Sep 19, 2025
3193030
add css still no icon
elevatebart Sep 19, 2025
de4244d
refactor: denuxtify BigChildCards
elevatebart Sep 19, 2025
85b5463
feat: add support for MDX in content
elevatebart Sep 19, 2025
8241b4e
migration: use MDX for bigchildcards
elevatebart Sep 19, 2025
fbc2a38
add blog in collections
elevatebart Sep 19, 2025
5606212
fix: blog images have to be absolute
elevatebart Sep 19, 2025
447b41d
open a subsection when clicking it
elevatebart Sep 19, 2025
4811baa
ready to test plugins
elevatebart Sep 19, 2025
d673f15
finish plugins list page with icons
elevatebart Sep 22, 2025
4ca51b5
fix: add plugins homepage
elevatebart Sep 23, 2025
3a396fe
fix: remove $route from pagination
elevatebart Sep 23, 2025
5a58c69
fix: improve Common navigation
elevatebart Sep 23, 2025
ca10717
fix: avoid aos hydration warning
elevatebart Sep 23, 2025
f36d636
fix plugins slug promise issue
elevatebart Sep 23, 2025
888352f
register nuxtlink until migration is over
elevatebart Sep 23, 2025
91a9621
chore: make color of pre white for debug
elevatebart Sep 23, 2025
e2f954e
make docs homepage look more complete
elevatebart Sep 23, 2025
cc2601c
start moving plugins to a loader
elevatebart Sep 23, 2025
79d4e6a
fix: remove warning on pagination
elevatebart Sep 24, 2025
28af05e
remove ts issue on plugins composable
elevatebart Sep 24, 2025
2c768b6
remove last ts issue on pagination
elevatebart Sep 24, 2025
1193b10
feat: add plugins collection
elevatebart Sep 24, 2025
951ac92
use the new plugin collection for the login page
elevatebart Sep 24, 2025
0981b93
update ui-libs to avoid depending on vue-router
elevatebart Sep 24, 2025
a78e55b
fix: change defaults of pluginslists
elevatebart Sep 24, 2025
62c4a15
repair plugin loader
elevatebart Sep 24, 2025
872332c
fix: NavToc imports
elevatebart Sep 24, 2025
fa025a0
fix socialslist and plugincard
elevatebart Sep 24, 2025
1f30644
fix: use proper routepath in renderer
elevatebart Sep 24, 2025
1eef130
make plugins page work
elevatebart Sep 24, 2025
70f3c55
feat: plugins display proper icon
elevatebart Sep 24, 2025
f7a4af8
better component definition
elevatebart Sep 27, 2025
8dba0e5
fix: top of home page
elevatebart Sep 29, 2025
3572588
chore: add list of components used by home page
elevatebart Sep 29, 2025
a595858
plugins: make icon and rendering work-ish
elevatebart Sep 29, 2025
10335af
fix: render title and description of plugins
elevatebart Sep 30, 2025
f1e653f
remove useless imports
elevatebart Oct 1, 2025
46ce41b
fix: take care of relative links
elevatebart Oct 1, 2025
ced9ba8
add comments
elevatebart Oct 1, 2025
b6ac074
restore content the way it is on main
elevatebart Oct 3, 2025
9fca015
fix: urls of images and links that had no target
elevatebart Oct 3, 2025
1998a69
Merge branch 'main' into astro-poc
elevatebart Oct 6, 2025
0f5ce61
remove test files
elevatebart Oct 7, 2025
3b93b6f
fix header background
elevatebart Oct 7, 2025
a8da2c0
fix most of home page
elevatebart Oct 7, 2025
f1648e2
progress on blueprints
elevatebart Oct 7, 2025
da51076
add some missing icons to the API
elevatebart Oct 7, 2025
9c6c57f
better icons
elevatebart Oct 7, 2025
c0855c3
add stories
elevatebart Oct 7, 2025
ad7e9b4
Merge branch 'main' into astro-poc
elevatebart Oct 7, 2025
8087c27
publish astro
elevatebart Oct 7, 2025
7602c34
fix build time
elevatebart Oct 7, 2025
69804bb
fix lower part of layout
elevatebart Oct 8, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,8 @@
href: "/favicon-192x192.png",
},
],
titleTemplate: (titleChunk) => {
return titleChunk &&
titleChunk != "Kestra, Open Source Declarative Data Orchestration"
? `${titleChunk}`
: "Kestra, Open Source Declarative Data Orchestration";
titleTemplate: (titleChunk: string | undefined) => {
return titleChunk ?? "Kestra, Open Source Declarative Data Orchestration";
},
});
</script>
Expand Down
4 changes: 4 additions & 0 deletions assets/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ html {
scroll-padding-top: var(--top-bar-height);
}

pre {
color: white;
}

body {
min-width: 320px;
min-height: 100%;
Expand Down
13 changes: 3 additions & 10 deletions assets/styles/components/header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,8 @@ nav {
transform: translateY(0);
max-height: 100%;
width: 100vw;
background-color: $menu-bg;
transition: background-color 250ms ease-in-out;

@keyframes chevron-in {
0% {
Expand Down Expand Up @@ -363,16 +365,7 @@ nav {
&.open {
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
& {
background-color: $menu-bg;
transition: background-color 250ms ease-in-out;
}
}

&.open {
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
& {
background-color: $white;
}
background-color: $white;
}
}
}
Expand Down
120 changes: 115 additions & 5 deletions assets/styles/docs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ $bd-gutter-x: 3rem;
}

.bd-content {
#{--bs-heading-color}: white;
grid-area: content;
min-width: 1px; // Fix width when bd-content contains a `<pre>` https://github.com/twbs/bootstrap/issues/25410

Expand Down Expand Up @@ -235,7 +236,7 @@ $bd-gutter-x: 3rem;

@media only screen and (max-width: 768px) {
padding-bottom: 56.25%;

iframe {
width: 100%;
height: 100%;
Expand Down Expand Up @@ -292,28 +293,137 @@ $bd-gutter-x: 3rem;
}

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

.code-block, .doc-alert {
.code-block, .doc-alert, .astro-code {
background-color: $black-2;
code {
border: 0;
color: $white;
}
}

.code-block {
.code-block, .astro-code {
code {
padding: 0;
}
}

.doc-alert {
@import "../../assets/styles/_variable.scss";

.astro-code {
background-color: $black-2;
border: $block-border;
padding: 1.25rem 1.5rem;
border-radius: var(--bs-border-radius-lg);
color: var(--bs-white);
position: relative;
margin-bottom: 1em;
overflow: hidden;
code .line {
white-space: pre-wrap;
}

.language {
font-size: 0.75rem;
}

.language, .copy {
color: var(--kestra-io-neutral-gray700) !important;
position: absolute;
top: 1.25rem;
right: 1.25rem;
}

.copy {
border: none;
background: none;

& .material-design-icon {
&, & * {
height: 1.125rem !important;
width: 1.125rem !important;
}
}
}

#copied-tooltip {
border-radius: $border-radius;
background: $gray-500;
padding: 4px 8px;
font-size: $font-size-xs;
margin-right: $popper-margin !important;

#arrow,
#arrow::before {
position: absolute;
width: 8px;
height: 8px;
background: inherit;
}

#arrow {
visibility: hidden;
right: -4px;
}

#arrow::before {
visibility: visible;
content: '';
transform: rotate(45deg);
}
}
}

.doc-alert {
border: 1px solid;
border-left-width: 5px !important;
padding: 1rem;
margin-bottom: 1rem;
border-radius: 0.25rem;

> * {
margin: 0;
}
&.alert-danger {
border-color: var(--ks-border-error);
color: var(--ks-content-error);
background-color: var(--ks-background-error);
}

&.alert-warning {
border-color: var(--ks-border-warning);
color: var(--ks-content-warning);
background-color: var(--ks-background-warning);
}

&.alert-info {
border-color: var(--ks-border-info);
color: var(--ks-content-info);
background-color: var(--ks-background-info);
}

&.alert-success {
border-color: var(--ks-border-success);
color: var(--ks-content-success);
background-color: var(--ks-background-success);
}
}

.ks-doc-next-link{
&:hover {
a, a:hover {
color: var(--bs-white) !important;
}
}

p {
display: inline;
margin-bottom: 0 !important;
}
}
}
74 changes: 74 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
// @ts-check
import { defineConfig } from 'astro/config';

import * as path from 'path';
import cloudflare from '@astrojs/cloudflare';
import vue from '@astrojs/vue';
import mdx from '@astrojs/mdx';
import expressiveCode from 'astro-expressive-code';

import remarkDirective from 'remark-directive';
// @ts-expect-error no types provided by package
import remarkLinkRewrite from 'remark-link-rewrite';
import remarkCustomElements from './utils/remark-custom-elements/index.mjs';
import generateId from './utils/generateId';

const __dirname = path.dirname(new URL(import.meta.url).pathname.replace(/^\/([A-Za-z]:)/, '$1'));

// https://astro.build/config
export default defineConfig({
output: 'server',
adapter: cloudflare({
imageService: 'cloudflare'
}),

integrations: [
vue({
appEntrypoint: './src/_main.ts'
}),
expressiveCode({
defaultProps: {
wrap: true,
overridesByLang: {
'bash,sh,zsh,shell': {
frame: 'none',
}
}
}
}),
mdx()
],
markdown: {
remarkPlugins: [
remarkDirective,
remarkCustomElements,
// when internal docs links we point to real files
// while in the docs generated we want to point to urls with generated ids
[remarkLinkRewrite, {
/** @param {string} url */
replacer(url) {
if (url.startsWith('.')) {
return generateId({entry: url})
}
return url;
}
}]
]
},
vite: {
resolve:{
alias: {
"#mdc-imports": path.resolve(__dirname, "node_modules/@kestra-io/ui-libs/stub-mdc-imports.js"),
"#mdc-configs": path.resolve(__dirname, "node_modules/@kestra-io/ui-libs/stub-mdc-imports.js"),
},
},
css: {
preprocessorOptions: {
scss: {
// silence invasive bootstrap warnings
silenceDeprecations: ["color-functions", "global-builtin", "import"],
},
},
},
},
});
2 changes: 2 additions & 0 deletions components/blueprints/ListCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
</template>

<script>
import CommonTaskIcon from "../common/TaskIcon.vue"
export default {
components: { CommonTaskIcon },
props: {
blueprint: {
type: Object,
Expand Down
7 changes: 4 additions & 3 deletions components/common/SocialsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@
</nav>
</div>
</template>
<script setup>
<script lang="ts" setup>
import { computed } from "vue";
import Slack from "vue-material-design-icons/Slack.vue";
import Youtube from "vue-material-design-icons/Youtube.vue";
import Github from "vue-material-design-icons/Github.vue";
import Linkedin from "vue-material-design-icons/Linkedin.vue";
import Twitter from "../components/icons/TwitterXIcon.vue";
import BlueSky from "../components/icons/BlueSkyIcon.vue";
import Twitter from "../icons/TwitterXIcon.vue";
import BlueSky from "../icons/BlueSkyIcon.vue";

const props = defineProps({
page: {
Expand Down
31 changes: 16 additions & 15 deletions components/common/TaskIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
</div>
</template>

<script setup>
const {$bootstrap} = useNuxtApp()
<script lang="ts" setup>
import { computed, ref } from "vue";
// const {$bootstrap} = useNuxtApp()

const props = defineProps({
cls: {
Expand All @@ -23,20 +24,20 @@

const root = ref(null)

onMounted(() => {
if (process.client) {
new $bootstrap.Tooltip(root.value);
}
});
// onMounted(() => {
// if (process.client) {
// new $bootstrap.Tooltip(root.value);
// }
// });

onBeforeUnmount(() => {
if (process.client) {
const tooltip = $bootstrap.Tooltip.getInstance(root.value);
if (tooltip) {
tooltip.dispose();
}
}
});
// onBeforeUnmount(() => {
// if (process.client) {
// const tooltip = $bootstrap.Tooltip.getInstance(root.value);
// if (tooltip) {
// tooltip.dispose();
// }
// }
// });

const generateTagName = () => {
const splittedName = props.cls.split(".");
Expand Down
6 changes: 3 additions & 3 deletions components/community/Community.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ import Star from 'vue-material-design-icons/Star.vue'
import DirectionsFork from 'vue-material-design-icons/DirectionsFork.vue'
import BugOutline from 'vue-material-design-icons/BugOutline.vue'
import AccountGroupOutline from 'vue-material-design-icons/AccountGroupOutline.vue'
import { useApi } from '~/composables/useApi.js'
import { useApi } from '../../composables/useApi'

interface GitHubMetrics {
stars: number
Expand All @@ -122,7 +122,7 @@ const contributors = ref<any[] | undefined>(undefined)
const fetchData = async (): Promise<void> => {
try {
const githubResponse = await $fetch<GitHubResponse>('/api/github')

const [metricsResponse, contributorsResponse] = await Promise.all([
api.get('/communities/github/metrics'),
api.get('/communities/github/contributors')
Expand All @@ -135,7 +135,7 @@ const fetchData = async (): Promise<void> => {
pullRequests: (metricsResponse as any).data?.pullRequests,
commits: (metricsResponse as any).data?.commits
}

contributors.value = (contributorsResponse as any).data
} catch (error) {
contributors.value = []
Expand Down
2 changes: 1 addition & 1 deletion components/community/Contributors.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<script>
import Section from '../../components/layout/Section.vue';
import {useApi} from "~/composables/useApi.js";
import {useApi} from "~/composables/useApi.ts";

export default {
components: {Section},
Expand Down
Loading