Skip to content

Commit

Permalink
docs: add sitemap configuration to VitePress
Browse files Browse the repository at this point in the history
- Configure sitemap with hostname and transformItems function
- Set changefreq to 'weekly' and priority to 0.8

This change improves SEO by providing a sitemap for search engines, ensuring better indexing of the documentation site.
  • Loading branch information
Undertone0809 committed Oct 22, 2024
1 parent aba237b commit 1964491
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ import { withPwa } from '@vite-pwa/vitepress'
export default withPwa(defineConfig({
title: "Promptulate",
description: "🚀Lightweight Large language model automation and Autonomous Language Agents development framework. Build your LLM Agent Application in a pythonic way!",
sitemap: {
hostname: "https://promptulate.cn",
transformItems: (items) => {
return items.map(item => ({
...item,
changefreq: 'weekly',
priority: 0.8,
}))
}
},
head: [
[
'script',
Expand Down

0 comments on commit 1964491

Please sign in to comment.