Skip to content

Commit

Permalink
Move addons catalog sitemap to frontpage
Browse files Browse the repository at this point in the history
  • Loading branch information
cdedreuille committed Jul 9, 2024
1 parent 5745631 commit 7d2aba3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,19 @@ apps/frontpage/content/docs
apps/frontpage/content/snippets
apps/frontpage/generated-redirects.json
apps/frontpage/public/docs-assets
apps/frontpage/public/sitemap

apps/tutorials/public/sitemap.xml
robots.txt

# Sitemaps
apps/frontpage/public/sitemap/sitemap.xml
apps/frontpage/public/sitemap/sitemap-all.xml
apps/frontpage/public/sitemap/sitemap-all-0.xml
apps/frontpage/public/sitemap/sitemap-0.xml
apps/frontpage/public/sitemap/tutorials/sitemap.xml
apps/frontpage/public/sitemap/blog/sitemap.xml
apps/frontpage/public/sitemap/showcase/sitemap.xml

# ui
dist/

Expand Down
4 changes: 4 additions & 0 deletions apps/frontpage/public/sitemap/addons/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?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://storybook.js.org/addons</loc><lastmod>2024-07-01T22:37:52.321Z</lastmod><changefreq>daily</changefreq><priority>0.7</priority></url>
</urlset>
5 changes: 0 additions & 5 deletions apps/frontpage/scripts/copy-other-sitemaps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ async function getRemoteSitemapContent(p: string): Promise<string> {
}

const OTHER_SITEMAPS = {
addons: {
async getContent() {
return await fs.readFile(path.join(__dirname, '../../..', 'apps/addon-catalog/public/sitemap.xml'), 'utf-8');
},
},
blog: {
async getContent() {
return getRemoteSitemapContent('/blog/sitemap/sitemap-0.xml');
Expand Down

0 comments on commit 7d2aba3

Please sign in to comment.