Skip to content

Commit

Permalink
docs: adds sitemap (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva authored Oct 1, 2023
1 parent 0ad2ce4 commit e690808
Show file tree
Hide file tree
Showing 6 changed files with 76 additions and 1 deletion.
5 changes: 5 additions & 0 deletions packages/docs/next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
generateRobotsTxt: true,
siteUrl: 'https://docs.oramasearch.com',
}
4 changes: 3 additions & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"dev": "next dev",
"build": "next build",
"serve": "next start"
"serve": "next start",
"postbuild": "next-sitemap"
},
"keywords": [],
"author": "",
Expand All @@ -18,6 +19,7 @@
"@orama/plugin-match-highlight": "workspace:*",
"@orama/plugin-nextra": "workspace:*",
"next": "^13.3.0",
"next-sitemap": "^4.2.3",
"nextra": "^2.4.0",
"nextra-theme-blog": "^2.2.19",
"nextra-theme-docs": "^2.2.19",
Expand Down
9 changes: 9 additions & 0 deletions packages/docs/public/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# *
User-agent: *
Allow: /

# Host
Host: https://docs.oramasearch.com

# Sitemaps
Sitemap: https://docs.oramasearch.com/sitemap.xml
30 changes: 30 additions & 0 deletions packages/docs/public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://docs.oramasearch.com</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/internals/components</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/internals/utilities</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/plugins</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/plugins/plugin-astro</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/plugins/plugin-data-persistence</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/plugins/plugin-docusaurus</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/plugins/plugin-match-highlight</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/plugins/plugin-nextra</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/plugins/plugin-parsedoc</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/text-analysis/stemming</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/text-analysis/stop-words</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/create</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/insert</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/remove</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/BM25-algorithm</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/facets</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/fields-boosting</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/filters</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/grouping</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/introduction</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/preflight</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/sorting</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/threshold</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/search/vector-search</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/update</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
<url><loc>https://docs.oramasearch.com/usage/utilities</loc><lastmod>2023-10-01T20:56:07.344Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
4 changes: 4 additions & 0 deletions packages/docs/public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://docs.oramasearch.com/sitemap-0.xml</loc></sitemap>
</sitemapindex>
25 changes: 25 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit e690808

@vercel
Copy link

@vercel vercel bot commented on e690808 Oct 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.