Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
24 changes: 14 additions & 10 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ const Releases = [
export default defineConfig({
title: "Ts.ED a modern Node.js/Bun.js framework built with TypeScript on top of Express.js/Koa.js/Fastify.js/CLI/AWS",
lastUpdated: true,
description: "Ts.ED offers a flexible and easy-to-learn structure designed to enhance the developer experience. It provides decorators, guidelines, and supports Node.js, Bun.js, Express.js, Koa.js, Fastify.js, CLI, and serverless architectures (e.g., AWS).",
description:
"Ts.ED offers a flexible and easy-to-learn structure designed to enhance the developer experience. It provides decorators, guidelines, and supports Node.js, Bun.js, Express.js, Koa.js, Fastify.js, CLI, and serverless architectures (e.g., AWS).",
sitemap: {
hostname: "https://tsed.dev"
},
Expand All @@ -404,17 +405,18 @@ export default defineConfig({
["meta", {name: "theme-color", content: "#5f67ee"}],
["meta", {property: "og:type", content: "website"}],
["meta", {property: "og:locale", content: "en"}],
["meta", {
property: "og:title",
content: "Ts.ED a modern Node.js/Bun.js framework built with TypeScript on top of Express.js/Koa.js/Fastify.js/CLI/AWS"
}],
[
"meta",
{
property: "og:title",
content:
"Ts.ED a modern Node.js/Bun.js framework built with TypeScript on top of Express.js/Koa.js/Fastify.js/CLI/AWS"
}
],
["meta", {property: "og:site_name", content: "Ts.ED"}],
["meta", {property: "og:image", content: "https://tsed.dev/tsed-og.png"}],
["meta", {property: "og:url", content: "https://tsed.dev/"}],
[
"script",
{async: "", src: "https://www.googletagmanager.com/gtag/js?id=G-3M3Q4QME6H&cx=c&_slc=1"}
],
["script", {async: "", src: "https://www.googletagmanager.com/gtag/js?id=G-3M3Q4QME6H&cx=c&_slc=1"}],
[
"script",
{},
Expand Down Expand Up @@ -477,7 +479,9 @@ export default defineConfig({
},
socialLinks: [
{
icon: {svg: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><polygon points=\"19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25\"></polygon><polygon points=\"19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75\"></polygon><path d=\"M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z\"></path></svg>"},
icon: {
svg: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><polygon points="19,9 20.25,6.25 23,5 20.25,3.75 19,1 17.75,3.75 15,5 17.75,6.25"></polygon><polygon points="19,15 17.75,17.75 15,19 17.75,20.25 19,23 20.25,20.25 23,19 20.25,17.75"></polygon><path d="M11.5,9.5L9,4L6.5,9.5L1,12l5.5,2.5L9,20l2.5-5.5L17,12L11.5,9.5z M9.99,12.99L9,15.17l-0.99-2.18L5.83,12l2.18-0.99 L9,8.83l0.99,2.18L12.17,12L9.99,12.99z"></path></svg>'
},
link: "/introduction/ai/develop-with-ai.html"
},
{icon: "github", link: "https://github.com/tsedio/tsed"},
Expand Down
46 changes: 46 additions & 0 deletions docs/.vitepress/theme/Actions.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<script lang="ts" setup>
import AIContentDropdown from "@tsed/vitepress-theme/molecules/ai-content/AIContentDropdown.vue";
import PageNavigationButtons from "@tsed/vitepress-theme/molecules/ai-content/PageNavigationButtons.vue";
</script>
<template>
<div class="wrapper-vp-content-actions">
<div class="vp-content-actions">
<AIContentDropdown />
<PageNavigationButtons />
</div>
</div>
</template>
<style>
.wrapper-vp-content-actions {
position: relative;
z-index: 1;
}

.vp-content-actions {
position: absolute;
top: 5px;
right: 0;
display: flex;
align-items: center;
gap: 6px;
}

.vp-content-actions :deep(.vp-ai-content-actions) {
margin: 0;
display: flex;
align-items: center;
}

.vp-content-actions :deep(.vp-ai-content-menu > summary) {
min-height: 28px;
box-sizing: border-box;
}

@media (max-width: 960px) {
.vp-content-actions {
position: static;
display: flex;
justify-content: flex-end;
}
}
</style>
5 changes: 4 additions & 1 deletion docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// https://vitepress.dev/guide/custom-theme
import {DefaultTheme} from "@tsed/vitepress-theme";
import {DefaultTheme, DocActions} from "@tsed/vitepress-theme";
import HomeBanner from "@tsed/vitepress-theme/organisms/home/HomeBanner.vue";
import HomeBody from "@tsed/vitepress-theme/organisms/home/HomeBody.vue";
import HomeTabsTerminal from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabsTerminal.vue";
Expand All @@ -16,6 +16,9 @@ export default {
extends: DefaultTheme,
Layout: () => {
return h(DefaultTheme.Layout, null, {
"doc-before": () => h(
DocActions
),
"home-hero-image": () =>
h(HomeBanner, null, {
default: () =>
Expand Down
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"@clack/prompts": "^1.0.0-alpha.10",
"@tsed/vitepress-theme": "1.5.8",
"@tsed/vitepress-theme": "1.7.1",
"@vueuse/core": "10.11.0",
"axios": "1.13.5",
"fs-extra": "^11.2.0",
Expand All @@ -21,7 +21,7 @@
"remark-parse": "^9.0.0",
"remark-stringify": "^9.0.1",
"unified": "^9.2.2",
"vitepress": "1.5.0"
"vitepress": "^1.6.4"
},
"devDependencies": {
"autoprefixer": "^10.4.19",
Expand Down
Loading
Loading