Skip to content

Commit

Permalink
Fix some 404's and add a "new" sitemap (#595)
Browse files Browse the repository at this point in the history
  • Loading branch information
javisperez authored Nov 7, 2024
1 parent 4cdc882 commit 6ebb1af
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 21 deletions.
19 changes: 2 additions & 17 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/docs/cli/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down
6 changes: 3 additions & 3 deletions docs/src/docs/modelkit/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand All @@ -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.
**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.

0 comments on commit 6ebb1af

Please sign in to comment.