From 6ebb1afaa21cee0f69890aa8f0d5c119b90b8640 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javis=20V=2E=20P=C3=A9rez?= Date: Thu, 7 Nov 2024 15:45:54 -0400 Subject: [PATCH] Fix some 404's and add a "new" sitemap (#595) --- docs/.vitepress/config.mts | 19 ++----------------- docs/src/docs/cli/installation.md | 2 +- docs/src/docs/modelkit/intro.md | 6 +++--- 3 files changed, 6 insertions(+), 21 deletions(-) diff --git a/docs/.vitepress/config.mts b/docs/.vitepress/config.mts index 046e91d9..7ac88c87 100644 --- a/docs/.vitepress/config.mts +++ b/docs/.vitepress/config.mts @@ -152,23 +152,8 @@ export default defineConfig({ ]) }, - // Generate the sitemap.xml - transformHtml: (_, id, { pageData }) => { - if (!/[\\/]404\.html$/.test(id)) { - links.push({ - url: pageData.relativePath.replace(/\/index\.md$/, '/').replace(/\.md$/, '.html'), - lastmod: pageData.lastUpdated, - }) - } - }, - - buildEnd: async ({ outDir }) => { - const sitemap = new SitemapStream({ hostname: 'https://kitops.ml/' }) - const writeStream = createWriteStream(resolve(outDir, 'sitemap.xml')) - sitemap.pipe(writeStream) - links.forEach((link) => sitemap.write(link)) - sitemap.end() - await new Promise((r) => writeStream.on('finish', r)) + sitemap: { + hostname: 'https://kitops.ml' }, vite: { diff --git a/docs/src/docs/cli/installation.md b/docs/src/docs/cli/installation.md index a4f5b455..761c7b19 100644 --- a/docs/src/docs/cli/installation.md +++ b/docs/src/docs/cli/installation.md @@ -31,7 +31,7 @@ kit version This command should display the version number of the Kit CLI you have installed, indicating that the installation was successful. -Now follow our [Quick Start](../get-started.md) to learn how to pack and share your first ModelKit. +Now follow our [Quick Start](/docs/get-started.md) to learn how to pack and share your first ModelKit. **Need Help?** If something isn't working [get help on our Discord channel](https://discord.gg/Tapeh8agYy). diff --git a/docs/src/docs/modelkit/intro.md b/docs/src/docs/modelkit/intro.md index 0904c781..22aa7a2c 100644 --- a/docs/src/docs/modelkit/intro.md +++ b/docs/src/docs/modelkit/intro.md @@ -4,9 +4,9 @@ ModelKit revolutionizes the way AI/ML artifacts are shared and managed throughout the lifecycle of AI/ML projects. As an OCI-compliant packaging format, ModelKit encapsulates datasets, code, configurations, and models into a single, standardized unit. This approach not only streamlines the development process but also ensures broad compatibility and integration with a vast array of tools and platforms. -[Get started with ModelKits](../get-started.md) in less than 15 minutes. +[Get started with ModelKits](/docs/get-started.md) in less than 15 minutes. -[See how security-conscious organization are using ModelKits](../use-cases.md) with their existing tools to develop AI/ML projects faster and safer than ever before. +[See how security-conscious organization are using ModelKits](/docs/use-cases.md) with their existing tools to develop AI/ML projects faster and safer than ever before. ## Key Features of ModelKit: @@ -24,4 +24,4 @@ ModelKit revolutionizes the way AI/ML artifacts are shared and managed throughou ModelKit is not just a packaging format; it's a building block for innovation, simplifying the complexities of AI/ML development and deployment. By adopting ModelKit, teams can focus more on creating value and less on managing the intricacies of artifact storage and sharing. -**Questions or suggestions?** Drop an [issue in our GitHub repository](https://github.com/jozu-ai/kitops/issues) or join [our Discord server](https://discord.gg/Tapeh8agYy) to get support or share your feedback. \ No newline at end of file +**Questions or suggestions?** Drop an [issue in our GitHub repository](https://github.com/jozu-ai/kitops/issues) or join [our Discord server](https://discord.gg/Tapeh8agYy) to get support or share your feedback.