From 4e0bbd7fbea73b8dfc2c77de56c62208e71ead6f Mon Sep 17 00:00:00 2001 From: sharpchen Date: Mon, 1 Jan 2024 02:19:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=97=20route:=20add=20`cesiumjs`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/[docRoute].paths.ts | 9 ++++++++- docs/data/Features.data.ts | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/[docRoute].paths.ts b/docs/[docRoute].paths.ts index 3b26f499..25a64d86 100644 --- a/docs/[docRoute].paths.ts +++ b/docs/[docRoute].paths.ts @@ -1,11 +1,18 @@ +type Path = { + params: { + docRoute: string; + }; +}; + const object = { - paths: () => [ + paths: (): Path[] => [ { params: { docRoute: 'docker' } }, { params: { docRoute: 'javascript' } }, { params: { docRoute: 'sql' } }, { params: { docRoute: 'csharpdesignpatterns' } }, { params: { docRoute: 'articles' } }, { params: { docRoute: 'vue3' } }, + { params: { docRoute: 'cesiumjs' } }, ], }; diff --git a/docs/data/Features.data.ts b/docs/data/Features.data.ts index 9ea01815..e1d97892 100644 --- a/docs/data/Features.data.ts +++ b/docs/data/Features.data.ts @@ -1,5 +1,5 @@ -import { type Feature } from 'vitepress/dist/client/theme-default/components/VPFeatures.vue'; import matter from 'gray-matter'; +import { type Feature } from 'vitepress/dist/client/theme-default/components/VPFeatures.vue'; // const matter = require('gray-matter'); const featuresLiteral = `--- features: @@ -43,6 +43,11 @@ features: icon: ⚡ link: /vue3 linkText: Get started + - title: CesiumJS + details: CesiumJS with vite + icon: 🌏 + link: /cesiumjs + linkText: Get started --- `;